Ejemplo n.º 1
0
 public EditorWorld(EditorMap editorMap)
 {
     _editorMap = editorMap;
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public EditorMapRenderer(EditorMap map)
 {
     _map = map;
 }