Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
ScriptedEntitySerializer.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
12class ScriptedEntitySerializer: PersistenceSerializerBase
13{
14 /*
15 Select when the deserialization should happen. Can be applied early to make the data available before default creation logic in OnPostInit or EOnInit
16 Called once and return value is cached for all serializer instances of this type!
17 */
18 static event EEntityDeserializeEvent GetDeserializeEvent()
19 {
20 return EEntityDeserializeEvent.AFTER_FINALIZE;
21 }
23 event protected bool DeserializeSpawnData(out ResourceName prefab, notnull out EntitySpawnParams params, notnull LoadContext context) { return DeserializeSpawnDataNative(prefab, params, context); }
24
26 proto external protected ESerializeResult SerializeSpawnDataNative(notnull IEntity entity, notnull SaveContext context, SerializerDefaultSpawnData defaultData);
28 proto external protected ESerializeResult SerializeNative(notnull IEntity entity, notnull SaveContext context, ESerializeMode mode = ESerializeMode.NATIVE);
35 proto protected bool DeserializeSpawnDataNative(out ResourceName prefab, notnull out EntitySpawnParams params, notnull LoadContext context);
37 proto external protected bool DeserializeNative(notnull IEntity entity, notnull LoadContext context, ESerializeMode mode = ESerializeMode.NATIVE);
38
39 // callbacks
40
42 event protected ESerializeResult SerializeSpawnData(notnull IEntity entity, notnull SaveContext context, SerializerDefaultSpawnData defaultData) { return SerializeSpawnDataNative(entity, context, defaultData); };
47 event protected ESerializeResult Serialize(notnull IEntity entity, notnull SaveContext context) { return SerializeNative(entity, context); };
52 event protected bool Deserialize(notnull IEntity entity, notnull LoadContext context) { return DeserializeNative(entity, context); };
53}
54
ESerializeResult SerializeSpawnData(notnull IEntity entity, notnull SaveContext context, SerializerDefaultSpawnData defaultData)
Custom entity spawn data serialization logic if needed. Must match the data that DeserializeSpawnData...
bool Deserialize(notnull IEntity entity, notnull LoadContext context)
ESerializeResult SerializeNative(notnull IEntity entity, notnull SaveContext context, ESerializeMode mode=ESerializeMode.NATIVE)
Native serialization logic used by the game. Can be called by scripts before or after custom data or ...
bool DeserializeSpawnDataNative(out ResourceName prefab, notnull out EntitySpawnParams params, notnull LoadContext context)
bool DeserializeSpawnData(out ResourceName prefab, notnull out EntitySpawnParams params, notnull LoadContext context)
In case the spawn data needs to be read early from the context. Uusally called from spawn operations ...
bool DeserializeNative(notnull IEntity entity, notnull LoadContext context, ESerializeMode mode=ESerializeMode.NATIVE)
Native deserialization logic used by the game. Can be called by scripts before or after custom data o...
ESerializeResult SerializeSpawnDataNative(notnull IEntity entity, notnull SaveContext context, SerializerDefaultSpawnData defaultData)
Native spawn data serialization logic that can be called explictly if script overrides SerializeSpawn...
ESerializeResult Serialize(notnull IEntity entity, notnull SaveContext context)
Collection of data to avoid writing known defaults during serialization.
void EntitySpawnParams()
Definition gameLib.c:130
EEntityDeserializeEvent
ESerializeResult
ESerializeMode