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

            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)
                {
                case 15:
                    componentFrameSync.onRemoteMethodCall(methodUtype, stream);
                    break;

                default:
                    break;
                }

                return;
            }

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

            case 10:
                Int32 onPlayerQuitMatch_arg1 = stream.readInt32();
                onPlayerQuitMatch(onPlayerQuitMatch_arg1);
                break;

            case 12:
                onReadyForBattle();
                break;

            case 9:
                MATCHING_INFOS_LIST onResPlayersInfo_arg1 = ((DATATYPE_MATCHING_INFOS_LIST)method.args[0]).createFromStreamEx(stream);
                onResPlayersInfo(onResPlayersInfo_arg1);
                break;

            case 13:
                onReturnHalls();
                break;

            case 15:
                Byte  onStatisticalResult_arg1 = stream.readUint8();
                float onStatisticalResult_arg2 = stream.readFloat();
                onStatisticalResult(onStatisticalResult_arg1, onStatisticalResult_arg2);
                break;

            case 11:
                onTeamMateChange();
                break;

            default:
                break;
            }
            ;
        }
Exemplo n.º 2
0
        public override void onRemoteMethodCall(MemoryStream stream)
        {
            ScriptModule sm = EntityDef.moduledefs["Avatar"];

            UInt16 methodUtype            = 0;
            UInt16 componentPropertyUType = 0;

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

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

            Method method = null;

            if (componentPropertyUType == 0)
            {
                method = sm.idmethods[methodUtype];
            }
            else
            {
                Property pComponentPropertyDescription = sm.idpropertys[componentPropertyUType];
                switch (pComponentPropertyDescription.properUtype)
                {
                case 17:
                    compMatchAvatar.onRemoteMethodCall(methodUtype, stream);
                    break;

                case 8:
                    component1.onRemoteMethodCall(methodUtype, stream);
                    break;

                case 11:
                    component2.onRemoteMethodCall(methodUtype, stream);
                    break;

                case 15:
                    component3.onRemoteMethodCall(methodUtype, stream);
                    break;

                default:
                    break;
                }

                return;
            }

            switch (method.methodUtype)
            {
            default:
                break;
            }
            ;
        }
Exemplo n.º 3
0
        public override void onRemoteMethodCall(MemoryStream stream)
        {
            ScriptModule sm = EntityDef.moduledefs["Avatar"];

            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)
                {
                case 17:
                    componentFrameSync.onRemoteMethodCall(methodUtype, stream);
                    break;

                default:
                    break;
                }

                return;
            }

            switch (method.methodUtype)
            {
            case 18:
                Int32 onExitMatch_arg1 = stream.readInt32();
                onExitMatch(onExitMatch_arg1);
                break;

            case 15:
                Int32 onHeroIdChanged_arg1 = stream.readInt32();
                Int32 onHeroIdChanged_arg2 = stream.readInt32();
                onHeroIdChanged(onHeroIdChanged_arg1, onHeroIdChanged_arg2);
                break;

            case 16:
                onLoadingToReadyBattleState();
                break;

            case 13:
                UInt32 onPushAvatarCurrentScene_arg1 = stream.readUint32();
                onPushAvatarCurrentScene(onPushAvatarCurrentScene_arg1);
                break;

            case 14:
                MATCHING_INFOS_LIST onPushMatchPlayersData_arg1 = ((DATATYPE_MATCHING_INFOS_LIST)method.args[0]).createFromStreamEx(stream);
                onPushMatchPlayersData(onPushMatchPlayersData_arg1);
                break;

            case 12:
                Int32 onPushStatisticalResult_arg1 = stream.readInt32();
                onPushStatisticalResult(onPushStatisticalResult_arg1);
                break;

            case 17:
                onReadyBattle();
                break;

            case 10:
                HERO_INFOS       onReqsChooseHeroResult_arg1 = ((DATATYPE_HERO_INFOS)method.args[0]).createFromStreamEx(stream);
                SKILL_INFOS_LIST onReqsChooseHeroResult_arg2 = ((DATATYPE_SKILL_INFOS_LIST)method.args[1]).createFromStreamEx(stream);
                onReqsChooseHeroResult(onReqsChooseHeroResult_arg1, onReqsChooseHeroResult_arg2);
                break;

            case 11:
                SKILL_INFOS_LIST onReqsSkillLstResult_arg1 = ((DATATYPE_SKILL_INFOS_LIST)method.args[0]).createFromStreamEx(stream);
                onReqsSkillLstResult(onReqsSkillLstResult_arg1);
                break;

            default:
                break;
            }
            ;
        }