예제 #1
0
        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]);
            }
        }
예제 #2
0
        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);
                    }
                }
            }
        }
예제 #3
0
 public bool showdown()
 {
     ScheduleExecutor2.Instance.scheduleCancle(this);
     LiXianGuaJiManager.SaveGuaJiTimeForAll();
     return(true);
 }
예제 #4
0
 public static void RemoveLiXianGuaJiRole(GameClient client)
 {
     LiXianGuaJiManager.RemoveLiXianGuaJiRole(client.ClientData.RoleID);
 }