コード例 #1
0
            public static COutPacket CouponFail(CashItemFailed result)
            {
                var p = new COutPacket(SendOps.LP_CashShopCashItemResult);

                p.Encode1((byte)CashItemOps.CashItemRes_UseCoupon_Failed);
                p.Encode1((byte)result);

                return(p);
            }
コード例 #2
0
            // TODO phase all the error packets into this instead of having individual packets for them
            public static COutPacket RequestFailPacket(CashItemOps nRetCode, CashItemFailed nReason, int nCommSN = 0)
            {
                var p = new COutPacket(SendOps.LP_CashShopCashItemResult);

                p.Encode1((byte)nRetCode);
                p.Encode1((byte)nReason);

                if (nCommSN > 0)
                {
                    p.Encode4(nCommSN);
                }

                return(p);
            }