-
Notifications
You must be signed in to change notification settings - Fork 70
Special DataBlobs
se5a edited this page May 5, 2017
·
3 revisions
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
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 asorbitDB.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 List
Children
returns a list of children entites - Stores List
ChildrenDBs
returns a list of children of the same type as this inherited instantiated type - Method
SetParent(Entity parent)
sets the parent entity
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)
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.
Documentation
-
Contribution
-
Design
-
Processes
-
Datatypes
-
Guides and Resources
-
Modding & Json files