コード例 #1
0
        public virtual void PryTile(MapIndices indices)
        {
            if (IsSpace(indices) || IsAirBlocked(indices))
            {
                return;
            }

            indices.PryTile(_gridId, _mapManager, _tileDefinitionManager, _serverEntityManager);
        }
コード例 #2
0
        public virtual void PryTile(MapIndices indices)
        {
            if (!Owner.TryGetComponent(out IMapGridComponent? mapGridComponent))
            {
                return;
            }
            if (IsSpace(indices) || IsAirBlocked(indices))
            {
                return;
            }

            var mapGrid = mapGridComponent.Grid;

            indices.PryTile(mapGrid.Index, _mapManager, _tileDefinitionManager, _serverEntityManager);
        }