public EditorWorld(EditorMap editorMap) { _editorMap = editorMap; }
public static EditorMap Load(BinaryReader reader) { int hash = reader.ReadInt32(); // YEAAAH!! not gonna do anything with this though probably :P int stageCount = reader.ReadInt32(); // BOOYAAH!! not gonna use this either int width = reader.ReadInt32(); int height = reader.ReadInt32(); EditorMap editorMap = new EditorMap(new TileType[width * height], width, height); for (int y = 0; y < editorMap.Height; y++) { for (int x = 0; x < editorMap.Width; x++) { editorMap[x, y] = (TileType)reader.ReadByte(); } } return editorMap; }
public EditorMapRenderer(EditorMap map) { _map = map; }