Exemple #1
0
 private string GetReqIdName(int reqId)
 {
     if (ShowEntityReq)
     {
         EntityReqId req = (EntityReqId)reqId;
         return(req.ToString());
     }
     else
     {
         WorldReqId req = (WorldReqId)reqId;
         return(req.ToString());
     }
 }
Exemple #2
0
 private int GetWorldRequestWeight(WorldReqId reqId)
 {
     if (reqWeightConf == null)
     {
         return(0);
     }
     for (int i = 0; i < reqWeightConf.WorldReqWeight.Count; i++)
     {
         WeightJson json = reqWeightConf.WorldReqWeight[i];
         if (json.Key == (int)reqId)
         {
             return(json.Weight);
         }
     }
     ECSLocate.ECSLog.LogR("有世界请求没有设置权重>>>>", reqId.ToString());
     return(0);
 }