Esempio n. 1
0
        public override void onRemoteMethodCall(MemoryStream stream)
        {
            ScriptModule sm = EntityDef.moduledefs["Account"];

            UInt16 methodUtype            = 0;
            UInt16 componentPropertyUType = 0;

            if (sm.useMethodDescrAlias)
            {
                componentPropertyUType = stream.readUint8();
                methodUtype            = stream.readUint8();
            }
            else
            {
                componentPropertyUType = stream.readUint16();
                methodUtype            = stream.readUint16();
            }

            Method method = null;

            if (componentPropertyUType == 0)
            {
                method = sm.idmethods[methodUtype];
            }
            else
            {
                Property pComponentPropertyDescription = sm.idpropertys[componentPropertyUType];
                switch (pComponentPropertyDescription.properUtype)
                {
                default:
                    break;
                }

                return;
            }

            switch (method.methodUtype)
            {
            case 14:
                onEnterBattlefield();
                break;

            case 12:
                OPEN_PACK_RUL onOpenPack_arg1 = ((DATATYPE_OPEN_PACK_RUL)method.args[0]).createFromStreamEx(stream);
                onOpenPack(onOpenPack_arg1);
                break;

            case 13:
                CARD_LIST           onReqCardList_arg1 = ((DATATYPE_CARD_LIST)method.args[0]).createFromStreamEx(stream);
                CARDGROUP_INFO_LIST onReqCardList_arg2 = ((DATATYPE_CARDGROUP_INFO_LIST)method.args[1]).createFromStreamEx(stream);
                onReqCardList(onReqCardList_arg1, onReqCardList_arg2);
                break;

            default:
                break;
            }
            ;
        }
Esempio n. 2
0
 public void addToStreamEx(Bundle stream, OPEN_PACK_RUL v)
 {
     stream.writeUint32((UInt32)v.Count);
     for (int i = 0; i < v.Count; ++i)
     {
         stream.writeUint64(v[i]);
     }
     ;
 }
Esempio n. 3
0
        public OPEN_PACK_RUL createFromStreamEx(MemoryStream stream)
        {
            UInt32        size  = stream.readUint32();
            OPEN_PACK_RUL datas = new OPEN_PACK_RUL();

            while (size > 0)
            {
                --size;
                datas.Add(stream.readUint64());
            }
            ;

            return(datas);
        }
Esempio n. 4
0
 public abstract void onOpenPack(OPEN_PACK_RUL arg1);