예제 #1
0
        public bool RemoveWorld(short id)
        {
            if (!worlds.Any(x => x.id == id))
            {
                return(false);
            }
            var world = worlds.First(x => x.id == id);

            gamemode.OnWorldDestroy(world);
            world.Destroy();
            worlds.Remove(world);
            Console.WriteLine($"removed a world with id {id}");
            return(true);
        }