private void LoadGroundLevelFromBuildings(MapObject mapObject) { if (mapObject.MapObjectEntity.GetType() == typeof(Room) && ((Room)mapObject.MapObjectEntity).Floor == 0) { mapObject.AddToCanvas(_canvas); } }
public void LoadChoosenFloor(MapObject mapObject, int choosenFloor, Canvas canvas) { if (mapObject.MapObjectEntity.GetType() == typeof(Room) && ((Room)mapObject.MapObjectEntity).BuildingId == Id && ((Room)mapObject.MapObjectEntity).Floor == choosenFloor) { mapObject.AddToCanvas(canvas); } }
private void LoadAllMapObjectsExceptRooms(MapObject mapObject) { if (mapObject.MapObjectEntity.GetType() != typeof(Room)) { mapObject.AddToCanvas(_canvas); } }