Example #1
0
        public void SetTileData(TileData tileData, int tileID)
        {
            _ID       = tileID;
            _tileData = tileData;

            SetGroundType(_tileData.groundType);

            if (HasPlaceableObject)
            {
                int tempLevel = _timeKeeper.CheckAge(_tileData.placeableObjectData, _ID);
                AddPlaceableObject(_tileData.placeableObjectData.id, tempLevel, false);
            }
        }