public void SetSynchInfoFromSynchObject(EntitySynchronizationDataObject other) { foreach (StateUpdateObject obj in other.BasicSyncInfo) { SetBasicSynchInfo(obj.Type, obj.Information); } foreach (ComponentSynchronizationDataObject obj in other.ComponentSyncInfo) { SetComponentSynchInfo(obj.ComponentType, obj.Data.ToArray()); } }
public override void Initialise(BloodAndBileEngine.WorldState.WorldState worldState) { SynchData = new EntitySynchronizationDataObject(LinkedEntity.ID); }