예제 #1
0
 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());
     }
 }
예제 #2
0
 public override void Initialise(BloodAndBileEngine.WorldState.WorldState worldState)
 {
     SynchData = new EntitySynchronizationDataObject(LinkedEntity.ID);
 }