diff --git a/src/third_party/asn1/GamePlayerJoined.c b/src/third_party/asn1/GamePlayerJoined.c index 8151d9e6..0257f61e 100644 --- a/src/third_party/asn1/GamePlayerJoined.c +++ b/src/third_party/asn1/GamePlayerJoined.c @@ -19,22 +19,22 @@ static asn_TYPE_member_t asn_MBR_GamePlayerJoined_1[] = { 0, "playerId" }, - { ATF_NOFLAGS, 0, offsetof(struct GamePlayerJoined, curPlayerRights), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), + { ATF_NOFLAGS, 0, offsetof(struct GamePlayerJoined, isGameAdmin), + (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, - &asn_DEF_PlayerInfoRights, + &asn_DEF_BOOLEAN, 0, /* Defer constraints checking to the member type */ 0, /* PER is not compiled, use -gen-PER */ 0, - "curPlayerRights" + "isGameAdmin" }, }; static ber_tlv_tag_t asn_DEF_GamePlayerJoined_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_GamePlayerJoined_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* playerId at 337 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* curPlayerRights at 339 */ + { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 1, 0, 0 }, /* isGameAdmin at 338 */ + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 337 */ }; static asn_SEQUENCE_specifics_t asn_SPC_GamePlayerJoined_specs_1 = { sizeof(struct GamePlayerJoined), diff --git a/src/third_party/asn1/GamePlayerJoined.h b/src/third_party/asn1/GamePlayerJoined.h index 16dcf0d5..8c6892db 100644 --- a/src/third_party/asn1/GamePlayerJoined.h +++ b/src/third_party/asn1/GamePlayerJoined.h @@ -13,7 +13,7 @@ /* Including external dependencies */ #include "NonZeroId.h" -#include "PlayerInfoRights.h" +#include #include #ifdef __cplusplus @@ -23,7 +23,7 @@ extern "C" { /* GamePlayerJoined */ typedef struct GamePlayerJoined { NonZeroId_t playerId; - PlayerInfoRights_t curPlayerRights; + BOOLEAN_t isGameAdmin; /* * This type is extensible, * possible extensions are below. diff --git a/src/third_party/asn1/JoinGameAck.c b/src/third_party/asn1/JoinGameAck.c index dd4a4861..b43b8efd 100644 --- a/src/third_party/asn1/JoinGameAck.c +++ b/src/third_party/asn1/JoinGameAck.c @@ -10,14 +10,14 @@ #include "JoinGameAck.h" static asn_TYPE_member_t asn_MBR_JoinGameAck_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, yourRights), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), + { ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, areYouGameAdmin), + (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, - &asn_DEF_PlayerInfoRights, + &asn_DEF_BOOLEAN, 0, /* Defer constraints checking to the member type */ 0, /* PER is not compiled, use -gen-PER */ 0, - "yourRights" + "areYouGameAdmin" }, { ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, gameInfo), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), @@ -33,7 +33,7 @@ static ber_tlv_tag_t asn_DEF_JoinGameAck_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_TYPE_tag2member_t asn_MAP_JoinGameAck_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* yourRights at 292 */ + { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* areYouGameAdmin at 292 */ { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* gameInfo at 294 */ }; static asn_SEQUENCE_specifics_t asn_SPC_JoinGameAck_specs_1 = { diff --git a/src/third_party/asn1/JoinGameAck.h b/src/third_party/asn1/JoinGameAck.h index 0e298d8c..5d2d6d8e 100644 --- a/src/third_party/asn1/JoinGameAck.h +++ b/src/third_party/asn1/JoinGameAck.h @@ -12,7 +12,7 @@ #include /* Including external dependencies */ -#include "PlayerInfoRights.h" +#include #include "NetGameInfo.h" #include @@ -22,7 +22,7 @@ extern "C" { /* JoinGameAck */ typedef struct JoinGameAck { - PlayerInfoRights_t yourRights; + BOOLEAN_t areYouGameAdmin; NetGameInfo_t gameInfo; /* * This type is extensible,