Exemple #1
0
    protected override void FillMessageField(ref CSDT_CHEATCMD_DETAIL CheatCmdRef, int InValue)
    {
        CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo();

        if (masterRoleInfo != null && (ulong)masterRoleInfo.UInt32ChgAdjust((uint)masterRoleInfo.DianQuan, InValue) > 2147483647uL)
        {
            DebugHelper.Assert(false, "超过点券最大值Int32.MaxValue!");
            return;
        }
        CheatCmdRef.set_stGiveCoupons(new CSDT_CHEAT_COMVAL());
        CheatCmdRef.get_stGiveCoupons().iValue = InValue;
    }