コード例 #1
0
        private static int GetDropCondiction(eDropType type, string para1, string para2)
        {
            int result;

            try
            {
                int dropId = DropMgr.FindCondiction(type, para1, para2);
                result = dropId;
                return(result);
            }
            catch (Exception ex)
            {
                //if (DropInventory.log.IsErrorEnabled)
                {
                    DropInventory.log.Error(string.Concat(new object[]
                    {
                        "Drop Error:",
                        type,
                        " @ ",
                        ex
                    }));
                }
            }
            result = 0;
            return(result);
        }
コード例 #2
0
 private static int GetDropCondiction(eDropType type, string para1, string para2)
 {
     try
     {
         return(DropMgr.FindCondiction(type, para1, para2));
     }
     catch (Exception ex)
     {
         if (DropInventory.log.IsErrorEnabled)
         {
             DropInventory.log.Error(string.Concat(new object[]
             {
                 "Drop Error:",
                 type,
                 " @ ",
                 ex
             }));
         }
     }
     return(0);
 }