コード例 #1
0
        public static bool UpdateUserRebornInfo(int RoleID, string StampInfo, int ResetNum, int UsePoint)
        {
            bool result;

            if (RebornStampManager.UserRebornData.ContainsKey(RoleID))
            {
                List <int> list = RebornStampManager.UnMakeYinJiUpdateInfo(StampInfo);
                RebornStampManager.UserRebornData[RoleID].ResetNum  = ResetNum;
                RebornStampManager.UserRebornData[RoleID].UsePoint  = UsePoint;
                RebornStampManager.UserRebornData[RoleID].StampInfo = list;
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }
コード例 #2
0
        public static bool InsertUserRebornInfo(int RoleID, string StampInfo, int ResetNum, int UsePoint)
        {
            bool result;

            if (RebornStampManager.UserRebornData.ContainsKey(RoleID))
            {
                result = false;
            }
            else
            {
                RebornStampData data = new RebornStampData();
                data.RoleID    = RoleID;
                data.ResetNum  = ResetNum;
                data.UsePoint  = UsePoint;
                data.StampInfo = RebornStampManager.UnMakeYinJiUpdateInfo(StampInfo);
                RebornStampManager.UserRebornData.Add(RoleID, data);
                result = true;
            }
            return(result);
        }