//------------------------------------------------- public static async Task <DataBaseDataChangedInfo> CreateKingdomInfo(SAO_Kingdoms index) { KingdomInfo kingdomInfo = new KingdomInfo(index) { Index = (uint)index, KingdomName = index.ToString(), KingsPower = Unit.GetBasicUnit(), KingdomLevel = 0, }; return (await ThereIsServer.Actions.CreateFile(ThereIsServer.ServersInfo.MyServers[(uint)index], KingdomInfoFileName, new DataBaseCreation("Created By SAO_Game", QString.Parse(kingdomInfo.GetForServer(), false)))); }
//------------------------------------------------- #region static Method's Region public static async Task <DataBaseDataChangedInfo> CreateKingdomInfo(SAO_Kingdoms index) { KingdomInfo kingdomInfo = new KingdomInfo(index) { Index = (uint)index, KingdomName = index.ToString(), KingsPower = Unit.GetBasicUnit(), KingdomLevel = 0, }; //--------------------------------------------- var _s = ThereIsServer.ServersInfo.ServerManager.Get_Kingdom_Server(index); var _target = KingdomInfo_LOC; var _req = new DataBaseCreation(MESSAGE, QString.Parse(kingdomInfo.GetForServer())); return(await ThereIsServer.Actions.CreateData(_s, _target, _req)); //--------------------------------------------- }