예제 #1
0
        /// <summary>
        /// Remove all game assets from the parcel
        /// </summary>
        public virtual void RemoveAllGameAssets()
        {
            lock (GameAssets)
            {
                lock (Game.GameAssets)
                    foreach (AbstractGameAsset ga in GameAssets.Values)
                    {
                        Game.GameAssets.Remove(ga.Uuid);
                    }

                GameAssets.Clear();
                Cropss.Clear();
                Housess.Clear();
                Factories.Clear();
                ChosenGameAssetTemplate = AbstractGameAsset.None;
            }
        }