Пример #1
0
        private void OnFeatureDestroyed(Feature feature)
        {
            feature.OnFeaturedDestroyed -= OnFeatureDestroyed;

            if (!FeatureMap.Remove(feature.Position))
            {
                _log.Info($"Attempted to destroy feature, but could not find it at {feature.Position}.");
            }
            else
            {
                _log.Info($"Feature destroyed at {feature.Position}.");
            }

            OnChunkChanged.Raise(this);
        }