Generating code for protocol.
This commit is contained in:
+6
-6
@@ -19,22 +19,22 @@ static asn_TYPE_member_t asn_MBR_GamePlayerJoined_1[] = {
|
|||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GamePlayerJoined, curPlayerRights),
|
{ ATF_NOFLAGS, 0, offsetof(struct GamePlayerJoined, isGameAdmin),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_PlayerInfoRights,
|
&asn_DEF_BOOLEAN,
|
||||||
0, /* Defer constraints checking to the member type */
|
0, /* Defer constraints checking to the member type */
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"curPlayerRights"
|
"isGameAdmin"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_GamePlayerJoined_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_GamePlayerJoined_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GamePlayerJoined_tag2el_1[] = {
|
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 | (1 << 2)), 1, 0, 0 }, /* isGameAdmin at 338 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* curPlayerRights at 339 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 337 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GamePlayerJoined_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_GamePlayerJoined_specs_1 = {
|
||||||
sizeof(struct GamePlayerJoined),
|
sizeof(struct GamePlayerJoined),
|
||||||
|
|||||||
+2
-2
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
/* Including external dependencies */
|
/* Including external dependencies */
|
||||||
#include "NonZeroId.h"
|
#include "NonZeroId.h"
|
||||||
#include "PlayerInfoRights.h"
|
#include <BOOLEAN.h>
|
||||||
#include <constr_SEQUENCE.h>
|
#include <constr_SEQUENCE.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@@ -23,7 +23,7 @@ extern "C" {
|
|||||||
/* GamePlayerJoined */
|
/* GamePlayerJoined */
|
||||||
typedef struct GamePlayerJoined {
|
typedef struct GamePlayerJoined {
|
||||||
NonZeroId_t playerId;
|
NonZeroId_t playerId;
|
||||||
PlayerInfoRights_t curPlayerRights;
|
BOOLEAN_t isGameAdmin;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
|
|||||||
Vendored
+5
-5
@@ -10,14 +10,14 @@
|
|||||||
#include "JoinGameAck.h"
|
#include "JoinGameAck.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_JoinGameAck_1[] = {
|
static asn_TYPE_member_t asn_MBR_JoinGameAck_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, yourRights),
|
{ ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, areYouGameAdmin),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_PlayerInfoRights,
|
&asn_DEF_BOOLEAN,
|
||||||
0, /* Defer constraints checking to the member type */
|
0, /* Defer constraints checking to the member type */
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"yourRights"
|
"areYouGameAdmin"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, gameInfo),
|
{ ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, gameInfo),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
(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))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_JoinGameAck_tag2el_1[] = {
|
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 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* gameInfo at 294 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_JoinGameAck_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_JoinGameAck_specs_1 = {
|
||||||
|
|||||||
Vendored
+2
-2
@@ -12,7 +12,7 @@
|
|||||||
#include <asn_application.h>
|
#include <asn_application.h>
|
||||||
|
|
||||||
/* Including external dependencies */
|
/* Including external dependencies */
|
||||||
#include "PlayerInfoRights.h"
|
#include <BOOLEAN.h>
|
||||||
#include "NetGameInfo.h"
|
#include "NetGameInfo.h"
|
||||||
#include <constr_SEQUENCE.h>
|
#include <constr_SEQUENCE.h>
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* JoinGameAck */
|
/* JoinGameAck */
|
||||||
typedef struct JoinGameAck {
|
typedef struct JoinGameAck {
|
||||||
PlayerInfoRights_t yourRights;
|
BOOLEAN_t areYouGameAdmin;
|
||||||
NetGameInfo_t gameInfo;
|
NetGameInfo_t gameInfo;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
|
|||||||
Reference in New Issue
Block a user