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); } }
private void _Spawn() { var dungeon = new Dungeon(_RealmInfomation); _Dungeons.Add(dungeon); _Updater.Add(dungeon); }
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); } }