Exemple #1
0
 private int GetSizeAbilityHit(NetworkWriter dummyWriter)
 {
     dummyWriter.WriteInt32(_nextSyncResults.Count);
     for (int i = 0; i < _nextSyncResults.Count; i++)
     {
         dummyWriter.WriteAbilityCastResult(_nextSyncResults[i]);
     }
     return(dummyWriter.Length);
 }
Exemple #2
0
 private void RegisterAbilityHit(SyncableVariable var, NetworkWriter writer)
 {
     writer.WriteInt32(_nextSyncResults.Count);
     for (int i = 0; i < _nextSyncResults.Count; i++)
     {
         writer.WriteAbilityCastResult(_nextSyncResults[i]);
     }
     _nextSyncResults.Clear();
 }
 private void RegisterDeath(SyncableVariable var, NetworkWriter writer)
 {
     writer.WriteAbilityCastResult(deathResult);
     deathResult = null;
 }
 private int GetSizeDeath(NetworkWriter dummyWriter)
 {
     dummyWriter.WriteAbilityCastResult(deathResult);
     return(dummyWriter.Length);
 }