ISerializeChildren
An interface in Root.Township, Alta.Networking.
Passed to ISavable load and save methods so a component can save and restore the child prefabs spawned under its entity.
- Listed in Networking and servers
- Derived types
NetworkPrefab,EmptyChildrenSerializer
Properties
| Member | What it is |
|---|---|
int ChildCount { get; } | Number of child entries. |
List<NetworkPrefab.ChildPrefab> ChildPrefabs { get; } | The child prefab entries. |
Methods
| Member | What it is |
|---|---|
void AddChild(NetworkEntity parent, NetworkPrefab child) | Records a spawned child prefab under a parent entity. |
void AddEmptyChildAtIndex(int index) | Adds an empty placeholder at a child index. |
int GetChildIndex(NetworkPrefab child) | Index of a child entry, looked up by child prefab or by parent entity. |
int GetChildIndex(NetworkEntity parent) | Index of a child entry, looked up by child prefab or by parent entity. |
void GetSpawnedChildren(int index, NetworkPrefabChildEventHandler callback) | Calls back with the children spawned for the entry at an index. |
Used in
Members of other types that take, return or hold a ISerializeChildren:
ISavableSave<T>.Save, SaveData.Apply, SavingSystem.Load, SavingSystem.Serialize, SavingSystem.Write, SavingSystem.SavingSetup.Save, SavingSystem.SavingSetup.SaveInternal, TaxManager.Load, TaxManager.Save, TradeVendor.Load, TradeVendor.Save, GymnasiumOnDemandPrefabSpawner.Load, GymnasiumOnDemandPrefabSpawner.Save, PoweredRespawnShrine.Load, PoweredRespawnShrine.Save, RespawnSystem.Load, RespawnSystem.Save, BasicSaveData<TData>.Apply, ButtonCounter.Load, ButtonCounter.Save, ClimbingTowerProgressionVisualizer.Load, ClimbingTowerProgressionVisualizer.Save, OrbBasinVfxController.Load, OrbBasinVfxController.Save, ParticlesToPlayer.Load, ParticlesToPlayer.Save, ISavable<T>.Load, NewSaveData<TSavable, TData>.Apply, OldSaveData.Apply, Tracker.Load, Tracker.Save.