public bool GetTowerState(ref TowerState state) { if (state == null) throw new ArgumentNullException(); if (receivedState == null) throw new NullReferenceException(); state = receivedState; return true; }
public bool SetTowerState(TowerState state) { newState = state; refresh = true; return true; }