123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: game_example_protocol.proto
- #ifndef PROTOBUF_game_5fexample_5fprotocol_2eproto__INCLUDED
- #define PROTOBUF_game_5fexample_5fprotocol_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 2005000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/unknown_field_set.h>
- #include "game_example_def.pb.h"
- // @@protoc_insertion_point(includes)
- namespace game_example_protocols {
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_game_5fexample_5fprotocol_2eproto();
- void protobuf_AssignDesc_game_5fexample_5fprotocol_2eproto();
- void protobuf_ShutdownFile_game_5fexample_5fprotocol_2eproto();
- class packetc2l_game_play;
- class packetl2c_game_play_result;
- // ===================================================================
- class packetc2l_game_play : public ::google::protobuf::Message {
- public:
- packetc2l_game_play();
- virtual ~packetc2l_game_play();
- packetc2l_game_play(const packetc2l_game_play& from);
- inline packetc2l_game_play& operator=(const packetc2l_game_play& from) {
- CopyFrom(from);
- return *this;
- }
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const packetc2l_game_play& default_instance();
- void Swap(packetc2l_game_play* other);
- // implements Message ----------------------------------------------
- packetc2l_game_play* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const packetc2l_game_play& from);
- void MergeFrom(const packetc2l_game_play& from);
- void Clear();
- bool IsInitialized() const;
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
- ::google::protobuf::Metadata GetMetadata() const;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .game_example_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_game_play];
- inline bool has_packet_id() const;
- inline void clear_packet_id();
- static const int kPacketIdFieldNumber = 1;
- inline ::game_example_protocols::e_server_msg_type packet_id() const;
- inline void set_packet_id(::game_example_protocols::e_server_msg_type value);
- // optional int32 select = 2 [default = 0];
- inline bool has_select() const;
- inline void clear_select();
- static const int kSelectFieldNumber = 2;
- inline ::google::protobuf::int32 select() const;
- inline void set_select(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:game_example_protocols.packetc2l_game_play)
- private:
- inline void set_has_packet_id();
- inline void clear_has_packet_id();
- inline void set_has_select();
- inline void clear_has_select();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- int packet_id_;
- ::google::protobuf::int32 select_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
- friend void protobuf_AddDesc_game_5fexample_5fprotocol_2eproto();
- friend void protobuf_AssignDesc_game_5fexample_5fprotocol_2eproto();
- friend void protobuf_ShutdownFile_game_5fexample_5fprotocol_2eproto();
- void InitAsDefaultInstance();
- static packetc2l_game_play* default_instance_;
- };
- // -------------------------------------------------------------------
- class packetl2c_game_play_result : public ::google::protobuf::Message {
- public:
- packetl2c_game_play_result();
- virtual ~packetl2c_game_play_result();
- packetl2c_game_play_result(const packetl2c_game_play_result& from);
- inline packetl2c_game_play_result& operator=(const packetl2c_game_play_result& from) {
- CopyFrom(from);
- return *this;
- }
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const packetl2c_game_play_result& default_instance();
- void Swap(packetl2c_game_play_result* other);
- // implements Message ----------------------------------------------
- packetl2c_game_play_result* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const packetl2c_game_play_result& from);
- void MergeFrom(const packetl2c_game_play_result& from);
- void Clear();
- bool IsInitialized() const;
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
- ::google::protobuf::Metadata GetMetadata() const;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .game_example_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_game_play_result];
- inline bool has_packet_id() const;
- inline void clear_packet_id();
- static const int kPacketIdFieldNumber = 1;
- inline ::game_example_protocols::e_server_msg_type packet_id() const;
- inline void set_packet_id(::game_example_protocols::e_server_msg_type value);
- // optional int32 random = 2;
- inline bool has_random() const;
- inline void clear_random();
- static const int kRandomFieldNumber = 2;
- inline ::google::protobuf::int32 random() const;
- inline void set_random(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:game_example_protocols.packetl2c_game_play_result)
- private:
- inline void set_has_packet_id();
- inline void clear_has_packet_id();
- inline void set_has_random();
- inline void clear_has_random();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- int packet_id_;
- ::google::protobuf::int32 random_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
- friend void protobuf_AddDesc_game_5fexample_5fprotocol_2eproto();
- friend void protobuf_AssignDesc_game_5fexample_5fprotocol_2eproto();
- friend void protobuf_ShutdownFile_game_5fexample_5fprotocol_2eproto();
- void InitAsDefaultInstance();
- static packetl2c_game_play_result* default_instance_;
- };
- // ===================================================================
- // ===================================================================
- // packetc2l_game_play
- // optional .game_example_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_game_play];
- inline bool packetc2l_game_play::has_packet_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void packetc2l_game_play::set_has_packet_id() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void packetc2l_game_play::clear_has_packet_id() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void packetc2l_game_play::clear_packet_id() {
- packet_id_ = 10001;
- clear_has_packet_id();
- }
- inline ::game_example_protocols::e_server_msg_type packetc2l_game_play::packet_id() const {
- return static_cast< ::game_example_protocols::e_server_msg_type >(packet_id_);
- }
- inline void packetc2l_game_play::set_packet_id(::game_example_protocols::e_server_msg_type value) {
- assert(::game_example_protocols::e_server_msg_type_IsValid(value));
- set_has_packet_id();
- packet_id_ = value;
- }
- // optional int32 select = 2 [default = 0];
- inline bool packetc2l_game_play::has_select() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void packetc2l_game_play::set_has_select() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void packetc2l_game_play::clear_has_select() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void packetc2l_game_play::clear_select() {
- select_ = 0;
- clear_has_select();
- }
- inline ::google::protobuf::int32 packetc2l_game_play::select() const {
- return select_;
- }
- inline void packetc2l_game_play::set_select(::google::protobuf::int32 value) {
- set_has_select();
- select_ = value;
- }
- // -------------------------------------------------------------------
- // packetl2c_game_play_result
- // optional .game_example_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_game_play_result];
- inline bool packetl2c_game_play_result::has_packet_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void packetl2c_game_play_result::set_has_packet_id() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void packetl2c_game_play_result::clear_has_packet_id() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void packetl2c_game_play_result::clear_packet_id() {
- packet_id_ = 15001;
- clear_has_packet_id();
- }
- inline ::game_example_protocols::e_server_msg_type packetl2c_game_play_result::packet_id() const {
- return static_cast< ::game_example_protocols::e_server_msg_type >(packet_id_);
- }
- inline void packetl2c_game_play_result::set_packet_id(::game_example_protocols::e_server_msg_type value) {
- assert(::game_example_protocols::e_server_msg_type_IsValid(value));
- set_has_packet_id();
- packet_id_ = value;
- }
- // optional int32 random = 2;
- inline bool packetl2c_game_play_result::has_random() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void packetl2c_game_play_result::set_has_random() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void packetl2c_game_play_result::clear_has_random() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void packetl2c_game_play_result::clear_random() {
- random_ = 0;
- clear_has_random();
- }
- inline ::google::protobuf::int32 packetl2c_game_play_result::random() const {
- return random_;
- }
- inline void packetl2c_game_play_result::set_random(::google::protobuf::int32 value) {
- set_has_random();
- random_ = value;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace game_example_protocols
- #ifndef SWIG
- namespace google {
- namespace protobuf {
- } // namespace google
- } // namespace protobuf
- #endif // SWIG
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_game_5fexample_5fprotocol_2eproto__INCLUDED
|