MapElements, наполнил для json Serialize/Deserialize
This commit is contained in:
parent
13533ee367
commit
a24415bab7
4 changed files with 62 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
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue