Ejemplo n.º 1
0
        private void _BuildTown(Map map)
        {
            if (_RealmInfomation.HaveTown() == false)
            {
                return;
            }


            var layout = new EntityGroupBuilder(_RealmInfomation.Town.Name, map, this);

            foreach (var updatable in layout.Create(0, new Vector2()))
            {
                _Updater.Add(updatable);
            }
        }
Ejemplo n.º 2
0
        private void _Spawn()
        {
            var dungeon = new Dungeon(_RealmInfomation);

            _Dungeons.Add(dungeon);
            _Updater.Add(dungeon);
        }
Ejemplo n.º 3
0
        public Zone(RealmInfomation[] realm_infomations)
        {
            this._Realms = new Dictionary <string, Realm>();
            _Updater     = new TimesharingUpdater(1f / 10f);
            if (realm_infomations == null)
            {
                throw new System.NullReferenceException();
            }



            foreach (var realm_infomation in realm_infomations)
            {
                var realm = new Realm(realm_infomation);
                this._Realms.Add(realm_infomation.Name, realm);
                _Updater.Add(realm);
            }
        }