Exemplo n.º 1
0
 private void ResetCounter(PowerCounter counter)
 {
     counter.SetFlag(IOEntity.Flag_HasPower, false);
     counter.counterNumber = 0;
     counter.currentEnergy = 0;
     counter.SendNetworkUpdate();
 }
Exemplo n.º 2
0
 private void InitializeCounter(PowerCounter counter, int floor)
 {
     counter.SetFlag(IOEntity.Flag_HasPower, true);
     counter.SetFlag(BaseEntity.Flags.Reserved2, true);
     counter.currentEnergy = floor;
     counter.SendNetworkUpdate();
 }