TechbloxModdingAPI
v2.2.0
The unofficial Techblox modding API
|
Simple entity serializer sufficient for simple entity components. More...
Public Member Functions | |
SimpleEntitySerializer (GetEntitiesToSerialize getEntitiesToSerialize) | |
Construct the entity serializer. More... | |
EntityInitializer | BuildDeserializedEntity (EGID egid, ISerializationData serializationData, ISerializableEntityDescriptor entityDescriptor, int serializationType, IEntitySerialization entitySerialization, IEntityFactory factory, bool enginesRootIsDeserializationOnly) |
bool | Deserialize (ref ISerializationData serializationData, IEntitySerialization entitySerializer) |
Deserialize the entities. More... | |
delegate EGID[] | GetEntitiesToSerialize (EntitiesDB entitiesDB) |
Delegate function called when the serializer needs to know what entities to serialize. More... | |
void | Ready () |
bool | Serialize (ref ISerializationData serializationData, EntitiesDB entitiesDB, IEntitySerialization entitySerializer) |
Serialize the entities. More... | |
Protected Attributes | |
int | serializationType |
Properties | |
EntitiesDB | entitiesDB [protected get, set] |
Simple entity serializer sufficient for simple entity components.
Descriptor | : | ISerializableEntityDescriptor | |
Descriptor | : | new() |
|
inline |
Construct the entity serializer.
getEntitiesToSerialize | Provider of entity IDs to serialize. |
|
inline |
|
inline |
Deserialize the entities.
serializationData | Serialized data to read from (read from GameSave.GC). |
entitySerializer | Entity serializer with support for single-entity deserialization. |
Implements TechbloxModdingAPI.Persistence.IEntitySerializer.
delegate EGID [] TechbloxModdingAPI.Persistence.SimpleEntitySerializer< Descriptor >.GetEntitiesToSerialize | ( | EntitiesDB | entitiesDB | ) |
Delegate function called when the serializer needs to know what entities to serialize.
|
inline |
|
inline |
Serialize the entities.
serializationData | Serialized data to write to (writes to GameSave.GC). |
entitiesDB | Entities db for the game. |
entitySerializer | Entity serializer with support for single-entity serialization. |
Implements TechbloxModdingAPI.Persistence.IEntitySerializer.
|
protected |
|
protected getset |