public static void StartDatabase() { if (Utilities.ConfigurationManager.GetStringValue("SQLUsername") == "root") { Utilities.ConsoleStyle.Warning(@"'root' Username is not safe, please modify this for your security"); } var config = new DatabaseConfiguration(DatabaseType.MySQL, Utilities.ConfigurationManager.GetStringValue("SQLHost"), Utilities.ConfigurationManager.GetStringValue("SQLDB"), Utilities.ConfigurationManager.GetStringValue("SQLUsername"), Utilities.ConfigurationManager.GetStringValue("SQLPassword")); var source = new InPlaceConfigurationSource(); source.Add(typeof(ActiveRecordBase), config.GetProperties()); ActiveRecordStarter.Initialize(source, typeof(CharacterRecord), typeof(MapRecords), typeof(TriggerRecord), typeof(ItemRecord), typeof(WorldItemRecord), typeof(NpcRecord), typeof(NpcPositionRecord), typeof(NpcDialogRecord), typeof(ZaapRecord), typeof(AccountDataRecord), typeof(OriginalBreedStartMapRecord), typeof(IncarnamTeleportRecord), typeof(ExpFloorRecord), typeof(BaseSpellRecord), typeof(MonstersTemplateRecord), typeof(MonsterLevelRecord), typeof(MountTemplateRecord), typeof(GuildCreatorLocationRecord), typeof(SpellRecord), typeof(ShopItemRecord), typeof(BreedRecord), typeof(GuildRecord), typeof(DungeonRoomRecord), typeof(WorldMountRecord), typeof(PaddockRecord), typeof(DropRecord), typeof(BannedAccountRecord), typeof(ElitesRecord), typeof(LiveActionRecord), typeof(HotelRecord), typeof(ServerInfoRecord), typeof(ItemSetRecord), typeof(IODataRecord), typeof(JobDataRecord), typeof(CraftRecord), typeof(ItemBagRecord), typeof(AuctionHouseRecord), typeof(AuctionHouseItemRecord)); }
public static void StartDatabase() { if (Utilities.ConfigurationManager.GetStringValue("SQLUsername") == "root") { Utilities.ConsoleStyle.Warning(@"'root' Username is not safe, please modify this for your security"); } var config = new DatabaseConfiguration(DatabaseType.MySQL, Utilities.ConfigurationManager.GetStringValue("SQLHost"), Utilities.ConfigurationManager.GetStringValue("SQLDB"), Utilities.ConfigurationManager.GetStringValue("SQLUsername"), Utilities.ConfigurationManager.GetStringValue("SQLPassword")); var source = new InPlaceConfigurationSource(); source.Add(typeof(ActiveRecordBase), config.GetProperties()); ActiveRecordStarter.Initialize(source, typeof(CharacterRecord), typeof(MapRecords), typeof(TriggerRecord), typeof(ItemRecord), typeof(WorldItemRecord), typeof(NpcRecord), typeof(NpcPositionRecord), typeof(NpcDialogRecord), typeof(ZaapRecord), typeof(AccountDataRecord), typeof(OriginalBreedStartMapRecord), typeof(IncarnamTeleportRecord), typeof(ExpFloorRecord), typeof(BaseSpellRecord), typeof(MonstersTemplateRecord), typeof(MonsterLevelRecord), typeof(MountTemplateRecord), typeof(GuildCreatorLocationRecord), typeof(SpellRecord), typeof(ShopItemRecord), typeof(BreedRecord), typeof(GuildRecord), typeof(DungeonRoomRecord), typeof(WorldMountRecord), typeof(PaddockRecord), typeof(DropRecord), typeof(BannedAccountRecord), typeof(ElitesRecord), typeof(LiveActionRecord), typeof(HotelRecord), typeof(ServerInfoRecord), typeof(ItemSetRecord), typeof(IODataRecord), typeof(JobDataRecord), typeof(CraftRecord), typeof(ItemBagRecord), typeof(AuctionHouseRecord), typeof(AuctionHouseItemRecord)); }
public static void StartDatabase() { var config = new DatabaseConfiguration(DatabaseType.MySQL, Utilities.ConfigurationManager.GetStringValue("SQLHost"), Utilities.ConfigurationManager.GetStringValue("SQLDB"), Utilities.ConfigurationManager.GetStringValue("SQLUsername"), Utilities.ConfigurationManager.GetStringValue("SQLPassword")); var source = new InPlaceConfigurationSource(); source.Add(typeof(ActiveRecordBase), config.GetProperties()); ActiveRecordStarter.Initialize(source, typeof(AccountRecord), typeof(GameServerRecord), typeof(AccountCharactersInformationsRecord)); }
public static void StartDatabase() { var config = new DatabaseConfiguration(DatabaseType.MySQL, Utilities.ConfigurationManager.GetStringValue("SQLHost"), Utilities.ConfigurationManager.GetStringValue("SQLDB"), Utilities.ConfigurationManager.GetStringValue("SQLUsername"), Utilities.ConfigurationManager.GetStringValue("SQLPassword")); var source = new InPlaceConfigurationSource(); source.Add(typeof(ActiveRecordBase), config.GetProperties()); ActiveRecordStarter.Initialize(source, typeof(AccountRecord), typeof(GameServerRecord), typeof(AccountCharactersInformationsRecord)); }