Initialize() protected method

protected Initialize ( World world ) : void
world Dwarrowdelf.Server.World
return void
Esempio n. 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;
        }
Esempio n. 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);
        }