コード例 #1
0
        public SEATS_INFO createFromStreamEx(MemoryStream stream)
        {
            SEATS_INFO datas = new SEATS_INFO();

            datas.values = values_DataType.createFromStreamEx(stream);
            return(datas);
        }
コード例 #2
0
        public override void onRemoteMethodCall(Method method, MemoryStream stream)
        {
            switch (method.methodUtype)
            {
            case 21:
                UInt64 onEnterHall_arg1 = stream.readUint64();
                onEnterHall(onEnterHall_arg1);
                break;

            case 20:
                string onEnterSetName_arg1 = stream.readUnicode();
                onEnterSetName(onEnterSetName_arg1);
                break;

            case 29:
                Int64 onReqExitRoom_arg1 = stream.readInt64();
                onReqExitRoom(onReqExitRoom_arg1);
                break;

            case 25:
                UInt16 onReqJoinRoomFailed_arg1 = stream.readUint16();
                onReqJoinRoomFailed(onReqJoinRoomFailed_arg1);
                break;

            case 26:
                UInt16 onReqJoinRoomSuccess_arg1 = stream.readUint16();
                onReqJoinRoomSuccess(onReqJoinRoomSuccess_arg1);
                break;

            case 28:
                SEATS_INFO onReqPlayersInfo_arg1 = ((DATATYPE_SEATS_INFO)method.args[0]).createFromStreamEx(stream);
                onReqPlayersInfo(onReqPlayersInfo_arg1);
                break;

            case 27:
                string onReqRoomPassword_arg1 = stream.readUnicode();
                onReqRoomPassword(onReqRoomPassword_arg1);
                break;

            case 24:
                ROOM_INFOS_LIST onReqRoomsByParams_arg1 = ((DATATYPE_ROOM_INFOS_LIST)method.args[0]).createFromStreamEx(stream);
                onReqRoomsByParams(onReqRoomsByParams_arg1);
                break;

            case 22:
                UInt16 onSetNameFailed_arg1 = stream.readUint16();
                string onSetNameFailed_arg2 = stream.readUnicode();
                onSetNameFailed(onSetNameFailed_arg1, onSetNameFailed_arg2);
                break;

            case 23:
                string onSetNameSuccessfully_arg1 = stream.readUnicode();
                onSetNameSuccessfully(onSetNameSuccessfully_arg1);
                break;

            default:
                break;
            }
            ;
        }
コード例 #3
0
 public override void onReqPlayersInfo(SEATS_INFO playersInfo)
 {
     if (isPlayer())
     {
         List <PLAYER_INFOS> playersInfoList = playersInfo.values;
         KBEngine.Event.fireOut("onReqPlayersInfo", playersInfoList);
     }
 }
コード例 #4
0
 public virtual void onSeatsDataChanged(SEATS_INFO oldValue)
 {
 }
コード例 #5
0
        public override void callPropertysSetMethods()
        {
            ScriptModule sm = EntityDef.moduledefs[className];
            Dictionary <UInt16, Property> pdatas = sm.idpropertys;

            Vector3  oldval_direction = direction;
            Property prop_direction   = pdatas[1];

            if (prop_direction.isBase())
            {
                if (inited && !inWorld)
                {
                    onDirectionChanged(oldval_direction);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_direction.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onDirectionChanged(oldval_direction);
                    }
                }
            }

            List <Int32> oldval_hiddenCards = hiddenCards;
            Property     prop_hiddenCards   = pdatas[3];

            if (prop_hiddenCards.isBase())
            {
                if (inited && !inWorld)
                {
                    onHiddenCardsChanged(oldval_hiddenCards);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_hiddenCards.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onHiddenCardsChanged(oldval_hiddenCards);
                    }
                }
            }

            List <Int32> oldval_hiddenCardsOpen = hiddenCardsOpen;
            Property     prop_hiddenCardsOpen   = pdatas[4];

            if (prop_hiddenCardsOpen.isBase())
            {
                if (inited && !inWorld)
                {
                    onHiddenCardsOpenChanged(oldval_hiddenCardsOpen);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_hiddenCardsOpen.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onHiddenCardsOpenChanged(oldval_hiddenCardsOpen);
                    }
                }
            }

            Int16    oldval_highestPoint = highestPoint;
            Property prop_highestPoint   = pdatas[5];

            if (prop_highestPoint.isBase())
            {
                if (inited && !inWorld)
                {
                    onHighestPointChanged(oldval_highestPoint);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_highestPoint.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onHighestPointChanged(oldval_highestPoint);
                    }
                }
            }

            string   oldval_intro = intro;
            Property prop_intro   = pdatas[6];

            if (prop_intro.isBase())
            {
                if (inited && !inWorld)
                {
                    onIntroChanged(oldval_intro);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_intro.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onIntroChanged(oldval_intro);
                    }
                }
            }

            Int16    oldval_isGameOver = isGameOver;
            Property prop_isGameOver   = pdatas[7];

            if (prop_isGameOver.isBase())
            {
                if (inited && !inWorld)
                {
                    onIsGameOverChanged(oldval_isGameOver);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_isGameOver.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onIsGameOverChanged(oldval_isGameOver);
                    }
                }
            }

            Int16    oldval_isPlaying = isPlaying;
            Property prop_isPlaying   = pdatas[8];

            if (prop_isPlaying.isBase())
            {
                if (inited && !inWorld)
                {
                    onIsPlayingChanged(oldval_isPlaying);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_isPlaying.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onIsPlayingChanged(oldval_isPlaying);
                    }
                }
            }

            Int16    oldval_landlordIndex = landlordIndex;
            Property prop_landlordIndex   = pdatas[9];

            if (prop_landlordIndex.isBase())
            {
                if (inited && !inWorld)
                {
                    onLandlordIndexChanged(oldval_landlordIndex);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_landlordIndex.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onLandlordIndexChanged(oldval_landlordIndex);
                    }
                }
            }

            List <Int32> oldval_lastPlayCards = lastPlayCards;
            Property     prop_lastPlayCards   = pdatas[10];

            if (prop_lastPlayCards.isBase())
            {
                if (inited && !inWorld)
                {
                    onLastPlayCardsChanged(oldval_lastPlayCards);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_lastPlayCards.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onLastPlayCardsChanged(oldval_lastPlayCards);
                    }
                }
            }

            Int16    oldval_lastPlayIndex = lastPlayIndex;
            Property prop_lastPlayIndex   = pdatas[11];

            if (prop_lastPlayIndex.isBase())
            {
                if (inited && !inWorld)
                {
                    onLastPlayIndexChanged(oldval_lastPlayIndex);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_lastPlayIndex.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onLastPlayIndexChanged(oldval_lastPlayIndex);
                    }
                }
            }

            string   oldval_name = name;
            Property prop_name   = pdatas[12];

            if (prop_name.isBase())
            {
                if (inited && !inWorld)
                {
                    onNameChanged(oldval_name);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_name.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onNameChanged(oldval_name);
                    }
                }
            }

            Int16    oldval_openCard = openCard;
            Property prop_openCard   = pdatas[13];

            if (prop_openCard.isBase())
            {
                if (inited && !inWorld)
                {
                    onOpenCardChanged(oldval_openCard);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_openCard.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onOpenCardChanged(oldval_openCard);
                    }
                }
            }

            Int16    oldval_playIndex = playIndex;
            Property prop_playIndex   = pdatas[14];

            if (prop_playIndex.isBase())
            {
                if (inited && !inWorld)
                {
                    onPlayIndexChanged(oldval_playIndex);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_playIndex.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onPlayIndexChanged(oldval_playIndex);
                    }
                }
            }

            Vector3  oldval_position = position;
            Property prop_position   = pdatas[0];

            if (prop_position.isBase())
            {
                if (inited && !inWorld)
                {
                    onPositionChanged(oldval_position);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_position.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onPositionChanged(oldval_position);
                    }
                }
            }

            Int32    oldval_raiseIndex = raiseIndex;
            Property prop_raiseIndex   = pdatas[15];

            if (prop_raiseIndex.isBase())
            {
                if (inited && !inWorld)
                {
                    onRaiseIndexChanged(oldval_raiseIndex);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_raiseIndex.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onRaiseIndexChanged(oldval_raiseIndex);
                    }
                }
            }

            UInt64   oldval_roomKey = roomKey;
            Property prop_roomKey   = pdatas[16];

            if (prop_roomKey.isBase())
            {
                if (inited && !inWorld)
                {
                    onRoomKeyChanged(oldval_roomKey);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_roomKey.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onRoomKeyChanged(oldval_roomKey);
                    }
                }
            }

            SEATS_INFO oldval_seatsData = seatsData;
            Property   prop_seatsData   = pdatas[17];

            if (prop_seatsData.isBase())
            {
                if (inited && !inWorld)
                {
                    onSeatsDataChanged(oldval_seatsData);
                }
            }
            else
            {
                if (inWorld)
                {
                    if (prop_seatsData.isOwnerOnly() && !isPlayer())
                    {
                    }
                    else
                    {
                        onSeatsDataChanged(oldval_seatsData);
                    }
                }
            }
        }
コード例 #6
0
        public override void onUpdatePropertys(Property prop, MemoryStream stream)
        {
            switch (prop.properUtype)
            {
            case 40001:
                Vector3 oldval_direction = direction;
                direction = stream.readVector3();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onDirectionChanged(oldval_direction);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onDirectionChanged(oldval_direction);
                    }
                }

                break;

            case 23:
                List <Int32> oldval_hiddenCards = hiddenCards;
                hiddenCards = ((DATATYPE_AnonymousArray_31)EntityDef.id2datatypes[31]).createFromStreamEx(stream);

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onHiddenCardsChanged(oldval_hiddenCards);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onHiddenCardsChanged(oldval_hiddenCards);
                    }
                }

                break;

            case 24:
                List <Int32> oldval_hiddenCardsOpen = hiddenCardsOpen;
                hiddenCardsOpen = ((DATATYPE_AnonymousArray_32)EntityDef.id2datatypes[32]).createFromStreamEx(stream);

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onHiddenCardsOpenChanged(oldval_hiddenCardsOpen);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onHiddenCardsOpenChanged(oldval_hiddenCardsOpen);
                    }
                }

                break;

            case 25:
                Int16 oldval_highestPoint = highestPoint;
                highestPoint = stream.readInt16();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onHighestPointChanged(oldval_highestPoint);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onHighestPointChanged(oldval_highestPoint);
                    }
                }

                break;

            case 18:
                string oldval_intro = intro;
                intro = stream.readUnicode();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onIntroChanged(oldval_intro);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onIntroChanged(oldval_intro);
                    }
                }

                break;

            case 30:
                Int16 oldval_isGameOver = isGameOver;
                isGameOver = stream.readInt16();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onIsGameOverChanged(oldval_isGameOver);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onIsGameOverChanged(oldval_isGameOver);
                    }
                }

                break;

            case 19:
                Int16 oldval_isPlaying = isPlaying;
                isPlaying = stream.readInt16();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onIsPlayingChanged(oldval_isPlaying);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onIsPlayingChanged(oldval_isPlaying);
                    }
                }

                break;

            case 26:
                Int16 oldval_landlordIndex = landlordIndex;
                landlordIndex = stream.readInt16();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onLandlordIndexChanged(oldval_landlordIndex);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onLandlordIndexChanged(oldval_landlordIndex);
                    }
                }

                break;

            case 29:
                List <Int32> oldval_lastPlayCards = lastPlayCards;
                lastPlayCards = ((DATATYPE_AnonymousArray_33)EntityDef.id2datatypes[33]).createFromStreamEx(stream);

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onLastPlayCardsChanged(oldval_lastPlayCards);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onLastPlayCardsChanged(oldval_lastPlayCards);
                    }
                }

                break;

            case 28:
                Int16 oldval_lastPlayIndex = lastPlayIndex;
                lastPlayIndex = stream.readInt16();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onLastPlayIndexChanged(oldval_lastPlayIndex);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onLastPlayIndexChanged(oldval_lastPlayIndex);
                    }
                }

                break;

            case 17:
                string oldval_name = name;
                name = stream.readUnicode();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onNameChanged(oldval_name);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onNameChanged(oldval_name);
                    }
                }

                break;

            case 21:
                Int16 oldval_openCard = openCard;
                openCard = stream.readInt16();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onOpenCardChanged(oldval_openCard);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onOpenCardChanged(oldval_openCard);
                    }
                }

                break;

            case 27:
                Int16 oldval_playIndex = playIndex;
                playIndex = stream.readInt16();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onPlayIndexChanged(oldval_playIndex);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onPlayIndexChanged(oldval_playIndex);
                    }
                }

                break;

            case 40000:
                Vector3 oldval_position = position;
                position = stream.readVector3();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onPositionChanged(oldval_position);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onPositionChanged(oldval_position);
                    }
                }

                break;

            case 22:
                Int32 oldval_raiseIndex = raiseIndex;
                raiseIndex = stream.readInt32();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onRaiseIndexChanged(oldval_raiseIndex);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onRaiseIndexChanged(oldval_raiseIndex);
                    }
                }

                break;

            case 16:
                UInt64 oldval_roomKey = roomKey;
                roomKey = stream.readUint64();

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onRoomKeyChanged(oldval_roomKey);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onRoomKeyChanged(oldval_roomKey);
                    }
                }

                break;

            case 20:
                SEATS_INFO oldval_seatsData = seatsData;
                seatsData = ((DATATYPE_SEATS_INFO)EntityDef.id2datatypes[23]).createFromStreamEx(stream);

                if (prop.isBase())
                {
                    if (inited)
                    {
                        onSeatsDataChanged(oldval_seatsData);
                    }
                }
                else
                {
                    if (inWorld)
                    {
                        onSeatsDataChanged(oldval_seatsData);
                    }
                }

                break;

            case 40002:
                stream.readUint32();
                break;

            default:
                break;
            }
            ;
        }
コード例 #7
0
 public void addToStreamEx(Bundle stream, SEATS_INFO v)
 {
     values_DataType.addToStreamEx(stream, v.values);
 }
コード例 #8
0
 public abstract void onReqPlayersInfo(SEATS_INFO arg1);