Skip to content

Special DataBlobs

se5a edited this page May 5, 2017 · 3 revisions

Special DataBlobs

BaseDB

This is the base Datablob, all other datablobs inherit from this.

  • Is an abstract class ( so it must be inherited from, it can't be used itself)
  • Implements the ICloneable interface (all inherited classes must have a Clone() method)
  • Stores the OwningEntity this is the entity that the contains the instantiated datablob

TreeHierarchyDB

This datablob allows a tree like structure of entites for a datablob.

  • Is an abstract class (so other DBs inherit from this. one good example is the OrbitDB.)
  • Stores reference to Entity.Parent (next Entity up the tree)
  • Stores reference to BaseDB.ParentDB (next Datablob up the tree, ie: orbitDB.ParentDB().OwningEntity() is the same as orbitDB.Parent())
  • Stores reference to Entity.Root this is the root entity of the tree
  • Stores reference to TreeHierarchyDB.RootDB this returns the root entity's datablob that is the same inhereted type as this one, ie orbitDB.Root will return an orbitDB.
  • Stores ListChildren returns a list of children entites
  • Stores ListChildrenDBs returns a list of children of the same type as this inherited instantiated type
  • Method SetParent(Entity parent) sets the parent entity

ComponentInstancesDB

This datablob typicaly has an parent entity that is either a ship or a colony. it contains a list of component Entities (installation Entities for colonies, though there is no real difference between a component and an installation)

ComponentInstanceInfoDB

This datablob goes into an Entity that is a component (or installation) if it's installed on a ship or colony entity, it's ship/colony parent will have a ComponentInstanceDB and this entity will be listed there.

Clone this wiki locally