public Block(GameObjectsId id, int levelLight, bool isSourceOfLight, bool canMoveThrough) { BlockId = id; LevelLight = levelLight; IsSourceOfLight = isSourceOfLight; CanMoveThrough = canMoveThrough; }
public void PutBlock(int x, int y, GameObjectsId id) { Blocks[x, y] = Config.IdToBlock[id].Clone(); }