Example #1
0
    public void ImportState(JSONClass state)
    {
        Position = state["Position"].ImportVector3();
        Rotation = state["Rotation"].ImportVector3();
        MeshPath = state["MeshPath"];
        CellType = state["CellType"].ToEnum <RoomCellType>();

        // TODO: Load Mesh asset...
    }
Example #2
0
        public Color32[] GetColorBlock(ERoomFlag flag)
        {
            if (!_roomCellTypes.ContainsKey(flag))
            {
                RoomCellType __newCell = new RoomCellType(flag, _size, _borderSize, _spaceColor, _wallColor, _lockColor);
                _roomCellTypes.Add(flag, __newCell.GetColorBlock());
            }

            return _roomCellTypes[flag];
        }