public void ThreadProc(object state) { int sleepMS = 0; for (;;) { DateTime now = TimeUtil.NowDateTime(); try { if (this.ConfigLoadFinished) { RebornService.Instance().Update(now); } } catch (Exception ex) { LogManager.WriteExceptionUseCache(ex.ToString()); } finally { sleepMS = (int)(TimeUtil.NowDateTime() - now).TotalMilliseconds; } Thread.Sleep(Math.Max(50, 1000 - sleepMS)); } }
public void Reborn_ChangeName(int ptId, int roleId, string roleName) { RebornService.Instance().ChangeName(ptId, roleId, roleName); }
public void Reborn_PlatFormChat(int serverId, byte[] bytes) { RebornService.Instance().PlatFormChat(serverId, bytes); }
public KuaFuCmdData Reborn_GetRebornRoleData(int ptId, int roleId, long dataAge) { return(RebornService.Instance().GetRebornRoleData(ptId, roleId, dataAge)); }
public void Reborn_RebornOpt(int ptid, int rid, int optType, int param1, int param2, string param3) { RebornService.Instance().RebornOpt(ptid, rid, optType, param1, param2, param3); }
public RebornSyncData Reborn_SyncData(long ageRank, long ageBoss) { return(RebornService.Instance().Reborn_SyncData(ageRank, ageBoss)); }
public int Reborn_RoleReborn(int ptId, int roleId, string roleName, int level) { return(RebornService.Instance().RoleReborn(ptId, roleId, roleName, level)); }
public void Reborn_SetRoleData4Selector(int ptId, int roleId, byte[] bytes) { RebornService.Instance().SetRoleData4Selector(ptId, roleId, bytes); }