public static void SaveGuaJiTimeForAll() { long nowTicks = TimeUtil.NOW(); List <LiXianGuaJiRoleItem> LiXianGuaJiRoleItems = LiXianGuaJiManager.GetLiXianGuaJiRoleItemList(); for (int i = 0; i < LiXianGuaJiRoleItems.Count; i++) { LiXianGuaJiManager.SaveDBLiXianGuaJiTimeForRole(LiXianGuaJiRoleItems[i]); } }
public void ProcessQueue() { long nowTicks = TimeUtil.NOW(); List <LiXianGuaJiRoleItem> LiXianGuaJiRoleItems = LiXianGuaJiManager.GetLiXianGuaJiRoleItemList(); for (int i = 0; i < LiXianGuaJiRoleItems.Count; i++) { this.DoSpriteMeditateTime(LiXianGuaJiRoleItems[i]); if (LiXianGuaJiRoleItems[i].MeditateTime + LiXianGuaJiRoleItems[i].NotSafeMeditateTime >= 43200000) { LiXianGuaJiManager.SaveDBLiXianGuaJiTimeForRole(LiXianGuaJiRoleItems[i]); LiXianGuaJiManager.RemoveLiXianGuaJiRole(LiXianGuaJiRoleItems[i].RoleID); if (LiXianGuaJiRoleItems[i].FakeRoleID > 0) { FakeRoleManager.ProcessDelFakeRole(LiXianGuaJiRoleItems[i].FakeRoleID, false); } } } }
public bool showdown() { ScheduleExecutor2.Instance.scheduleCancle(this); LiXianGuaJiManager.SaveGuaJiTimeForAll(); return(true); }
public static void RemoveLiXianGuaJiRole(GameClient client) { LiXianGuaJiManager.RemoveLiXianGuaJiRole(client.ClientData.RoleID); }