public override void Initialize()
        {
            World = new World();

            var p = Load();
            Player = World.InjectPlayer(p);
            Player.Initialize();

            base.Initialize();
        }
Esempio n. 2
0
        public UpdateDomain(World world, Stopwatch watch)
        {
            this.world = world;
            this.watch = watch;
            ActorHosts = new List<ActorHost>();

            Running = true;

            thread = new Thread(updateLoop);
            thread.IsBackground = true;
            thread.Priority = ThreadPriority.BelowNormal;
            thread.Start();
        }
        public override void Initialize()
        {
            World = new World();

            var p = Load();
            foreach (var item in ItemDefinitionManager.GetBlockDefinitions())
            {
                p.Inventory.Add(new InventorySlot() { Definition = item, Amount = 1 });
            }

            Player = World.InjectPlayer(p);
            Player.Initialize();

            base.Initialize();
        }