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