1
0
Fork 0
Bildschirmflausch-LD41/Assets/Scripts/Generation/GenTile.cs
2018-04-23 00:27:44 +02:00

42 lines
708 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GenTile
{
public enum Position
{
BOTTOM_LEFT = 0,
BOTTOM = 1,
BOTTOM_RIGHT = 2,
LEFT = 3,
CENTER = 4,
RIGHT = 5,
TOP_LEFT = 6,
TOP = 7,
TOP_RIGHT = 8
}
public Room.TileType type;
public Position position;
public GenTile()
{
}
public GenTile(Room.TileType type)
{
this.type = type;
}
public GenTile(Room.TileType type, Position position)
{
this.type = type;
this.position = position;
}
public static Position GetPosition(int xMode, int yMode) {
return (Position) ((xMode + 1) + (yMode + 1) * 3);
}
}