Initialize() защищенный Метод

protected Initialize ( World world ) : void
world Dwarrowdelf.Server.World
Результат void
Пример #1
0
        public static FoodGenerator Create(World world)
        {
            var builder = new ItemObjectBuilder(ItemID.Contraption, MaterialID.Diamond)
            {
                Name = "Food Generator",
                Color = GameColor.Gold,
            };

            var item = new FoodGenerator(builder);
            item.Initialize(world);
            return item;
        }
Пример #2
0
        public static FoodGenerator Create(World world)
        {
            var builder = new ItemObjectBuilder(ItemID.Contraption, MaterialID.Diamond)
            {
                Name  = "Food Generator",
                Color = GameColor.Gold,
            };

            var item = new FoodGenerator(builder);

            item.Initialize(world);
            return(item);
        }