private void handleMapInput() { if (mapState.Equals(MapState.World)) { handleWorldMapInput(); } else if (mapState.Equals(MapState.Region)) { handleRegionMapInput(); } }
public void Equals_12_ThrowsInvalidCastException() { var state = new MapState(1); state.Set(1, (ushort)PlayerType.player1, 13); state.Equals(12); }
public void Equals_Other_IsFalse() { var act = new MapState(1); act.Set(1, (ushort)PlayerType.player1, 13); var other = new MapState(1); other.Set(1, (ushort)PlayerType.player1, 14); Assert.IsFalse(act.Equals(other)); }
public void manualUpdate(ref DataPool worldData) { if (mapState.Equals(MapState.World)) { handleWorldInput(ref worldData); } else if (mapState.Equals(MapState.Region)) { handleRegionInput(ref worldData); } }