public void AssignSolidType(TileType tt) { _solidType = tt; TileTypeChanged tileChange = new TileTypeChanged(); tileChange.ChangedTile = this; OnTileChange(tileChange); }
public void AssignFloorType(TileType tt) { _floorType = tt; TileTypeChanged tileChange = new TileTypeChanged(); tileChange.ChangedTile = this; OnTileChange(tileChange); }
protected void OnTileChange(TileTypeChanged e) { EventHandler <TileTypeChanged> handler = TileTypeChangedEvent; if (handler != null) { handler(this, e); } }