Merge pull request #3 from progtime-net/MapProcessing
Подготовка в карты, мержим структуры карты.
This commit is contained in:
commit
1fcb3d5692
5 changed files with 83 additions and 0 deletions
17
ZoFo/GameCore/GameManagers/MapManager/MapElements/Chunk.cs
Normal file
17
ZoFo/GameCore/GameManagers/MapManager/MapElements/Chunk.cs
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ZoFo.GameCore.GameManagers.MapManager.MapElements
|
||||||
|
{
|
||||||
|
public class Chunk
|
||||||
|
{
|
||||||
|
public int[] Data { get; set; }
|
||||||
|
public int Height { get; set; }
|
||||||
|
public int Width { get; set; }
|
||||||
|
public int X { get; set; }
|
||||||
|
public int Y { get; set; }
|
||||||
|
}
|
||||||
|
}
|
17
ZoFo/GameCore/GameManagers/MapManager/MapElements/Layer.cs
Normal file
17
ZoFo/GameCore/GameManagers/MapManager/MapElements/Layer.cs
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ZoFo.GameCore.GameManagers.MapManager.MapElements
|
||||||
|
{
|
||||||
|
public class Layer
|
||||||
|
{
|
||||||
|
public List<Chunk> Chunks { get; set; }
|
||||||
|
public int Height { get; set; }
|
||||||
|
public int Width { get; set; }
|
||||||
|
public int Id { get; set; }
|
||||||
|
public bool Visibility { get; set; }
|
||||||
|
}
|
||||||
|
}
|
16
ZoFo/GameCore/GameManagers/MapManager/MapElements/TileMap.cs
Normal file
16
ZoFo/GameCore/GameManagers/MapManager/MapElements/TileMap.cs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ZoFo.GameCore.GameManagers.MapManager.MapElements
|
||||||
|
{
|
||||||
|
public class TileMap
|
||||||
|
{
|
||||||
|
public bool Infinite { get; set; }
|
||||||
|
public int TileHeight { get; set; }
|
||||||
|
public int TileWidth { get; set; }
|
||||||
|
public List<TileSet> TileSets { get; set; }
|
||||||
|
}
|
||||||
|
}
|
12
ZoFo/GameCore/GameManagers/MapManager/MapElements/TileSet.cs
Normal file
12
ZoFo/GameCore/GameManagers/MapManager/MapElements/TileSet.cs
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ZoFo.GameCore.GameManagers.MapManager.MapElements
|
||||||
|
{
|
||||||
|
public class TileSet
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
21
ZoFo/GameCore/GameManagers/MapManager/MapManager.cs
Normal file
21
ZoFo/GameCore/GameManagers/MapManager/MapManager.cs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ZoFo.GameCore.GameManagers.MapManager
|
||||||
|
{
|
||||||
|
public class MapManager
|
||||||
|
{
|
||||||
|
public void LoadMap()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
private void LoadTileSet()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue