Skip to content

Instantly share code, notes, and snippets.

@LasseSkogland
Created March 12, 2017 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LasseSkogland/46ee5f7877e07973df9af062360fb8ed to your computer and use it in GitHub Desktop.
Save LasseSkogland/46ee5f7877e07973df9af062360fb8ed to your computer and use it in GitHub Desktop.
Rust C++ ProtoBuf
This file has been truncated, but you can view the full file.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mega.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "mega.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
class InputMessageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<InputMessage> {
} _InputMessage_default_instance_;
class PlayerTickDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerTick> {
} _PlayerTick_default_instance_;
class ModelStateDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ModelState> {
} _ModelState_default_instance_;
class EffectDataDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<EffectData> {
} _EffectData_default_instance_;
class EntityDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Entity> {
} _Entity_default_instance_;
class BaseNetworkableDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BaseNetworkable> {
} _BaseNetworkable_default_instance_;
class BaseEntityDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BaseEntity> {
} _BaseEntity_default_instance_;
class BaseCombatDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BaseCombat> {
} _BaseCombat_default_instance_;
class BaseNPCDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BaseNPC> {
} _BaseNPC_default_instance_;
class EntitySlotsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<EntitySlots> {
} _EntitySlots_default_instance_;
class BaseResourceDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BaseResource> {
} _BaseResource_default_instance_;
class EnvironmentDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Environment> {
} _Environment_default_instance_;
class CorpseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Corpse> {
} _Corpse_default_instance_;
class LootableCorpseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<LootableCorpse> {
} _LootableCorpse_default_instance_;
class ParentInfoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ParentInfo> {
} _ParentInfo_default_instance_;
class BuildingBlockDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BuildingBlock> {
} _BuildingBlock_default_instance_;
class WorldItemDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<WorldItem> {
} _WorldItem_default_instance_;
class KeyLockDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<KeyLock> {
} _KeyLock_default_instance_;
class CodeLockDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<CodeLock> {
} _CodeLock_default_instance_;
class BuildingPrivilegeDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BuildingPrivilege> {
} _BuildingPrivilege_default_instance_;
class StorageBoxDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<StorageBox> {
} _StorageBox_default_instance_;
class HeldEntityDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<HeldEntity> {
} _HeldEntity_default_instance_;
class LootDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Loot> {
} _Loot_default_instance_;
class GenericSpawnerDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<GenericSpawner> {
} _GenericSpawner_default_instance_;
class SleepingBagDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SleepingBag> {
} _SleepingBag_default_instance_;
class MagazineDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Magazine> {
} _Magazine_default_instance_;
class BaseProjectileDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BaseProjectile> {
} _BaseProjectile_default_instance_;
class SignDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Sign> {
} _Sign_default_instance_;
class MapEntityDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<MapEntity> {
} _MapEntity_default_instance_;
class ResearchTableDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ResearchTable> {
} _ResearchTable_default_instance_;
class DudExplosiveDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<DudExplosive> {
} _DudExplosive_default_instance_;
class ResourceExtractorDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ResourceExtractor> {
} _ResourceExtractor_default_instance_;
class MiningQuarryDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<MiningQuarry> {
} _MiningQuarry_default_instance_;
class PlantEntityDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlantEntity> {
} _PlantEntity_default_instance_;
class LandmineDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Landmine> {
} _Landmine_default_instance_;
class HelicopterDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Helicopter> {
} _Helicopter_default_instance_;
class ServerGibDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ServerGib> {
} _ServerGib_default_instance_;
class AutoTurretDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<AutoTurret> {
} _AutoTurret_default_instance_;
class SphereEntityDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SphereEntity> {
} _SphereEntity_default_instance_;
class StabilityEntityDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<StabilityEntity> {
} _StabilityEntity_default_instance_;
class OwnerInfoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<OwnerInfo> {
} _OwnerInfo_default_instance_;
class DecayEntityDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<DecayEntity> {
} _DecayEntity_default_instance_;
class SpawnableDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Spawnable> {
} _Spawnable_default_instance_;
class VendingMachineDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<VendingMachine> {
} _VendingMachine_default_instance_;
class ItemContainerDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ItemContainer> {
} _ItemContainer_default_instance_;
class ItemDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Item> {
} _Item_default_instance_;
class BasePlayerDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BasePlayer> {
} _BasePlayer_default_instance_;
class PlayerMetabolismDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerMetabolism> {
} _PlayerMetabolism_default_instance_;
class PlayerInventoryDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerInventory> {
} _PlayerInventory_default_instance_;
class PersistantPlayerDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PersistantPlayer> {
} _PersistantPlayer_default_instance_;
class PlayerLifeStoryDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerLifeStory> {
} _PlayerLifeStory_default_instance_;
class PlayerNameIDDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerNameID> {
} _PlayerNameID_default_instance_;
class DemoHeaderDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<DemoHeader> {
} _DemoHeader_default_instance_;
class ApprovalDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Approval> {
} _Approval_default_instance_;
class UpdateItemContainerDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<UpdateItemContainer> {
} _UpdateItemContainer_default_instance_;
class PlayerUpdateLootDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerUpdateLoot> {
} _PlayerUpdateLoot_default_instance_;
class UpdateItemDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<UpdateItem> {
} _UpdateItem_default_instance_;
class TakeDamageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<TakeDamage> {
} _TakeDamage_default_instance_;
class EntityListDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<EntityList> {
} _EntityList_default_instance_;
class CreateBuildingDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<CreateBuilding> {
} _CreateBuilding_default_instance_;
class AttackDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Attack> {
} _Attack_default_instance_;
class PlayerAttackDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerAttack> {
} _PlayerAttack_default_instance_;
class PlayerProjectileAttackDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerProjectileAttack> {
} _PlayerProjectileAttack_default_instance_;
class PlayerProjectileRicochetDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerProjectileRicochet> {
} _PlayerProjectileRicochet_default_instance_;
class PlayerProjectileUpdateDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PlayerProjectileUpdate> {
} _PlayerProjectileUpdate_default_instance_;
class ProjectileShootDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ProjectileShoot> {
} _ProjectileShoot_default_instance_;
class ModuleMessageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ModuleMessage> {
} _ModuleMessage_default_instance_;
class RespawnInformationDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<RespawnInformation> {
} _RespawnInformation_default_instance_;
class ClientReadyDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ClientReady> {
} _ClientReady_default_instance_;
class LootableCorpsePrivateDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<LootableCorpsePrivate> {
} _LootableCorpsePrivate_default_instance_;
class CodeLockPrivateDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<CodeLockPrivate> {
} _CodeLockPrivate_default_instance_;
class SpawnedEntDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SpawnedEnt> {
} _SpawnedEnt_default_instance_;
class SleepingBagPrivateDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SleepingBagPrivate> {
} _SleepingBagPrivate_default_instance_;
class SellOrderDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SellOrder> {
} _SellOrder_default_instance_;
class SellOrderContainerDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SellOrderContainer> {
} _SellOrderContainer_default_instance_;
class InstanceDataDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<InstanceData> {
} _InstanceData_default_instance_;
class ConditionDataDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ConditionData> {
} _ConditionData_default_instance_;
class DeathInfoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<DeathInfo> {
} _DeathInfo_default_instance_;
class ProjectileDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Projectile> {
} _Projectile_default_instance_;
class SpawnOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SpawnOptions> {
} _SpawnOptions_default_instance_;
class ClientInfoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ClientInfo> {
} _ClientInfo_default_instance_;
namespace protobuf_mega_2eproto {
namespace {
::google::protobuf::Metadata file_level_metadata[81];
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
} // namespace
const ::google::protobuf::uint32 TableStruct::offsets[] = {
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputMessage, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputMessage, buttons_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputMessage, aimangles_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerTick, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerTick, inputstate_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerTick, position_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerTick, modelstate_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerTick, activeitem_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerTick, eyepos_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModelState, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModelState, waterlevel_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModelState, lookdir_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModelState, flags_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, pooledstringid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, number_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, origin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, normal_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, scale_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, entity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, bone_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EffectData, source_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, basenetworkable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, baseentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, baseplayer_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, worlditem_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, resource_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, buildingblock_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, environment_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, corpse_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, parent_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, keylock_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, codelock_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, entityslots_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, buildingprivilege_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, storagebox_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, heldentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, baseprojectile_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, basenpc_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, loot_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, genericspawner_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, sleepingbag_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, lootablecorpse_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, sign_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, basecombat_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, mapentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, researchtable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, dudexplosive_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, miningquarry_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, plantentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, helicopter_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, landmine_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, autoturret_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, sphereentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, stabilityentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, ownerinfo_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, decayentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, spawnable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, servergib_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, vendingmachine_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Entity, createdthisframe_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseNetworkable, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseNetworkable, uid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseNetworkable, group_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseNetworkable, prefabid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseEntity, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseEntity, pos_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseEntity, rot_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseEntity, flags_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseEntity, skinid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseCombat, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseCombat, state_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseCombat, health_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseNPC, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseNPC, state_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntitySlots, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntitySlots, slotlock_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntitySlots, slotfiremod_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntitySlots, slotuppermodification_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseResource, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseResource, stage_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseResource, health_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Environment, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Environment, datetime_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Environment, clouds_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Environment, fog_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Environment, wind_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Environment, rain_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Corpse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Corpse, parentid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LootableCorpse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LootableCorpse, privatedata_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LootableCorpse, playerid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LootableCorpse, playername_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParentInfo, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParentInfo, uid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParentInfo, bone_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BuildingBlock, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BuildingBlock, grade_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BuildingBlock, beingdemolished_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BuildingBlock, stability_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BuildingBlock, buildingid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WorldItem, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WorldItem, item_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyLock, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyLock, code_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLock, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLock, pv_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLock, hascode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLock, hasguestcode_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BuildingPrivilege, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BuildingPrivilege, users_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StorageBox, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StorageBox, contents_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeldEntity, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeldEntity, itemuid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Loot, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Loot, contents_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericSpawner, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericSpawner, ents_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SleepingBag, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SleepingBag, name_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SleepingBag, privatedata_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SleepingBag, deployerid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Magazine, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Magazine, capacity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Magazine, contents_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Magazine, ammotype_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseProjectile, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseProjectile, primarymagazine_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Sign, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Sign, imageid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MapEntity, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MapEntity, fogimages_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MapEntity, paintimages_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResearchTable, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResearchTable, researchtimeleft_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DudExplosive, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DudExplosive, fusetimeleft_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResourceExtractor, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResourceExtractor, fuelcontents_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResourceExtractor, outputcontents_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiningQuarry, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiningQuarry, extractor_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlantEntity, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlantEntity, state_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlantEntity, age_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlantEntity, genetics_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlantEntity, water_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlantEntity, healthy_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Landmine, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Landmine, triggeredid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Helicopter, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Helicopter, tiltrot_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Helicopter, leftgun_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Helicopter, rightgun_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Helicopter, spotlightvec_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Helicopter, weakspothealths_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerGib, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerGib, gibname_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AutoTurret, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AutoTurret, aimpos_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AutoTurret, aimdir_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AutoTurret, targetid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AutoTurret, users_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SphereEntity, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SphereEntity, radius_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StabilityEntity, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StabilityEntity, stability_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StabilityEntity, distancefromground_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OwnerInfo, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OwnerInfo, steamid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DecayEntity, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DecayEntity, decaytimer_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Spawnable, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Spawnable, population_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VendingMachine, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VendingMachine, sellordercontainer_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, uid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, slots_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, temperature_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, flags_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, allowedcontents_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, maxstacksize_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, alloweditem_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, availableslots_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemContainer, contents_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, uid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, itemid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, slot_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, amount_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, flags_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, removetime_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, locktime_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, worldentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, instancedata_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, heldentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, conditiondata_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, name_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, text_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, skinid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Item, contents_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, name_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, userid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, inventory_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, metabolism_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, modelstate_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, playerflags_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, heldentity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, health_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, persistantdata_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, skincol_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, skintex_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, skinmesh_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, currentlife_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasePlayer, previouslife_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, health_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, calories_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, hydration_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, heartrate_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, temperature_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, poison_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, radiation_level_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, wetness_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, dirtyness_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, oxygen_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, bleeding_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, radiation_poisoning_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, comfort_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerMetabolism, pending_health_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInventory, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInventory, invmain_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInventory, invbelt_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInventory, invwear_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PersistantPlayer, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PersistantPlayer, unlockeditems_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PersistantPlayer, protocolversion_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerLifeStory, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerLifeStory, secondsalive_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerLifeStory, meterswalked_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerLifeStory, metersrun_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerLifeStory, secondssleeping_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerLifeStory, timeborn_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerLifeStory, timedied_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerLifeStory, deathinfo_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerNameID, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerNameID, username_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerNameID, userid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DemoHeader, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DemoHeader, version_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DemoHeader, level_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DemoHeader, levelseed_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DemoHeader, levelsize_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DemoHeader, checksum_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DemoHeader, localclient_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, level_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, hostname_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, modded_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, official_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, steamid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, ipaddress_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, port_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, levelseed_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, levelsize_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Approval, checksum_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateItemContainer, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateItemContainer, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateItemContainer, container_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerUpdateLoot, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerUpdateLoot, itemid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerUpdateLoot, entityid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerUpdateLoot, containers_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateItem, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateItem, item_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TakeDamage, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TakeDamage, amount_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TakeDamage, direction_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TakeDamage, type_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityList, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EntityList, entity_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, entity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, socket_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, onterrain_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, position_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, normal_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, ray_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, blockid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateBuilding, rotation_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, pointstart_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, pointend_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hitid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hitbone_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hitnormallocal_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hitpositionlocal_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hitnormalworld_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hitpositionworld_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hitpartid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hitmaterialid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Attack, hititem_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerAttack, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerAttack, attack_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerAttack, projectileid_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileAttack, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileAttack, playerattack_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileAttack, hitvelocity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileAttack, hitdistance_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileRicochet, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileRicochet, projectileid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileRicochet, hitposition_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileRicochet, invelocity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileRicochet, outvelocity_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileUpdate, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileUpdate, projectileid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerProjectileUpdate, curposition_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProjectileShoot, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProjectileShoot, ammotype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProjectileShoot, projectiles_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModuleMessage, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModuleMessage, itemid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModuleMessage, moduleid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModuleMessage, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModuleMessage, data_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RespawnInformation, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RespawnInformation, spawnoptions_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RespawnInformation, previouslife_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RespawnInformation, fadein_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientReady, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientReady, clientinfo_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LootableCorpsePrivate, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LootableCorpsePrivate, container_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLockPrivate, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLockPrivate, code_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLockPrivate, users_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLockPrivate, guests_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLockPrivate, guestcode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeLockPrivate, guestusers_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnedEnt, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnedEnt, uid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnedEnt, spawnpointindex_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnedEnt, mobile_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SleepingBagPrivate, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SleepingBagPrivate, deployerid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SleepingBagPrivate, deployername_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SellOrder, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SellOrder, itemtosellid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SellOrder, itemtosellamount_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SellOrder, currencyid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SellOrder, currencyamountperitem_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SellOrder, instock_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SellOrderContainer, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SellOrderContainer, sellorders_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InstanceData, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InstanceData, dataint_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InstanceData, blueprinttarget_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InstanceData, blueprintamount_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionData, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionData, condition_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionData, maxcondition_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeathInfo, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeathInfo, attackername_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeathInfo, attackersteamid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeathInfo, hitbone_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeathInfo, inflictorname_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeathInfo, lastdamagetype_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Projectile, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Projectile, projectileid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Projectile, startpos_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Projectile, startvel_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Projectile, seed_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnOptions, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnOptions, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnOptions, id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnOptions, name_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpawnOptions, unlockseconds_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientInfo, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientInfo, name_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientInfo, value_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] = {
{ 0, -1, sizeof(InputMessage)},
{ 6, -1, sizeof(PlayerTick)},
{ 15, -1, sizeof(ModelState)},
{ 22, -1, sizeof(EffectData)},
{ 35, -1, sizeof(Entity)},
{ 78, -1, sizeof(BaseNetworkable)},
{ 85, -1, sizeof(BaseEntity)},
{ 93, -1, sizeof(BaseCombat)},
{ 99, -1, sizeof(BaseNPC)},
{ 104, -1, sizeof(EntitySlots)},
{ 111, -1, sizeof(BaseResource)},
{ 117, -1, sizeof(Environment)},
{ 126, -1, sizeof(Corpse)},
{ 131, -1, sizeof(LootableCorpse)},
{ 138, -1, sizeof(ParentInfo)},
{ 144, -1, sizeof(BuildingBlock)},
{ 152, -1, sizeof(WorldItem)},
{ 157, -1, sizeof(KeyLock)},
{ 162, -1, sizeof(CodeLock)},
{ 169, -1, sizeof(BuildingPrivilege)},
{ 174, -1, sizeof(StorageBox)},
{ 179, -1, sizeof(HeldEntity)},
{ 184, -1, sizeof(Loot)},
{ 189, -1, sizeof(GenericSpawner)},
{ 194, -1, sizeof(SleepingBag)},
{ 201, -1, sizeof(Magazine)},
{ 208, -1, sizeof(BaseProjectile)},
{ 213, -1, sizeof(Sign)},
{ 218, -1, sizeof(MapEntity)},
{ 224, -1, sizeof(ResearchTable)},
{ 229, -1, sizeof(DudExplosive)},
{ 234, -1, sizeof(ResourceExtractor)},
{ 240, -1, sizeof(MiningQuarry)},
{ 245, -1, sizeof(PlantEntity)},
{ 254, -1, sizeof(Landmine)},
{ 259, -1, sizeof(Helicopter)},
{ 268, -1, sizeof(ServerGib)},
{ 273, -1, sizeof(AutoTurret)},
{ 281, -1, sizeof(SphereEntity)},
{ 286, -1, sizeof(StabilityEntity)},
{ 292, -1, sizeof(OwnerInfo)},
{ 297, -1, sizeof(DecayEntity)},
{ 302, -1, sizeof(Spawnable)},
{ 307, -1, sizeof(VendingMachine)},
{ 312, -1, sizeof(ItemContainer)},
{ 325, -1, sizeof(Item)},
{ 344, -1, sizeof(BasePlayer)},
{ 362, -1, sizeof(PlayerMetabolism)},
{ 380, -1, sizeof(PlayerInventory)},
{ 387, -1, sizeof(PersistantPlayer)},
{ 393, -1, sizeof(PlayerLifeStory)},
{ 404, -1, sizeof(PlayerNameID)},
{ 410, -1, sizeof(DemoHeader)},
{ 420, -1, sizeof(Approval)},
{ 434, -1, sizeof(UpdateItemContainer)},
{ 440, -1, sizeof(PlayerUpdateLoot)},
{ 447, -1, sizeof(UpdateItem)},
{ 452, -1, sizeof(TakeDamage)},
{ 459, -1, sizeof(EntityList)},
{ 464, -1, sizeof(CreateBuilding)},
{ 476, -1, sizeof(Attack)},
{ 491, -1, sizeof(PlayerAttack)},
{ 497, -1, sizeof(PlayerProjectileAttack)},
{ 504, -1, sizeof(PlayerProjectileRicochet)},
{ 512, -1, sizeof(PlayerProjectileUpdate)},
{ 518, -1, sizeof(ProjectileShoot)},
{ 524, -1, sizeof(ModuleMessage)},
{ 532, -1, sizeof(RespawnInformation)},
{ 539, -1, sizeof(ClientReady)},
{ 544, -1, sizeof(LootableCorpsePrivate)},
{ 549, -1, sizeof(CodeLockPrivate)},
{ 558, -1, sizeof(SpawnedEnt)},
{ 565, -1, sizeof(SleepingBagPrivate)},
{ 571, -1, sizeof(SellOrder)},
{ 580, -1, sizeof(SellOrderContainer)},
{ 585, -1, sizeof(InstanceData)},
{ 592, -1, sizeof(ConditionData)},
{ 598, -1, sizeof(DeathInfo)},
{ 607, -1, sizeof(Projectile)},
{ 615, -1, sizeof(SpawnOptions)},
{ 623, -1, sizeof(ClientInfo)},
};
static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&_InputMessage_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerTick_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ModelState_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_EffectData_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Entity_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BaseNetworkable_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BaseEntity_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BaseCombat_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BaseNPC_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_EntitySlots_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BaseResource_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Environment_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Corpse_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_LootableCorpse_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ParentInfo_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BuildingBlock_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_WorldItem_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_KeyLock_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_CodeLock_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BuildingPrivilege_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_StorageBox_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_HeldEntity_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Loot_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_GenericSpawner_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_SleepingBag_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Magazine_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BaseProjectile_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Sign_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_MapEntity_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ResearchTable_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_DudExplosive_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ResourceExtractor_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_MiningQuarry_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlantEntity_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Landmine_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Helicopter_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ServerGib_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_AutoTurret_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_SphereEntity_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_StabilityEntity_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_OwnerInfo_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_DecayEntity_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Spawnable_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_VendingMachine_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ItemContainer_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Item_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BasePlayer_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerMetabolism_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerInventory_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PersistantPlayer_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerLifeStory_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerNameID_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_DemoHeader_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Approval_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_UpdateItemContainer_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerUpdateLoot_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_UpdateItem_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_TakeDamage_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_EntityList_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_CreateBuilding_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Attack_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerAttack_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerProjectileAttack_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerProjectileRicochet_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_PlayerProjectileUpdate_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ProjectileShoot_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ModuleMessage_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_RespawnInformation_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ClientReady_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_LootableCorpsePrivate_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_CodeLockPrivate_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_SpawnedEnt_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_SleepingBagPrivate_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_SellOrder_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_SellOrderContainer_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_InstanceData_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ConditionData_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_DeathInfo_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_Projectile_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_SpawnOptions_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_ClientInfo_default_instance_),
};
namespace {
void protobuf_AssignDescriptors() {
AddDescriptors();
::google::protobuf::MessageFactory* factory = NULL;
AssignDescriptors(
"mega.proto", schemas, file_default_instances, TableStruct::offsets, factory,
file_level_metadata, file_level_enum_descriptors, NULL);
}
void protobuf_AssignDescriptorsOnce() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
}
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 81);
}
} // namespace
void TableStruct::Shutdown() {
_InputMessage_default_instance_.Shutdown();
delete file_level_metadata[0].reflection;
_PlayerTick_default_instance_.Shutdown();
delete file_level_metadata[1].reflection;
_ModelState_default_instance_.Shutdown();
delete file_level_metadata[2].reflection;
_EffectData_default_instance_.Shutdown();
delete file_level_metadata[3].reflection;
_Entity_default_instance_.Shutdown();
delete file_level_metadata[4].reflection;
_BaseNetworkable_default_instance_.Shutdown();
delete file_level_metadata[5].reflection;
_BaseEntity_default_instance_.Shutdown();
delete file_level_metadata[6].reflection;
_BaseCombat_default_instance_.Shutdown();
delete file_level_metadata[7].reflection;
_BaseNPC_default_instance_.Shutdown();
delete file_level_metadata[8].reflection;
_EntitySlots_default_instance_.Shutdown();
delete file_level_metadata[9].reflection;
_BaseResource_default_instance_.Shutdown();
delete file_level_metadata[10].reflection;
_Environment_default_instance_.Shutdown();
delete file_level_metadata[11].reflection;
_Corpse_default_instance_.Shutdown();
delete file_level_metadata[12].reflection;
_LootableCorpse_default_instance_.Shutdown();
delete file_level_metadata[13].reflection;
_ParentInfo_default_instance_.Shutdown();
delete file_level_metadata[14].reflection;
_BuildingBlock_default_instance_.Shutdown();
delete file_level_metadata[15].reflection;
_WorldItem_default_instance_.Shutdown();
delete file_level_metadata[16].reflection;
_KeyLock_default_instance_.Shutdown();
delete file_level_metadata[17].reflection;
_CodeLock_default_instance_.Shutdown();
delete file_level_metadata[18].reflection;
_BuildingPrivilege_default_instance_.Shutdown();
delete file_level_metadata[19].reflection;
_StorageBox_default_instance_.Shutdown();
delete file_level_metadata[20].reflection;
_HeldEntity_default_instance_.Shutdown();
delete file_level_metadata[21].reflection;
_Loot_default_instance_.Shutdown();
delete file_level_metadata[22].reflection;
_GenericSpawner_default_instance_.Shutdown();
delete file_level_metadata[23].reflection;
_SleepingBag_default_instance_.Shutdown();
delete file_level_metadata[24].reflection;
_Magazine_default_instance_.Shutdown();
delete file_level_metadata[25].reflection;
_BaseProjectile_default_instance_.Shutdown();
delete file_level_metadata[26].reflection;
_Sign_default_instance_.Shutdown();
delete file_level_metadata[27].reflection;
_MapEntity_default_instance_.Shutdown();
delete file_level_metadata[28].reflection;
_ResearchTable_default_instance_.Shutdown();
delete file_level_metadata[29].reflection;
_DudExplosive_default_instance_.Shutdown();
delete file_level_metadata[30].reflection;
_ResourceExtractor_default_instance_.Shutdown();
delete file_level_metadata[31].reflection;
_MiningQuarry_default_instance_.Shutdown();
delete file_level_metadata[32].reflection;
_PlantEntity_default_instance_.Shutdown();
delete file_level_metadata[33].reflection;
_Landmine_default_instance_.Shutdown();
delete file_level_metadata[34].reflection;
_Helicopter_default_instance_.Shutdown();
delete file_level_metadata[35].reflection;
_ServerGib_default_instance_.Shutdown();
delete file_level_metadata[36].reflection;
_AutoTurret_default_instance_.Shutdown();
delete file_level_metadata[37].reflection;
_SphereEntity_default_instance_.Shutdown();
delete file_level_metadata[38].reflection;
_StabilityEntity_default_instance_.Shutdown();
delete file_level_metadata[39].reflection;
_OwnerInfo_default_instance_.Shutdown();
delete file_level_metadata[40].reflection;
_DecayEntity_default_instance_.Shutdown();
delete file_level_metadata[41].reflection;
_Spawnable_default_instance_.Shutdown();
delete file_level_metadata[42].reflection;
_VendingMachine_default_instance_.Shutdown();
delete file_level_metadata[43].reflection;
_ItemContainer_default_instance_.Shutdown();
delete file_level_metadata[44].reflection;
_Item_default_instance_.Shutdown();
delete file_level_metadata[45].reflection;
_BasePlayer_default_instance_.Shutdown();
delete file_level_metadata[46].reflection;
_PlayerMetabolism_default_instance_.Shutdown();
delete file_level_metadata[47].reflection;
_PlayerInventory_default_instance_.Shutdown();
delete file_level_metadata[48].reflection;
_PersistantPlayer_default_instance_.Shutdown();
delete file_level_metadata[49].reflection;
_PlayerLifeStory_default_instance_.Shutdown();
delete file_level_metadata[50].reflection;
_PlayerNameID_default_instance_.Shutdown();
delete file_level_metadata[51].reflection;
_DemoHeader_default_instance_.Shutdown();
delete file_level_metadata[52].reflection;
_Approval_default_instance_.Shutdown();
delete file_level_metadata[53].reflection;
_UpdateItemContainer_default_instance_.Shutdown();
delete file_level_metadata[54].reflection;
_PlayerUpdateLoot_default_instance_.Shutdown();
delete file_level_metadata[55].reflection;
_UpdateItem_default_instance_.Shutdown();
delete file_level_metadata[56].reflection;
_TakeDamage_default_instance_.Shutdown();
delete file_level_metadata[57].reflection;
_EntityList_default_instance_.Shutdown();
delete file_level_metadata[58].reflection;
_CreateBuilding_default_instance_.Shutdown();
delete file_level_metadata[59].reflection;
_Attack_default_instance_.Shutdown();
delete file_level_metadata[60].reflection;
_PlayerAttack_default_instance_.Shutdown();
delete file_level_metadata[61].reflection;
_PlayerProjectileAttack_default_instance_.Shutdown();
delete file_level_metadata[62].reflection;
_PlayerProjectileRicochet_default_instance_.Shutdown();
delete file_level_metadata[63].reflection;
_PlayerProjectileUpdate_default_instance_.Shutdown();
delete file_level_metadata[64].reflection;
_ProjectileShoot_default_instance_.Shutdown();
delete file_level_metadata[65].reflection;
_ModuleMessage_default_instance_.Shutdown();
delete file_level_metadata[66].reflection;
_RespawnInformation_default_instance_.Shutdown();
delete file_level_metadata[67].reflection;
_ClientReady_default_instance_.Shutdown();
delete file_level_metadata[68].reflection;
_LootableCorpsePrivate_default_instance_.Shutdown();
delete file_level_metadata[69].reflection;
_CodeLockPrivate_default_instance_.Shutdown();
delete file_level_metadata[70].reflection;
_SpawnedEnt_default_instance_.Shutdown();
delete file_level_metadata[71].reflection;
_SleepingBagPrivate_default_instance_.Shutdown();
delete file_level_metadata[72].reflection;
_SellOrder_default_instance_.Shutdown();
delete file_level_metadata[73].reflection;
_SellOrderContainer_default_instance_.Shutdown();
delete file_level_metadata[74].reflection;
_InstanceData_default_instance_.Shutdown();
delete file_level_metadata[75].reflection;
_ConditionData_default_instance_.Shutdown();
delete file_level_metadata[76].reflection;
_DeathInfo_default_instance_.Shutdown();
delete file_level_metadata[77].reflection;
_Projectile_default_instance_.Shutdown();
delete file_level_metadata[78].reflection;
_SpawnOptions_default_instance_.Shutdown();
delete file_level_metadata[79].reflection;
_ClientInfo_default_instance_.Shutdown();
delete file_level_metadata[80].reflection;
}
void TableStruct::InitDefaultsImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::internal::InitProtobufDefaults();
::protobuf_Vector3Serialized_2eproto::InitDefaults();
::protobuf_RaySerialized_2eproto::InitDefaults();
_InputMessage_default_instance_.DefaultConstruct();
_PlayerTick_default_instance_.DefaultConstruct();
_ModelState_default_instance_.DefaultConstruct();
_EffectData_default_instance_.DefaultConstruct();
_Entity_default_instance_.DefaultConstruct();
_BaseNetworkable_default_instance_.DefaultConstruct();
_BaseEntity_default_instance_.DefaultConstruct();
_BaseCombat_default_instance_.DefaultConstruct();
_BaseNPC_default_instance_.DefaultConstruct();
_EntitySlots_default_instance_.DefaultConstruct();
_BaseResource_default_instance_.DefaultConstruct();
_Environment_default_instance_.DefaultConstruct();
_Corpse_default_instance_.DefaultConstruct();
_LootableCorpse_default_instance_.DefaultConstruct();
_ParentInfo_default_instance_.DefaultConstruct();
_BuildingBlock_default_instance_.DefaultConstruct();
_WorldItem_default_instance_.DefaultConstruct();
_KeyLock_default_instance_.DefaultConstruct();
_CodeLock_default_instance_.DefaultConstruct();
_BuildingPrivilege_default_instance_.DefaultConstruct();
_StorageBox_default_instance_.DefaultConstruct();
_HeldEntity_default_instance_.DefaultConstruct();
_Loot_default_instance_.DefaultConstruct();
_GenericSpawner_default_instance_.DefaultConstruct();
_SleepingBag_default_instance_.DefaultConstruct();
_Magazine_default_instance_.DefaultConstruct();
_BaseProjectile_default_instance_.DefaultConstruct();
_Sign_default_instance_.DefaultConstruct();
_MapEntity_default_instance_.DefaultConstruct();
_ResearchTable_default_instance_.DefaultConstruct();
_DudExplosive_default_instance_.DefaultConstruct();
_ResourceExtractor_default_instance_.DefaultConstruct();
_MiningQuarry_default_instance_.DefaultConstruct();
_PlantEntity_default_instance_.DefaultConstruct();
_Landmine_default_instance_.DefaultConstruct();
_Helicopter_default_instance_.DefaultConstruct();
_ServerGib_default_instance_.DefaultConstruct();
_AutoTurret_default_instance_.DefaultConstruct();
_SphereEntity_default_instance_.DefaultConstruct();
_StabilityEntity_default_instance_.DefaultConstruct();
_OwnerInfo_default_instance_.DefaultConstruct();
_DecayEntity_default_instance_.DefaultConstruct();
_Spawnable_default_instance_.DefaultConstruct();
_VendingMachine_default_instance_.DefaultConstruct();
_ItemContainer_default_instance_.DefaultConstruct();
_Item_default_instance_.DefaultConstruct();
_BasePlayer_default_instance_.DefaultConstruct();
_PlayerMetabolism_default_instance_.DefaultConstruct();
_PlayerInventory_default_instance_.DefaultConstruct();
_PersistantPlayer_default_instance_.DefaultConstruct();
_PlayerLifeStory_default_instance_.DefaultConstruct();
_PlayerNameID_default_instance_.DefaultConstruct();
_DemoHeader_default_instance_.DefaultConstruct();
_Approval_default_instance_.DefaultConstruct();
_UpdateItemContainer_default_instance_.DefaultConstruct();
_PlayerUpdateLoot_default_instance_.DefaultConstruct();
_UpdateItem_default_instance_.DefaultConstruct();
_TakeDamage_default_instance_.DefaultConstruct();
_EntityList_default_instance_.DefaultConstruct();
_CreateBuilding_default_instance_.DefaultConstruct();
_Attack_default_instance_.DefaultConstruct();
_PlayerAttack_default_instance_.DefaultConstruct();
_PlayerProjectileAttack_default_instance_.DefaultConstruct();
_PlayerProjectileRicochet_default_instance_.DefaultConstruct();
_PlayerProjectileUpdate_default_instance_.DefaultConstruct();
_ProjectileShoot_default_instance_.DefaultConstruct();
_ModuleMessage_default_instance_.DefaultConstruct();
_RespawnInformation_default_instance_.DefaultConstruct();
_ClientReady_default_instance_.DefaultConstruct();
_LootableCorpsePrivate_default_instance_.DefaultConstruct();
_CodeLockPrivate_default_instance_.DefaultConstruct();
_SpawnedEnt_default_instance_.DefaultConstruct();
_SleepingBagPrivate_default_instance_.DefaultConstruct();
_SellOrder_default_instance_.DefaultConstruct();
_SellOrderContainer_default_instance_.DefaultConstruct();
_InstanceData_default_instance_.DefaultConstruct();
_ConditionData_default_instance_.DefaultConstruct();
_DeathInfo_default_instance_.DefaultConstruct();
_Projectile_default_instance_.DefaultConstruct();
_SpawnOptions_default_instance_.DefaultConstruct();
_ClientInfo_default_instance_.DefaultConstruct();
_InputMessage_default_instance_.get_mutable()->aimangles_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_PlayerTick_default_instance_.get_mutable()->inputstate_ = const_cast< ::InputMessage*>(
::InputMessage::internal_default_instance());
_PlayerTick_default_instance_.get_mutable()->position_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_PlayerTick_default_instance_.get_mutable()->modelstate_ = const_cast< ::ModelState*>(
::ModelState::internal_default_instance());
_PlayerTick_default_instance_.get_mutable()->eyepos_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_ModelState_default_instance_.get_mutable()->lookdir_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_EffectData_default_instance_.get_mutable()->origin_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_EffectData_default_instance_.get_mutable()->normal_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Entity_default_instance_.get_mutable()->basenetworkable_ = const_cast< ::BaseNetworkable*>(
::BaseNetworkable::internal_default_instance());
_Entity_default_instance_.get_mutable()->baseentity_ = const_cast< ::BaseEntity*>(
::BaseEntity::internal_default_instance());
_Entity_default_instance_.get_mutable()->baseplayer_ = const_cast< ::BasePlayer*>(
::BasePlayer::internal_default_instance());
_Entity_default_instance_.get_mutable()->worlditem_ = const_cast< ::WorldItem*>(
::WorldItem::internal_default_instance());
_Entity_default_instance_.get_mutable()->resource_ = const_cast< ::BaseResource*>(
::BaseResource::internal_default_instance());
_Entity_default_instance_.get_mutable()->buildingblock_ = const_cast< ::BuildingBlock*>(
::BuildingBlock::internal_default_instance());
_Entity_default_instance_.get_mutable()->environment_ = const_cast< ::Environment*>(
::Environment::internal_default_instance());
_Entity_default_instance_.get_mutable()->corpse_ = const_cast< ::Corpse*>(
::Corpse::internal_default_instance());
_Entity_default_instance_.get_mutable()->parent_ = const_cast< ::ParentInfo*>(
::ParentInfo::internal_default_instance());
_Entity_default_instance_.get_mutable()->keylock_ = const_cast< ::KeyLock*>(
::KeyLock::internal_default_instance());
_Entity_default_instance_.get_mutable()->codelock_ = const_cast< ::CodeLock*>(
::CodeLock::internal_default_instance());
_Entity_default_instance_.get_mutable()->entityslots_ = const_cast< ::EntitySlots*>(
::EntitySlots::internal_default_instance());
_Entity_default_instance_.get_mutable()->buildingprivilege_ = const_cast< ::BuildingPrivilege*>(
::BuildingPrivilege::internal_default_instance());
_Entity_default_instance_.get_mutable()->storagebox_ = const_cast< ::StorageBox*>(
::StorageBox::internal_default_instance());
_Entity_default_instance_.get_mutable()->heldentity_ = const_cast< ::HeldEntity*>(
::HeldEntity::internal_default_instance());
_Entity_default_instance_.get_mutable()->baseprojectile_ = const_cast< ::BaseProjectile*>(
::BaseProjectile::internal_default_instance());
_Entity_default_instance_.get_mutable()->basenpc_ = const_cast< ::BaseNPC*>(
::BaseNPC::internal_default_instance());
_Entity_default_instance_.get_mutable()->loot_ = const_cast< ::Loot*>(
::Loot::internal_default_instance());
_Entity_default_instance_.get_mutable()->genericspawner_ = const_cast< ::GenericSpawner*>(
::GenericSpawner::internal_default_instance());
_Entity_default_instance_.get_mutable()->sleepingbag_ = const_cast< ::SleepingBag*>(
::SleepingBag::internal_default_instance());
_Entity_default_instance_.get_mutable()->lootablecorpse_ = const_cast< ::LootableCorpse*>(
::LootableCorpse::internal_default_instance());
_Entity_default_instance_.get_mutable()->sign_ = const_cast< ::Sign*>(
::Sign::internal_default_instance());
_Entity_default_instance_.get_mutable()->basecombat_ = const_cast< ::BaseCombat*>(
::BaseCombat::internal_default_instance());
_Entity_default_instance_.get_mutable()->mapentity_ = const_cast< ::MapEntity*>(
::MapEntity::internal_default_instance());
_Entity_default_instance_.get_mutable()->researchtable_ = const_cast< ::ResearchTable*>(
::ResearchTable::internal_default_instance());
_Entity_default_instance_.get_mutable()->dudexplosive_ = const_cast< ::DudExplosive*>(
::DudExplosive::internal_default_instance());
_Entity_default_instance_.get_mutable()->miningquarry_ = const_cast< ::MiningQuarry*>(
::MiningQuarry::internal_default_instance());
_Entity_default_instance_.get_mutable()->plantentity_ = const_cast< ::PlantEntity*>(
::PlantEntity::internal_default_instance());
_Entity_default_instance_.get_mutable()->helicopter_ = const_cast< ::Helicopter*>(
::Helicopter::internal_default_instance());
_Entity_default_instance_.get_mutable()->landmine_ = const_cast< ::Landmine*>(
::Landmine::internal_default_instance());
_Entity_default_instance_.get_mutable()->autoturret_ = const_cast< ::AutoTurret*>(
::AutoTurret::internal_default_instance());
_Entity_default_instance_.get_mutable()->sphereentity_ = const_cast< ::SphereEntity*>(
::SphereEntity::internal_default_instance());
_Entity_default_instance_.get_mutable()->stabilityentity_ = const_cast< ::StabilityEntity*>(
::StabilityEntity::internal_default_instance());
_Entity_default_instance_.get_mutable()->ownerinfo_ = const_cast< ::OwnerInfo*>(
::OwnerInfo::internal_default_instance());
_Entity_default_instance_.get_mutable()->decayentity_ = const_cast< ::DecayEntity*>(
::DecayEntity::internal_default_instance());
_Entity_default_instance_.get_mutable()->spawnable_ = const_cast< ::Spawnable*>(
::Spawnable::internal_default_instance());
_Entity_default_instance_.get_mutable()->servergib_ = const_cast< ::ServerGib*>(
::ServerGib::internal_default_instance());
_Entity_default_instance_.get_mutable()->vendingmachine_ = const_cast< ::VendingMachine*>(
::VendingMachine::internal_default_instance());
_BaseEntity_default_instance_.get_mutable()->pos_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_BaseEntity_default_instance_.get_mutable()->rot_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_LootableCorpse_default_instance_.get_mutable()->privatedata_ = const_cast< ::LootableCorpsePrivate*>(
::LootableCorpsePrivate::internal_default_instance());
_WorldItem_default_instance_.get_mutable()->item_ = const_cast< ::Item*>(
::Item::internal_default_instance());
_CodeLock_default_instance_.get_mutable()->pv_ = const_cast< ::CodeLockPrivate*>(
::CodeLockPrivate::internal_default_instance());
_StorageBox_default_instance_.get_mutable()->contents_ = const_cast< ::ItemContainer*>(
::ItemContainer::internal_default_instance());
_Loot_default_instance_.get_mutable()->contents_ = const_cast< ::ItemContainer*>(
::ItemContainer::internal_default_instance());
_SleepingBag_default_instance_.get_mutable()->privatedata_ = const_cast< ::SleepingBagPrivate*>(
::SleepingBagPrivate::internal_default_instance());
_BaseProjectile_default_instance_.get_mutable()->primarymagazine_ = const_cast< ::Magazine*>(
::Magazine::internal_default_instance());
_ResourceExtractor_default_instance_.get_mutable()->fuelcontents_ = const_cast< ::ItemContainer*>(
::ItemContainer::internal_default_instance());
_ResourceExtractor_default_instance_.get_mutable()->outputcontents_ = const_cast< ::ItemContainer*>(
::ItemContainer::internal_default_instance());
_MiningQuarry_default_instance_.get_mutable()->extractor_ = const_cast< ::ResourceExtractor*>(
::ResourceExtractor::internal_default_instance());
_Helicopter_default_instance_.get_mutable()->tiltrot_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Helicopter_default_instance_.get_mutable()->leftgun_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Helicopter_default_instance_.get_mutable()->rightgun_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Helicopter_default_instance_.get_mutable()->spotlightvec_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_AutoTurret_default_instance_.get_mutable()->aimpos_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_AutoTurret_default_instance_.get_mutable()->aimdir_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_VendingMachine_default_instance_.get_mutable()->sellordercontainer_ = const_cast< ::SellOrderContainer*>(
::SellOrderContainer::internal_default_instance());
_Item_default_instance_.get_mutable()->instancedata_ = const_cast< ::InstanceData*>(
::InstanceData::internal_default_instance());
_Item_default_instance_.get_mutable()->conditiondata_ = const_cast< ::ConditionData*>(
::ConditionData::internal_default_instance());
_Item_default_instance_.get_mutable()->contents_ = const_cast< ::ItemContainer*>(
::ItemContainer::internal_default_instance());
_BasePlayer_default_instance_.get_mutable()->inventory_ = const_cast< ::PlayerInventory*>(
::PlayerInventory::internal_default_instance());
_BasePlayer_default_instance_.get_mutable()->metabolism_ = const_cast< ::PlayerMetabolism*>(
::PlayerMetabolism::internal_default_instance());
_BasePlayer_default_instance_.get_mutable()->modelstate_ = const_cast< ::ModelState*>(
::ModelState::internal_default_instance());
_BasePlayer_default_instance_.get_mutable()->persistantdata_ = const_cast< ::PersistantPlayer*>(
::PersistantPlayer::internal_default_instance());
_BasePlayer_default_instance_.get_mutable()->currentlife_ = const_cast< ::PlayerLifeStory*>(
::PlayerLifeStory::internal_default_instance());
_BasePlayer_default_instance_.get_mutable()->previouslife_ = const_cast< ::PlayerLifeStory*>(
::PlayerLifeStory::internal_default_instance());
_PlayerInventory_default_instance_.get_mutable()->invmain_ = const_cast< ::ItemContainer*>(
::ItemContainer::internal_default_instance());
_PlayerInventory_default_instance_.get_mutable()->invbelt_ = const_cast< ::ItemContainer*>(
::ItemContainer::internal_default_instance());
_PlayerInventory_default_instance_.get_mutable()->invwear_ = const_cast< ::ItemContainer*>(
::ItemContainer::internal_default_instance());
_PlayerLifeStory_default_instance_.get_mutable()->deathinfo_ = const_cast< ::DeathInfo*>(
::DeathInfo::internal_default_instance());
_UpdateItem_default_instance_.get_mutable()->item_ = const_cast< ::Item*>(
::Item::internal_default_instance());
_TakeDamage_default_instance_.get_mutable()->direction_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_CreateBuilding_default_instance_.get_mutable()->position_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_CreateBuilding_default_instance_.get_mutable()->normal_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_CreateBuilding_default_instance_.get_mutable()->ray_ = const_cast< ::RaySerialized*>(
::RaySerialized::internal_default_instance());
_CreateBuilding_default_instance_.get_mutable()->rotation_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Attack_default_instance_.get_mutable()->pointstart_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Attack_default_instance_.get_mutable()->pointend_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Attack_default_instance_.get_mutable()->hitnormallocal_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Attack_default_instance_.get_mutable()->hitpositionlocal_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Attack_default_instance_.get_mutable()->hitnormalworld_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Attack_default_instance_.get_mutable()->hitpositionworld_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_PlayerAttack_default_instance_.get_mutable()->attack_ = const_cast< ::Attack*>(
::Attack::internal_default_instance());
_PlayerProjectileAttack_default_instance_.get_mutable()->playerattack_ = const_cast< ::PlayerAttack*>(
::PlayerAttack::internal_default_instance());
_PlayerProjectileAttack_default_instance_.get_mutable()->hitvelocity_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_PlayerProjectileRicochet_default_instance_.get_mutable()->hitposition_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_PlayerProjectileRicochet_default_instance_.get_mutable()->invelocity_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_PlayerProjectileRicochet_default_instance_.get_mutable()->outvelocity_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_PlayerProjectileUpdate_default_instance_.get_mutable()->curposition_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_RespawnInformation_default_instance_.get_mutable()->previouslife_ = const_cast< ::PlayerLifeStory*>(
::PlayerLifeStory::internal_default_instance());
_Projectile_default_instance_.get_mutable()->startpos_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
_Projectile_default_instance_.get_mutable()->startvel_ = const_cast< ::Vector3Serialized*>(
::Vector3Serialized::internal_default_instance());
}
void InitDefaults() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
}
void AddDescriptorsImpl() {
InitDefaults();
static const char descriptor[] = {
"\n\nmega.proto\032\027Vector3Serialized.proto\032\023R"
"aySerialized.proto\"F\n\014InputMessage\022\017\n\007bu"
"ttons\030\001 \001(\005\022%\n\taimAngles\030\002 \001(\0132\022.Vector3"
"Serialized\"\256\001\n\nPlayerTick\022!\n\ninputState\030"
"\001 \001(\0132\r.InputMessage\022$\n\010position\030\002 \001(\0132\022"
".Vector3Serialized\022\037\n\nmodelState\030\004 \001(\0132\013"
".ModelState\022\022\n\nactiveItem\030\005 \001(\r\022\"\n\006eyePo"
"s\030\006 \001(\0132\022.Vector3Serialized\"T\n\nModelStat"
"e\022\022\n\nwaterLevel\030\004 \001(\002\022#\n\007lookDir\030\n \001(\0132\022"
".Vector3Serialized\022\r\n\005flags\030\013 \001(\005\"\307\001\n\nEf"
"fectData\022\014\n\004type\030\001 \001(\r\022\026\n\016pooledstringid"
"\030\002 \001(\r\022\016\n\006number\030\003 \001(\005\022\"\n\006origin\030\004 \001(\0132\022"
".Vector3Serialized\022\"\n\006normal\030\005 \001(\0132\022.Vec"
"tor3Serialized\022\r\n\005scale\030\006 \001(\002\022\016\n\006entity\030"
"\007 \001(\r\022\014\n\004bone\030\010 \001(\r\022\016\n\006source\030\t \001(\004\"\252\n\n\006"
"Entity\022)\n\017baseNetworkable\030\001 \001(\0132\020.BaseNe"
"tworkable\022\037\n\nbaseEntity\030\002 \001(\0132\013.BaseEnti"
"ty\022\037\n\nbasePlayer\030\003 \001(\0132\013.BasePlayer\022\035\n\tw"
"orldItem\030\004 \001(\0132\n.WorldItem\022\037\n\010resource\030\005"
" \001(\0132\r.BaseResource\022%\n\rbuildingBlock\030\006 \001"
"(\0132\016.BuildingBlock\022!\n\013environment\030\007 \001(\0132"
"\014.Environment\022\027\n\006corpse\030\010 \001(\0132\007.Corpse\022\033"
"\n\006parent\030\n \001(\0132\013.ParentInfo\022\031\n\007keyLock\030\013"
" \001(\0132\010.KeyLock\022\033\n\010codeLock\030\014 \001(\0132\t.CodeL"
"ock\022!\n\013entitySlots\030\r \001(\0132\014.EntitySlots\022-"
"\n\021buildingPrivilege\030\016 \001(\0132\022.BuildingPriv"
"ilege\022\037\n\nstorageBox\030\017 \001(\0132\013.StorageBox\022\037"
"\n\nheldEntity\030\020 \001(\0132\013.HeldEntity\022\'\n\016baseP"
"rojectile\030\021 \001(\0132\017.BaseProjectile\022\031\n\007base"
"NPC\030\022 \001(\0132\010.BaseNPC\022\023\n\004loot\030\023 \001(\0132\005.Loot"
"\022\'\n\016genericSpawner\030\024 \001(\0132\017.GenericSpawne"
"r\022!\n\013sleepingBag\030\025 \001(\0132\014.SleepingBag\022\'\n\016"
"lootableCorpse\030\026 \001(\0132\017.LootableCorpse\022\023\n"
"\004sign\030\027 \001(\0132\005.Sign\022\037\n\nbaseCombat\030\030 \001(\0132\013"
".BaseCombat\022\035\n\tmapEntity\030\031 \001(\0132\n.MapEnti"
"ty\022%\n\rresearchTable\030\032 \001(\0132\016.ResearchTabl"
"e\022#\n\014dudExplosive\030\033 \001(\0132\r.DudExplosive\022#"
"\n\014miningQuarry\030\034 \001(\0132\r.MiningQuarry\022!\n\013p"
"lantEntity\030\035 \001(\0132\014.PlantEntity\022\037\n\nhelico"
"pter\030\036 \001(\0132\013.Helicopter\022\033\n\010landmine\030\037 \001("
"\0132\t.Landmine\022\037\n\nautoturret\030 \001(\0132\013.AutoT"
"urret\022#\n\014sphereEntity\030! \001(\0132\r.SphereEnti"
"ty\022)\n\017stabilityEntity\030\" \001(\0132\020.StabilityE"
"ntity\022\035\n\townerInfo\030# \001(\0132\n.OwnerInfo\022!\n\013"
"decayEntity\030$ \001(\0132\014.DecayEntity\022\035\n\tspawn"
"able\030% \001(\0132\n.Spawnable\022\035\n\tservergib\030& \001("
"\0132\n.ServerGib\022\'\n\016vendingMachine\030\' \001(\0132\017."
"VendingMachine\022\030\n\020createdThisFrame\030d \001(\010"
"\"\?\n\017BaseNetworkable\022\013\n\003uid\030\001 \001(\r\022\r\n\005grou"
"p\030\002 \001(\r\022\020\n\010prefabID\030\003 \001(\r\"m\n\nBaseEntity\022"
"\037\n\003pos\030\001 \001(\0132\022.Vector3Serialized\022\037\n\003rot\030"
"\002 \001(\0132\022.Vector3Serialized\022\r\n\005flags\030\003 \001(\005"
"\022\016\n\006skinid\030\005 \001(\004\"+\n\nBaseCombat\022\r\n\005state\030"
"\001 \001(\005\022\016\n\006health\030\002 \001(\002\"\030\n\007BaseNPC\022\r\n\005stat"
"e\030\001 \001(\r\"S\n\013EntitySlots\022\020\n\010slotLock\030\001 \001(\r"
"\022\023\n\013slotFireMod\030\002 \001(\r\022\035\n\025slotUpperModifi"
"cation\030\003 \001(\r\"-\n\014BaseResource\022\r\n\005stage\030\001 "
"\001(\005\022\016\n\006health\030\002 \001(\002\"X\n\013Environment\022\020\n\010da"
"teTime\030\001 \001(\003\022\016\n\006clouds\030\002 \001(\002\022\013\n\003fog\030\003 \001("
"\002\022\014\n\004wind\030\004 \001(\002\022\014\n\004rain\030\005 \001(\002\"\032\n\006Corpse\022"
"\020\n\010parentID\030\001 \001(\r\"c\n\016LootableCorpse\022+\n\013p"
"rivateData\030\001 \001(\0132\026.LootableCorpsePrivate"
"\022\020\n\010playerID\030\002 \001(\004\022\022\n\nplayerName\030\003 \001(\t\"\'"
"\n\nParentInfo\022\013\n\003uid\030\001 \001(\r\022\014\n\004bone\030\002 \001(\r\""
"^\n\rBuildingBlock\022\r\n\005grade\030\002 \001(\005\022\027\n\017being"
"Demolished\030\003 \001(\010\022\021\n\tstability\030\004 \001(\002\022\022\n\nb"
"uildingID\030\005 \001(\r\" \n\tWorldItem\022\023\n\004item\030\001 \001"
"(\0132\005.Item\"\027\n\007KeyLock\022\014\n\004code\030\001 \001(\005\"O\n\010Co"
"deLock\022\034\n\002pv\030\001 \001(\0132\020.CodeLockPrivate\022\017\n\007"
"hasCode\030\002 \001(\010\022\024\n\014hasGuestCode\030\003 \001(\010\"1\n\021B"
"uildingPrivilege\022\034\n\005users\030\001 \003(\0132\r.Player"
"NameID\".\n\nStorageBox\022 \n\010contents\030\001 \001(\0132\016"
".ItemContainer\"\035\n\nHeldEntity\022\017\n\007itemUID\030"
"\001 \001(\r\"(\n\004Loot\022 \n\010contents\030\001 \001(\0132\016.ItemCo"
"ntainer\"+\n\016GenericSpawner\022\031\n\004ents\030\001 \003(\0132"
"\013.SpawnedEnt\"Y\n\013SleepingBag\022\014\n\004name\030\001 \001("
"\t\022(\n\013privateData\030\002 \001(\0132\023.SleepingBagPriv"
"ate\022\022\n\ndeployerID\030\003 \001(\004\"@\n\010Magazine\022\020\n\010c"
"apacity\030\001 \001(\005\022\020\n\010contents\030\002 \001(\005\022\020\n\010ammoT"
"ype\030\003 \001(\005\"4\n\016BaseProjectile\022\"\n\017primaryMa"
"gazine\030\001 \001(\0132\t.Magazine\"\027\n\004Sign\022\017\n\007image"
"id\030\003 \001(\r\"3\n\tMapEntity\022\021\n\tfogImages\030\001 \003(\r"
"\022\023\n\013paintImages\030\002 \003(\r\")\n\rResearchTable\022\030"
"\n\020researchTimeLeft\030\001 \001(\002\"$\n\014DudExplosive"
"\022\024\n\014fuseTimeLeft\030\001 \001(\002\"a\n\021ResourceExtrac"
"tor\022$\n\014fuelContents\030\001 \001(\0132\016.ItemContaine"
"r\022&\n\016outputContents\030\002 \001(\0132\016.ItemContaine"
"r\"5\n\014MiningQuarry\022%\n\textractor\030\001 \001(\0132\022.R"
"esourceExtractor\"[\n\013PlantEntity\022\r\n\005state"
"\030\001 \001(\005\022\013\n\003age\030\002 \001(\002\022\020\n\010genetics\030\003 \001(\005\022\r\n"
"\005water\030\004 \001(\005\022\017\n\007healthy\030\005 \001(\002\"\037\n\010Landmin"
"e\022\023\n\013triggeredID\030\001 \001(\004\"\277\001\n\nHelicopter\022#\n"
"\007tiltRot\030\001 \001(\0132\022.Vector3Serialized\022#\n\007le"
"ftGun\030\002 \001(\0132\022.Vector3Serialized\022$\n\010right"
"Gun\030\003 \001(\0132\022.Vector3Serialized\022(\n\014spotlig"
"htVec\030\004 \001(\0132\022.Vector3Serialized\022\027\n\017weaks"
"pothealths\030\005 \003(\002\"\034\n\tServerGib\022\017\n\007gibName"
"\030\001 \001(\t\"\204\001\n\nAutoTurret\022\"\n\006aimPos\030\001 \001(\0132\022."
"Vector3Serialized\022\"\n\006aimDir\030\002 \001(\0132\022.Vect"
"or3Serialized\022\020\n\010targetID\030\003 \001(\r\022\034\n\005users"
"\030\004 \003(\0132\r.PlayerNameID\"\036\n\014SphereEntity\022\016\n"
"\006radius\030\001 \001(\002\"@\n\017StabilityEntity\022\021\n\tstab"
"ility\030\001 \001(\002\022\032\n\022distanceFromGround\030\002 \001(\005\""
"\034\n\tOwnerInfo\022\017\n\007steamid\030\001 \001(\004\"!\n\013DecayEn"
"tity\022\022\n\ndecayTimer\030\001 \001(\002\"\037\n\tSpawnable\022\022\n"
"\npopulation\030\001 \001(\r\"A\n\016VendingMachine\022/\n\022s"
"ellOrderContainer\030\001 \001(\0132\023.SellOrderConta"
"iner\"\304\001\n\rItemContainer\022\013\n\003UID\030\001 \001(\r\022\r\n\005s"
"lots\030\002 \001(\005\022\023\n\013temperature\030\003 \001(\002\022\r\n\005flags"
"\030\004 \001(\005\022\027\n\017allowedContents\030\005 \001(\005\022\024\n\014maxSt"
"ackSize\030\006 \001(\005\022\023\n\013allowedItem\030\007 \001(\005\022\026\n\016av"
"ailableSlots\030\010 \003(\005\022\027\n\010contents\030d \003(\0132\005.I"
"tem\"\271\002\n\004Item\022\013\n\003UID\030\001 \001(\r\022\016\n\006itemid\030\002 \001("
"\005\022\014\n\004slot\030\003 \001(\005\022\016\n\006amount\030\004 \001(\005\022\r\n\005flags"
"\030\005 \001(\005\022\022\n\nremovetime\030\006 \001(\002\022\020\n\010locktime\030\007"
" \001(\002\022\023\n\013worldEntity\030\010 \001(\r\022#\n\014instanceDat"
"a\030\t \001(\0132\r.InstanceData\022\022\n\nheldEntity\030\n \001"
"(\r\022%\n\rconditionData\030\013 \001(\0132\016.ConditionDat"
"a\022\014\n\004name\030\016 \001(\t\022\014\n\004text\030\017 \001(\t\022\016\n\006skinid\030"
"\020 \001(\004\022 \n\010contents\030d \001(\0132\016.ItemContainer\""
"\376\002\n\nBasePlayer\022\014\n\004name\030\001 \001(\t\022\016\n\006userid\030\002"
" \001(\004\022#\n\tinventory\030\003 \001(\0132\020.PlayerInventor"
"y\022%\n\nmetabolism\030\004 \001(\0132\021.PlayerMetabolism"
"\022\037\n\nmodelState\030\006 \001(\0132\013.ModelState\022\023\n\013pla"
"yerFlags\030\007 \001(\005\022\022\n\nheldEntity\030\010 \001(\r\022\016\n\006he"
"alth\030\t \001(\002\022)\n\016persistantData\030\n \001(\0132\021.Per"
"sistantPlayer\022\017\n\007skinCol\030\017 \001(\002\022\017\n\007skinTe"
"x\030\020 \001(\002\022\020\n\010skinMesh\030\021 \001(\002\022%\n\013currentLife"
"\030\024 \001(\0132\020.PlayerLifeStory\022&\n\014previousLife"
"\030\025 \001(\0132\020.PlayerLifeStory\"\244\002\n\020PlayerMetab"
"olism\022\016\n\006health\030\001 \001(\002\022\020\n\010calories\030\002 \001(\002\022"
"\021\n\thydration\030\003 \001(\002\022\021\n\theartrate\030\004 \001(\002\022\023\n"
"\013temperature\030\005 \001(\002\022\016\n\006poison\030\006 \001(\002\022\027\n\017ra"
"diation_level\030\007 \001(\002\022\017\n\007wetness\030\010 \001(\002\022\021\n\t"
"dirtyness\030\t \001(\002\022\016\n\006oxygen\030\n \001(\002\022\020\n\010bleed"
"ing\030\013 \001(\002\022\033\n\023radiation_poisoning\030\014 \001(\002\022\017"
"\n\007comfort\030\r \001(\002\022\026\n\016pending_health\030\016 \001(\002\""
"t\n\017PlayerInventory\022\037\n\007invMain\030\001 \001(\0132\016.It"
"emContainer\022\037\n\007invBelt\030\002 \001(\0132\016.ItemConta"
"iner\022\037\n\007invWear\030\003 \001(\0132\016.ItemContainer\"B\n"
"\020PersistantPlayer\022\025\n\runlockedItems\030\003 \003(\005"
"\022\027\n\017protocolVersion\030d \001(\005\"\255\001\n\017PlayerLife"
"Story\022\024\n\014secondsAlive\030d \001(\002\022\024\n\014metersWal"
"ked\030e \001(\002\022\021\n\tmetersRun\030f \001(\002\022\027\n\017secondsS"
"leeping\030g \001(\002\022\020\n\010timeBorn\030h \001(\r\022\020\n\010timeD"
"ied\030i \001(\r\022\036\n\tdeathInfo\030\310\001 \001(\0132\n.DeathInf"
"o\"0\n\014PlayerNameID\022\020\n\010username\030\001 \001(\t\022\016\n\006u"
"serid\030\002 \001(\004\"y\n\nDemoHeader\022\017\n\007version\030\001 \001"
"(\r\022\r\n\005level\030\002 \001(\t\022\021\n\tlevelSeed\030\003 \001(\r\022\021\n\t"
"levelSize\030\004 \001(\r\022\020\n\010checksum\030\005 \001(\t\022\023\n\013loc"
"alclient\030\006 \001(\004\"\267\001\n\010Approval\022\r\n\005level\030\002 \001"
"(\t\022\020\n\010hostname\030\003 \001(\t\022\016\n\006modded\030\004 \001(\010\022\020\n\010"
"official\030\005 \001(\010\022\017\n\007steamid\030\006 \001(\004\022\021\n\tipadd"
"ress\030\007 \001(\r\022\014\n\004port\030\010 \001(\005\022\021\n\tlevelSeed\030\t "
"\001(\r\022\021\n\tlevelSize\030\n \001(\r\022\020\n\010checksum\030\013 \001(\t"
"\"F\n\023UpdateItemContainer\022\014\n\004type\030\001 \001(\005\022!\n"
"\tcontainer\030\002 \003(\0132\016.ItemContainer\"X\n\020Play"
"erUpdateLoot\022\016\n\006itemID\030\001 \001(\r\022\020\n\010entityID"
"\030\002 \001(\r\022\"\n\ncontainers\030\003 \003(\0132\016.ItemContain"
"er\"!\n\nUpdateItem\022\023\n\004item\030\001 \001(\0132\005.Item\"Q\n"
"\nTakeDamage\022\016\n\006amount\030\001 \001(\002\022%\n\tdirection"
"\030\002 \001(\0132\022.Vector3Serialized\022\014\n\004type\030\003 \001(\005"
"\"%\n\nEntityList\022\027\n\006entity\030\001 \003(\0132\007.Entity\""
"\341\001\n\016CreateBuilding\022\016\n\006entity\030\001 \001(\r\022\016\n\006so"
"cket\030\002 \001(\r\022\021\n\tonterrain\030\003 \001(\010\022$\n\010positio"
"n\030\004 \001(\0132\022.Vector3Serialized\022\"\n\006normal\030\005 "
"\001(\0132\022.Vector3Serialized\022\033\n\003ray\030\006 \001(\0132\016.R"
"aySerialized\022\017\n\007blockID\030\007 \001(\r\022$\n\010rotatio"
"n\030\010 \001(\0132\022.Vector3Serialized\"\345\002\n\006Attack\022&"
"\n\npointStart\030\001 \001(\0132\022.Vector3Serialized\022$"
"\n\010pointEnd\030\002 \001(\0132\022.Vector3Serialized\022\r\n\005"
"hitID\030\003 \001(\r\022\017\n\007hitBone\030\004 \001(\r\022*\n\016hitNorma"
"lLocal\030\005 \001(\0132\022.Vector3Serialized\022,\n\020hitP"
"ositionLocal\030\006 \001(\0132\022.Vector3Serialized\022*"
"\n\016hitNormalWorld\030\007 \001(\0132\022.Vector3Serializ"
"ed\022,\n\020hitPositionWorld\030\010 \001(\0132\022.Vector3Se"
"rialized\022\021\n\thitPartID\030\t \001(\r\022\025\n\rhitMateri"
"alID\030\n \001(\r\022\017\n\007hitItem\030\013 \001(\r\"=\n\014PlayerAtt"
"ack\022\027\n\006attack\030\001 \001(\0132\007.Attack\022\024\n\014projecti"
"leID\030\002 \001(\005\"{\n\026PlayerProjectileAttack\022#\n\014"
"playerAttack\030\001 \001(\0132\r.PlayerAttack\022\'\n\013hit"
"Velocity\030\002 \001(\0132\022.Vector3Serialized\022\023\n\013hi"
"tDistance\030\003 \001(\002\"\252\001\n\030PlayerProjectileRico"
"chet\022\024\n\014projectileID\030\001 \001(\005\022\'\n\013hitPositio"
"n\030\002 \001(\0132\022.Vector3Serialized\022&\n\ninVelocit"
"y\030\003 \001(\0132\022.Vector3Serialized\022\'\n\013outVeloci"
"ty\030\004 \001(\0132\022.Vector3Serialized\"W\n\026PlayerPr"
"ojectileUpdate\022\024\n\014projectileID\030\001 \001(\005\022\'\n\013"
"curPosition\030\002 \001(\0132\022.Vector3Serialized\"E\n"
"\017ProjectileShoot\022\020\n\010ammoType\030\001 \001(\005\022 \n\013pr"
"ojectiles\030\002 \003(\0132\013.Projectile\"M\n\rModuleMe"
"ssage\022\016\n\006itemid\030\001 \001(\r\022\020\n\010moduleid\030\002 \001(\005\022"
"\014\n\004type\030\003 \001(\005\022\014\n\004data\030\004 \001(\014\"q\n\022RespawnIn"
"formation\022#\n\014spawnOptions\030\001 \003(\0132\r.SpawnO"
"ptions\022&\n\014previousLife\030\002 \001(\0132\020.PlayerLif"
"eStory\022\016\n\006fadeIn\030\003 \001(\010\".\n\013ClientReady\022\037\n"
"\nclientInfo\030\001 \003(\0132\013.ClientInfo\":\n\025Lootab"
"leCorpsePrivate\022!\n\tcontainer\030\001 \003(\0132\016.Ite"
"mContainer\"e\n\017CodeLockPrivate\022\014\n\004code\030\001 "
"\001(\t\022\r\n\005users\030\002 \003(\004\022\016\n\006guests\030\003 \003(\004\022\021\n\tgu"
"estCode\030\004 \001(\t\022\022\n\nguestUsers\030\005 \003(\004\"B\n\nSpa"
"wnedEnt\022\013\n\003uid\030\001 \001(\r\022\027\n\017spawnPointIndex\030"
"\002 \001(\r\022\016\n\006mobile\030\003 \001(\010\">\n\022SleepingBagPriv"
"ate\022\022\n\ndeployerID\030\001 \001(\004\022\024\n\014deployerName\030"
"\002 \001(\t\"\177\n\tSellOrder\022\024\n\014itemToSellID\030\001 \001(\005"
"\022\030\n\020itemToSellAmount\030\002 \001(\005\022\022\n\ncurrencyID"
"\030\003 \001(\005\022\035\n\025currencyAmountPerItem\030\004 \001(\005\022\017\n"
"\007inStock\030\005 \001(\005\"4\n\022SellOrderContainer\022\036\n\n"
"sellOrders\030\001 \003(\0132\n.SellOrder\"Q\n\014Instance"
"Data\022\017\n\007dataInt\030\001 \001(\005\022\027\n\017blueprintTarget"
"\030\002 \001(\005\022\027\n\017blueprintAmount\030\003 \001(\005\"8\n\rCondi"
"tionData\022\021\n\tcondition\030\001 \001(\002\022\024\n\014maxCondit"
"ion\030\002 \001(\002\"z\n\tDeathInfo\022\024\n\014attackerName\030\001"
" \001(\t\022\027\n\017attackerSteamID\030\002 \001(\004\022\017\n\007hitBone"
"\030\003 \001(\t\022\025\n\rinflictorName\030\004 \001(\t\022\026\n\016lastDam"
"ageType\030\005 \001(\005\"|\n\nProjectile\022\024\n\014projectil"
"eID\030\001 \001(\005\022$\n\010startPos\030\002 \001(\0132\022.Vector3Ser"
"ialized\022$\n\010startVel\030\003 \001(\0132\022.Vector3Seria"
"lized\022\014\n\004seed\030\004 \001(\005\"[\n\014SpawnOptions\022\032\n\004t"
"ype\030\001 \001(\0162\014.RespawnType\022\n\n\002id\030\002 \001(\r\022\014\n\004n"
"ame\030\003 \001(\t\022\025\n\runlockSeconds\030\004 \001(\002\")\n\nClie"
"ntInfo\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t*/\n\013R"
"espawnType\022\023\n\017SleepingBagType\020\000\022\013\n\007BedTy"
"pe\020\001b\006proto3"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 8932);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"mega.proto", &protobuf_RegisterTypes);
::protobuf_Vector3Serialized_2eproto::AddDescriptors();
::protobuf_RaySerialized_2eproto::AddDescriptors();
::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
}
void AddDescriptors() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer {
StaticDescriptorInitializer() {
AddDescriptors();
}
} static_descriptor_initializer;
} // namespace protobuf_mega_2eproto
const ::google::protobuf::EnumDescriptor* RespawnType_descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_enum_descriptors[0];
}
bool RespawnType_IsValid(int value) {
switch (value) {
case 0:
case 1:
return true;
default:
return false;
}
}
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int InputMessage::kButtonsFieldNumber;
const int InputMessage::kAimAnglesFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
InputMessage::InputMessage()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:InputMessage)
}
InputMessage::InputMessage(const InputMessage& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_aimangles()) {
aimangles_ = new ::Vector3Serialized(*from.aimangles_);
} else {
aimangles_ = NULL;
}
buttons_ = from.buttons_;
// @@protoc_insertion_point(copy_constructor:InputMessage)
}
void InputMessage::SharedCtor() {
::memset(&aimangles_, 0, reinterpret_cast<char*>(&buttons_) -
reinterpret_cast<char*>(&aimangles_) + sizeof(buttons_));
_cached_size_ = 0;
}
InputMessage::~InputMessage() {
// @@protoc_insertion_point(destructor:InputMessage)
SharedDtor();
}
void InputMessage::SharedDtor() {
if (this != internal_default_instance()) {
delete aimangles_;
}
}
void InputMessage::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* InputMessage::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[0].descriptor;
}
const InputMessage& InputMessage::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
InputMessage* InputMessage::New(::google::protobuf::Arena* arena) const {
InputMessage* n = new InputMessage;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void InputMessage::Clear() {
// @@protoc_insertion_point(message_clear_start:InputMessage)
if (GetArenaNoVirtual() == NULL && aimangles_ != NULL) {
delete aimangles_;
}
aimangles_ = NULL;
buttons_ = 0;
}
bool InputMessage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:InputMessage)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 buttons = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &buttons_)));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized aimAngles = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_aimangles()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:InputMessage)
return true;
failure:
// @@protoc_insertion_point(parse_failure:InputMessage)
return false;
#undef DO_
}
void InputMessage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:InputMessage)
// int32 buttons = 1;
if (this->buttons() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->buttons(), output);
}
// .Vector3Serialized aimAngles = 2;
if (this->has_aimangles()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->aimangles_, output);
}
// @@protoc_insertion_point(serialize_end:InputMessage)
}
::google::protobuf::uint8* InputMessage::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:InputMessage)
// int32 buttons = 1;
if (this->buttons() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->buttons(), target);
}
// .Vector3Serialized aimAngles = 2;
if (this->has_aimangles()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->aimangles_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:InputMessage)
return target;
}
size_t InputMessage::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:InputMessage)
size_t total_size = 0;
// .Vector3Serialized aimAngles = 2;
if (this->has_aimangles()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->aimangles_);
}
// int32 buttons = 1;
if (this->buttons() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->buttons());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void InputMessage::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:InputMessage)
GOOGLE_DCHECK_NE(&from, this);
const InputMessage* source =
::google::protobuf::internal::DynamicCastToGenerated<const InputMessage>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:InputMessage)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:InputMessage)
MergeFrom(*source);
}
}
void InputMessage::MergeFrom(const InputMessage& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:InputMessage)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_aimangles()) {
mutable_aimangles()->::Vector3Serialized::MergeFrom(from.aimangles());
}
if (from.buttons() != 0) {
set_buttons(from.buttons());
}
}
void InputMessage::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:InputMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void InputMessage::CopyFrom(const InputMessage& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:InputMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool InputMessage::IsInitialized() const {
return true;
}
void InputMessage::Swap(InputMessage* other) {
if (other == this) return;
InternalSwap(other);
}
void InputMessage::InternalSwap(InputMessage* other) {
std::swap(aimangles_, other->aimangles_);
std::swap(buttons_, other->buttons_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata InputMessage::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[0];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// InputMessage
// int32 buttons = 1;
void InputMessage::clear_buttons() {
buttons_ = 0;
}
::google::protobuf::int32 InputMessage::buttons() const {
// @@protoc_insertion_point(field_get:InputMessage.buttons)
return buttons_;
}
void InputMessage::set_buttons(::google::protobuf::int32 value) {
buttons_ = value;
// @@protoc_insertion_point(field_set:InputMessage.buttons)
}
// .Vector3Serialized aimAngles = 2;
bool InputMessage::has_aimangles() const {
return this != internal_default_instance() && aimangles_ != NULL;
}
void InputMessage::clear_aimangles() {
if (GetArenaNoVirtual() == NULL && aimangles_ != NULL) delete aimangles_;
aimangles_ = NULL;
}
const ::Vector3Serialized& InputMessage::aimangles() const {
// @@protoc_insertion_point(field_get:InputMessage.aimAngles)
return aimangles_ != NULL ? *aimangles_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* InputMessage::mutable_aimangles() {
if (aimangles_ == NULL) {
aimangles_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:InputMessage.aimAngles)
return aimangles_;
}
::Vector3Serialized* InputMessage::release_aimangles() {
// @@protoc_insertion_point(field_release:InputMessage.aimAngles)
::Vector3Serialized* temp = aimangles_;
aimangles_ = NULL;
return temp;
}
void InputMessage::set_allocated_aimangles(::Vector3Serialized* aimangles) {
delete aimangles_;
aimangles_ = aimangles;
if (aimangles) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:InputMessage.aimAngles)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PlayerTick::kInputStateFieldNumber;
const int PlayerTick::kPositionFieldNumber;
const int PlayerTick::kModelStateFieldNumber;
const int PlayerTick::kActiveItemFieldNumber;
const int PlayerTick::kEyePosFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PlayerTick::PlayerTick()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:PlayerTick)
}
PlayerTick::PlayerTick(const PlayerTick& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_inputstate()) {
inputstate_ = new ::InputMessage(*from.inputstate_);
} else {
inputstate_ = NULL;
}
if (from.has_position()) {
position_ = new ::Vector3Serialized(*from.position_);
} else {
position_ = NULL;
}
if (from.has_modelstate()) {
modelstate_ = new ::ModelState(*from.modelstate_);
} else {
modelstate_ = NULL;
}
if (from.has_eyepos()) {
eyepos_ = new ::Vector3Serialized(*from.eyepos_);
} else {
eyepos_ = NULL;
}
activeitem_ = from.activeitem_;
// @@protoc_insertion_point(copy_constructor:PlayerTick)
}
void PlayerTick::SharedCtor() {
::memset(&inputstate_, 0, reinterpret_cast<char*>(&activeitem_) -
reinterpret_cast<char*>(&inputstate_) + sizeof(activeitem_));
_cached_size_ = 0;
}
PlayerTick::~PlayerTick() {
// @@protoc_insertion_point(destructor:PlayerTick)
SharedDtor();
}
void PlayerTick::SharedDtor() {
if (this != internal_default_instance()) {
delete inputstate_;
}
if (this != internal_default_instance()) {
delete position_;
}
if (this != internal_default_instance()) {
delete modelstate_;
}
if (this != internal_default_instance()) {
delete eyepos_;
}
}
void PlayerTick::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PlayerTick::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[1].descriptor;
}
const PlayerTick& PlayerTick::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
PlayerTick* PlayerTick::New(::google::protobuf::Arena* arena) const {
PlayerTick* n = new PlayerTick;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void PlayerTick::Clear() {
// @@protoc_insertion_point(message_clear_start:PlayerTick)
if (GetArenaNoVirtual() == NULL && inputstate_ != NULL) {
delete inputstate_;
}
inputstate_ = NULL;
if (GetArenaNoVirtual() == NULL && position_ != NULL) {
delete position_;
}
position_ = NULL;
if (GetArenaNoVirtual() == NULL && modelstate_ != NULL) {
delete modelstate_;
}
modelstate_ = NULL;
if (GetArenaNoVirtual() == NULL && eyepos_ != NULL) {
delete eyepos_;
}
eyepos_ = NULL;
activeitem_ = 0u;
}
bool PlayerTick::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:PlayerTick)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .InputMessage inputState = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_inputstate()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized position = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_position()));
} else {
goto handle_unusual;
}
break;
}
// .ModelState modelState = 4;
case 4: {
if (tag == 34u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_modelstate()));
} else {
goto handle_unusual;
}
break;
}
// uint32 activeItem = 5;
case 5: {
if (tag == 40u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &activeitem_)));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized eyePos = 6;
case 6: {
if (tag == 50u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_eyepos()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:PlayerTick)
return true;
failure:
// @@protoc_insertion_point(parse_failure:PlayerTick)
return false;
#undef DO_
}
void PlayerTick::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:PlayerTick)
// .InputMessage inputState = 1;
if (this->has_inputstate()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->inputstate_, output);
}
// .Vector3Serialized position = 2;
if (this->has_position()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->position_, output);
}
// .ModelState modelState = 4;
if (this->has_modelstate()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, *this->modelstate_, output);
}
// uint32 activeItem = 5;
if (this->activeitem() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->activeitem(), output);
}
// .Vector3Serialized eyePos = 6;
if (this->has_eyepos()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, *this->eyepos_, output);
}
// @@protoc_insertion_point(serialize_end:PlayerTick)
}
::google::protobuf::uint8* PlayerTick::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:PlayerTick)
// .InputMessage inputState = 1;
if (this->has_inputstate()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->inputstate_, false, target);
}
// .Vector3Serialized position = 2;
if (this->has_position()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->position_, false, target);
}
// .ModelState modelState = 4;
if (this->has_modelstate()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
4, *this->modelstate_, false, target);
}
// uint32 activeItem = 5;
if (this->activeitem() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->activeitem(), target);
}
// .Vector3Serialized eyePos = 6;
if (this->has_eyepos()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
6, *this->eyepos_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:PlayerTick)
return target;
}
size_t PlayerTick::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PlayerTick)
size_t total_size = 0;
// .InputMessage inputState = 1;
if (this->has_inputstate()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->inputstate_);
}
// .Vector3Serialized position = 2;
if (this->has_position()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->position_);
}
// .ModelState modelState = 4;
if (this->has_modelstate()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->modelstate_);
}
// .Vector3Serialized eyePos = 6;
if (this->has_eyepos()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->eyepos_);
}
// uint32 activeItem = 5;
if (this->activeitem() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->activeitem());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PlayerTick::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:PlayerTick)
GOOGLE_DCHECK_NE(&from, this);
const PlayerTick* source =
::google::protobuf::internal::DynamicCastToGenerated<const PlayerTick>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PlayerTick)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:PlayerTick)
MergeFrom(*source);
}
}
void PlayerTick::MergeFrom(const PlayerTick& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:PlayerTick)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_inputstate()) {
mutable_inputstate()->::InputMessage::MergeFrom(from.inputstate());
}
if (from.has_position()) {
mutable_position()->::Vector3Serialized::MergeFrom(from.position());
}
if (from.has_modelstate()) {
mutable_modelstate()->::ModelState::MergeFrom(from.modelstate());
}
if (from.has_eyepos()) {
mutable_eyepos()->::Vector3Serialized::MergeFrom(from.eyepos());
}
if (from.activeitem() != 0) {
set_activeitem(from.activeitem());
}
}
void PlayerTick::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:PlayerTick)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PlayerTick::CopyFrom(const PlayerTick& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PlayerTick)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PlayerTick::IsInitialized() const {
return true;
}
void PlayerTick::Swap(PlayerTick* other) {
if (other == this) return;
InternalSwap(other);
}
void PlayerTick::InternalSwap(PlayerTick* other) {
std::swap(inputstate_, other->inputstate_);
std::swap(position_, other->position_);
std::swap(modelstate_, other->modelstate_);
std::swap(eyepos_, other->eyepos_);
std::swap(activeitem_, other->activeitem_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata PlayerTick::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[1];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// PlayerTick
// .InputMessage inputState = 1;
bool PlayerTick::has_inputstate() const {
return this != internal_default_instance() && inputstate_ != NULL;
}
void PlayerTick::clear_inputstate() {
if (GetArenaNoVirtual() == NULL && inputstate_ != NULL) delete inputstate_;
inputstate_ = NULL;
}
const ::InputMessage& PlayerTick::inputstate() const {
// @@protoc_insertion_point(field_get:PlayerTick.inputState)
return inputstate_ != NULL ? *inputstate_
: *::InputMessage::internal_default_instance();
}
::InputMessage* PlayerTick::mutable_inputstate() {
if (inputstate_ == NULL) {
inputstate_ = new ::InputMessage;
}
// @@protoc_insertion_point(field_mutable:PlayerTick.inputState)
return inputstate_;
}
::InputMessage* PlayerTick::release_inputstate() {
// @@protoc_insertion_point(field_release:PlayerTick.inputState)
::InputMessage* temp = inputstate_;
inputstate_ = NULL;
return temp;
}
void PlayerTick::set_allocated_inputstate(::InputMessage* inputstate) {
delete inputstate_;
inputstate_ = inputstate;
if (inputstate) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:PlayerTick.inputState)
}
// .Vector3Serialized position = 2;
bool PlayerTick::has_position() const {
return this != internal_default_instance() && position_ != NULL;
}
void PlayerTick::clear_position() {
if (GetArenaNoVirtual() == NULL && position_ != NULL) delete position_;
position_ = NULL;
}
const ::Vector3Serialized& PlayerTick::position() const {
// @@protoc_insertion_point(field_get:PlayerTick.position)
return position_ != NULL ? *position_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* PlayerTick::mutable_position() {
if (position_ == NULL) {
position_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:PlayerTick.position)
return position_;
}
::Vector3Serialized* PlayerTick::release_position() {
// @@protoc_insertion_point(field_release:PlayerTick.position)
::Vector3Serialized* temp = position_;
position_ = NULL;
return temp;
}
void PlayerTick::set_allocated_position(::Vector3Serialized* position) {
delete position_;
position_ = position;
if (position) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:PlayerTick.position)
}
// .ModelState modelState = 4;
bool PlayerTick::has_modelstate() const {
return this != internal_default_instance() && modelstate_ != NULL;
}
void PlayerTick::clear_modelstate() {
if (GetArenaNoVirtual() == NULL && modelstate_ != NULL) delete modelstate_;
modelstate_ = NULL;
}
const ::ModelState& PlayerTick::modelstate() const {
// @@protoc_insertion_point(field_get:PlayerTick.modelState)
return modelstate_ != NULL ? *modelstate_
: *::ModelState::internal_default_instance();
}
::ModelState* PlayerTick::mutable_modelstate() {
if (modelstate_ == NULL) {
modelstate_ = new ::ModelState;
}
// @@protoc_insertion_point(field_mutable:PlayerTick.modelState)
return modelstate_;
}
::ModelState* PlayerTick::release_modelstate() {
// @@protoc_insertion_point(field_release:PlayerTick.modelState)
::ModelState* temp = modelstate_;
modelstate_ = NULL;
return temp;
}
void PlayerTick::set_allocated_modelstate(::ModelState* modelstate) {
delete modelstate_;
modelstate_ = modelstate;
if (modelstate) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:PlayerTick.modelState)
}
// uint32 activeItem = 5;
void PlayerTick::clear_activeitem() {
activeitem_ = 0u;
}
::google::protobuf::uint32 PlayerTick::activeitem() const {
// @@protoc_insertion_point(field_get:PlayerTick.activeItem)
return activeitem_;
}
void PlayerTick::set_activeitem(::google::protobuf::uint32 value) {
activeitem_ = value;
// @@protoc_insertion_point(field_set:PlayerTick.activeItem)
}
// .Vector3Serialized eyePos = 6;
bool PlayerTick::has_eyepos() const {
return this != internal_default_instance() && eyepos_ != NULL;
}
void PlayerTick::clear_eyepos() {
if (GetArenaNoVirtual() == NULL && eyepos_ != NULL) delete eyepos_;
eyepos_ = NULL;
}
const ::Vector3Serialized& PlayerTick::eyepos() const {
// @@protoc_insertion_point(field_get:PlayerTick.eyePos)
return eyepos_ != NULL ? *eyepos_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* PlayerTick::mutable_eyepos() {
if (eyepos_ == NULL) {
eyepos_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:PlayerTick.eyePos)
return eyepos_;
}
::Vector3Serialized* PlayerTick::release_eyepos() {
// @@protoc_insertion_point(field_release:PlayerTick.eyePos)
::Vector3Serialized* temp = eyepos_;
eyepos_ = NULL;
return temp;
}
void PlayerTick::set_allocated_eyepos(::Vector3Serialized* eyepos) {
delete eyepos_;
eyepos_ = eyepos;
if (eyepos) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:PlayerTick.eyePos)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ModelState::kWaterLevelFieldNumber;
const int ModelState::kLookDirFieldNumber;
const int ModelState::kFlagsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ModelState::ModelState()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:ModelState)
}
ModelState::ModelState(const ModelState& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_lookdir()) {
lookdir_ = new ::Vector3Serialized(*from.lookdir_);
} else {
lookdir_ = NULL;
}
::memcpy(&waterlevel_, &from.waterlevel_,
reinterpret_cast<char*>(&flags_) -
reinterpret_cast<char*>(&waterlevel_) + sizeof(flags_));
// @@protoc_insertion_point(copy_constructor:ModelState)
}
void ModelState::SharedCtor() {
::memset(&lookdir_, 0, reinterpret_cast<char*>(&flags_) -
reinterpret_cast<char*>(&lookdir_) + sizeof(flags_));
_cached_size_ = 0;
}
ModelState::~ModelState() {
// @@protoc_insertion_point(destructor:ModelState)
SharedDtor();
}
void ModelState::SharedDtor() {
if (this != internal_default_instance()) {
delete lookdir_;
}
}
void ModelState::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ModelState::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[2].descriptor;
}
const ModelState& ModelState::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
ModelState* ModelState::New(::google::protobuf::Arena* arena) const {
ModelState* n = new ModelState;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void ModelState::Clear() {
// @@protoc_insertion_point(message_clear_start:ModelState)
if (GetArenaNoVirtual() == NULL && lookdir_ != NULL) {
delete lookdir_;
}
lookdir_ = NULL;
::memset(&waterlevel_, 0, reinterpret_cast<char*>(&flags_) -
reinterpret_cast<char*>(&waterlevel_) + sizeof(flags_));
}
bool ModelState::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:ModelState)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float waterLevel = 4;
case 4: {
if (tag == 37u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &waterlevel_)));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized lookDir = 10;
case 10: {
if (tag == 82u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_lookdir()));
} else {
goto handle_unusual;
}
break;
}
// int32 flags = 11;
case 11: {
if (tag == 88u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &flags_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:ModelState)
return true;
failure:
// @@protoc_insertion_point(parse_failure:ModelState)
return false;
#undef DO_
}
void ModelState::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:ModelState)
// float waterLevel = 4;
if (this->waterlevel() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->waterlevel(), output);
}
// .Vector3Serialized lookDir = 10;
if (this->has_lookdir()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, *this->lookdir_, output);
}
// int32 flags = 11;
if (this->flags() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->flags(), output);
}
// @@protoc_insertion_point(serialize_end:ModelState)
}
::google::protobuf::uint8* ModelState::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:ModelState)
// float waterLevel = 4;
if (this->waterlevel() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->waterlevel(), target);
}
// .Vector3Serialized lookDir = 10;
if (this->has_lookdir()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
10, *this->lookdir_, false, target);
}
// int32 flags = 11;
if (this->flags() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->flags(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:ModelState)
return target;
}
size_t ModelState::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ModelState)
size_t total_size = 0;
// .Vector3Serialized lookDir = 10;
if (this->has_lookdir()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->lookdir_);
}
// float waterLevel = 4;
if (this->waterlevel() != 0) {
total_size += 1 + 4;
}
// int32 flags = 11;
if (this->flags() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->flags());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ModelState::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ModelState)
GOOGLE_DCHECK_NE(&from, this);
const ModelState* source =
::google::protobuf::internal::DynamicCastToGenerated<const ModelState>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ModelState)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:ModelState)
MergeFrom(*source);
}
}
void ModelState::MergeFrom(const ModelState& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ModelState)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_lookdir()) {
mutable_lookdir()->::Vector3Serialized::MergeFrom(from.lookdir());
}
if (from.waterlevel() != 0) {
set_waterlevel(from.waterlevel());
}
if (from.flags() != 0) {
set_flags(from.flags());
}
}
void ModelState::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ModelState)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ModelState::CopyFrom(const ModelState& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ModelState)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ModelState::IsInitialized() const {
return true;
}
void ModelState::Swap(ModelState* other) {
if (other == this) return;
InternalSwap(other);
}
void ModelState::InternalSwap(ModelState* other) {
std::swap(lookdir_, other->lookdir_);
std::swap(waterlevel_, other->waterlevel_);
std::swap(flags_, other->flags_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata ModelState::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[2];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// ModelState
// float waterLevel = 4;
void ModelState::clear_waterlevel() {
waterlevel_ = 0;
}
float ModelState::waterlevel() const {
// @@protoc_insertion_point(field_get:ModelState.waterLevel)
return waterlevel_;
}
void ModelState::set_waterlevel(float value) {
waterlevel_ = value;
// @@protoc_insertion_point(field_set:ModelState.waterLevel)
}
// .Vector3Serialized lookDir = 10;
bool ModelState::has_lookdir() const {
return this != internal_default_instance() && lookdir_ != NULL;
}
void ModelState::clear_lookdir() {
if (GetArenaNoVirtual() == NULL && lookdir_ != NULL) delete lookdir_;
lookdir_ = NULL;
}
const ::Vector3Serialized& ModelState::lookdir() const {
// @@protoc_insertion_point(field_get:ModelState.lookDir)
return lookdir_ != NULL ? *lookdir_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* ModelState::mutable_lookdir() {
if (lookdir_ == NULL) {
lookdir_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:ModelState.lookDir)
return lookdir_;
}
::Vector3Serialized* ModelState::release_lookdir() {
// @@protoc_insertion_point(field_release:ModelState.lookDir)
::Vector3Serialized* temp = lookdir_;
lookdir_ = NULL;
return temp;
}
void ModelState::set_allocated_lookdir(::Vector3Serialized* lookdir) {
delete lookdir_;
lookdir_ = lookdir;
if (lookdir) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:ModelState.lookDir)
}
// int32 flags = 11;
void ModelState::clear_flags() {
flags_ = 0;
}
::google::protobuf::int32 ModelState::flags() const {
// @@protoc_insertion_point(field_get:ModelState.flags)
return flags_;
}
void ModelState::set_flags(::google::protobuf::int32 value) {
flags_ = value;
// @@protoc_insertion_point(field_set:ModelState.flags)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int EffectData::kTypeFieldNumber;
const int EffectData::kPooledstringidFieldNumber;
const int EffectData::kNumberFieldNumber;
const int EffectData::kOriginFieldNumber;
const int EffectData::kNormalFieldNumber;
const int EffectData::kScaleFieldNumber;
const int EffectData::kEntityFieldNumber;
const int EffectData::kBoneFieldNumber;
const int EffectData::kSourceFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
EffectData::EffectData()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:EffectData)
}
EffectData::EffectData(const EffectData& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_origin()) {
origin_ = new ::Vector3Serialized(*from.origin_);
} else {
origin_ = NULL;
}
if (from.has_normal()) {
normal_ = new ::Vector3Serialized(*from.normal_);
} else {
normal_ = NULL;
}
::memcpy(&type_, &from.type_,
reinterpret_cast<char*>(&source_) -
reinterpret_cast<char*>(&type_) + sizeof(source_));
// @@protoc_insertion_point(copy_constructor:EffectData)
}
void EffectData::SharedCtor() {
::memset(&origin_, 0, reinterpret_cast<char*>(&source_) -
reinterpret_cast<char*>(&origin_) + sizeof(source_));
_cached_size_ = 0;
}
EffectData::~EffectData() {
// @@protoc_insertion_point(destructor:EffectData)
SharedDtor();
}
void EffectData::SharedDtor() {
if (this != internal_default_instance()) {
delete origin_;
}
if (this != internal_default_instance()) {
delete normal_;
}
}
void EffectData::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* EffectData::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[3].descriptor;
}
const EffectData& EffectData::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
EffectData* EffectData::New(::google::protobuf::Arena* arena) const {
EffectData* n = new EffectData;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void EffectData::Clear() {
// @@protoc_insertion_point(message_clear_start:EffectData)
if (GetArenaNoVirtual() == NULL && origin_ != NULL) {
delete origin_;
}
origin_ = NULL;
if (GetArenaNoVirtual() == NULL && normal_ != NULL) {
delete normal_;
}
normal_ = NULL;
::memset(&type_, 0, reinterpret_cast<char*>(&source_) -
reinterpret_cast<char*>(&type_) + sizeof(source_));
}
bool EffectData::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:EffectData)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 type = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &type_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 pooledstringid = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &pooledstringid_)));
} else {
goto handle_unusual;
}
break;
}
// int32 number = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &number_)));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized origin = 4;
case 4: {
if (tag == 34u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_origin()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized normal = 5;
case 5: {
if (tag == 42u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_normal()));
} else {
goto handle_unusual;
}
break;
}
// float scale = 6;
case 6: {
if (tag == 53u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &scale_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 entity = 7;
case 7: {
if (tag == 56u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &entity_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 bone = 8;
case 8: {
if (tag == 64u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &bone_)));
} else {
goto handle_unusual;
}
break;
}
// uint64 source = 9;
case 9: {
if (tag == 72u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &source_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:EffectData)
return true;
failure:
// @@protoc_insertion_point(parse_failure:EffectData)
return false;
#undef DO_
}
void EffectData::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:EffectData)
// uint32 type = 1;
if (this->type() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output);
}
// uint32 pooledstringid = 2;
if (this->pooledstringid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pooledstringid(), output);
}
// int32 number = 3;
if (this->number() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
}
// .Vector3Serialized origin = 4;
if (this->has_origin()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, *this->origin_, output);
}
// .Vector3Serialized normal = 5;
if (this->has_normal()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, *this->normal_, output);
}
// float scale = 6;
if (this->scale() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->scale(), output);
}
// uint32 entity = 7;
if (this->entity() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->entity(), output);
}
// uint32 bone = 8;
if (this->bone() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->bone(), output);
}
// uint64 source = 9;
if (this->source() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->source(), output);
}
// @@protoc_insertion_point(serialize_end:EffectData)
}
::google::protobuf::uint8* EffectData::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:EffectData)
// uint32 type = 1;
if (this->type() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target);
}
// uint32 pooledstringid = 2;
if (this->pooledstringid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pooledstringid(), target);
}
// int32 number = 3;
if (this->number() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
}
// .Vector3Serialized origin = 4;
if (this->has_origin()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
4, *this->origin_, false, target);
}
// .Vector3Serialized normal = 5;
if (this->has_normal()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
5, *this->normal_, false, target);
}
// float scale = 6;
if (this->scale() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->scale(), target);
}
// uint32 entity = 7;
if (this->entity() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->entity(), target);
}
// uint32 bone = 8;
if (this->bone() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->bone(), target);
}
// uint64 source = 9;
if (this->source() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->source(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:EffectData)
return target;
}
size_t EffectData::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:EffectData)
size_t total_size = 0;
// .Vector3Serialized origin = 4;
if (this->has_origin()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->origin_);
}
// .Vector3Serialized normal = 5;
if (this->has_normal()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->normal_);
}
// uint32 type = 1;
if (this->type() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->type());
}
// uint32 pooledstringid = 2;
if (this->pooledstringid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->pooledstringid());
}
// int32 number = 3;
if (this->number() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->number());
}
// float scale = 6;
if (this->scale() != 0) {
total_size += 1 + 4;
}
// uint32 entity = 7;
if (this->entity() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->entity());
}
// uint32 bone = 8;
if (this->bone() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->bone());
}
// uint64 source = 9;
if (this->source() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->source());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void EffectData::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:EffectData)
GOOGLE_DCHECK_NE(&from, this);
const EffectData* source =
::google::protobuf::internal::DynamicCastToGenerated<const EffectData>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:EffectData)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:EffectData)
MergeFrom(*source);
}
}
void EffectData::MergeFrom(const EffectData& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:EffectData)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_origin()) {
mutable_origin()->::Vector3Serialized::MergeFrom(from.origin());
}
if (from.has_normal()) {
mutable_normal()->::Vector3Serialized::MergeFrom(from.normal());
}
if (from.type() != 0) {
set_type(from.type());
}
if (from.pooledstringid() != 0) {
set_pooledstringid(from.pooledstringid());
}
if (from.number() != 0) {
set_number(from.number());
}
if (from.scale() != 0) {
set_scale(from.scale());
}
if (from.entity() != 0) {
set_entity(from.entity());
}
if (from.bone() != 0) {
set_bone(from.bone());
}
if (from.source() != 0) {
set_source(from.source());
}
}
void EffectData::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:EffectData)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void EffectData::CopyFrom(const EffectData& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:EffectData)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool EffectData::IsInitialized() const {
return true;
}
void EffectData::Swap(EffectData* other) {
if (other == this) return;
InternalSwap(other);
}
void EffectData::InternalSwap(EffectData* other) {
std::swap(origin_, other->origin_);
std::swap(normal_, other->normal_);
std::swap(type_, other->type_);
std::swap(pooledstringid_, other->pooledstringid_);
std::swap(number_, other->number_);
std::swap(scale_, other->scale_);
std::swap(entity_, other->entity_);
std::swap(bone_, other->bone_);
std::swap(source_, other->source_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata EffectData::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[3];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// EffectData
// uint32 type = 1;
void EffectData::clear_type() {
type_ = 0u;
}
::google::protobuf::uint32 EffectData::type() const {
// @@protoc_insertion_point(field_get:EffectData.type)
return type_;
}
void EffectData::set_type(::google::protobuf::uint32 value) {
type_ = value;
// @@protoc_insertion_point(field_set:EffectData.type)
}
// uint32 pooledstringid = 2;
void EffectData::clear_pooledstringid() {
pooledstringid_ = 0u;
}
::google::protobuf::uint32 EffectData::pooledstringid() const {
// @@protoc_insertion_point(field_get:EffectData.pooledstringid)
return pooledstringid_;
}
void EffectData::set_pooledstringid(::google::protobuf::uint32 value) {
pooledstringid_ = value;
// @@protoc_insertion_point(field_set:EffectData.pooledstringid)
}
// int32 number = 3;
void EffectData::clear_number() {
number_ = 0;
}
::google::protobuf::int32 EffectData::number() const {
// @@protoc_insertion_point(field_get:EffectData.number)
return number_;
}
void EffectData::set_number(::google::protobuf::int32 value) {
number_ = value;
// @@protoc_insertion_point(field_set:EffectData.number)
}
// .Vector3Serialized origin = 4;
bool EffectData::has_origin() const {
return this != internal_default_instance() && origin_ != NULL;
}
void EffectData::clear_origin() {
if (GetArenaNoVirtual() == NULL && origin_ != NULL) delete origin_;
origin_ = NULL;
}
const ::Vector3Serialized& EffectData::origin() const {
// @@protoc_insertion_point(field_get:EffectData.origin)
return origin_ != NULL ? *origin_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* EffectData::mutable_origin() {
if (origin_ == NULL) {
origin_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:EffectData.origin)
return origin_;
}
::Vector3Serialized* EffectData::release_origin() {
// @@protoc_insertion_point(field_release:EffectData.origin)
::Vector3Serialized* temp = origin_;
origin_ = NULL;
return temp;
}
void EffectData::set_allocated_origin(::Vector3Serialized* origin) {
delete origin_;
origin_ = origin;
if (origin) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:EffectData.origin)
}
// .Vector3Serialized normal = 5;
bool EffectData::has_normal() const {
return this != internal_default_instance() && normal_ != NULL;
}
void EffectData::clear_normal() {
if (GetArenaNoVirtual() == NULL && normal_ != NULL) delete normal_;
normal_ = NULL;
}
const ::Vector3Serialized& EffectData::normal() const {
// @@protoc_insertion_point(field_get:EffectData.normal)
return normal_ != NULL ? *normal_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* EffectData::mutable_normal() {
if (normal_ == NULL) {
normal_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:EffectData.normal)
return normal_;
}
::Vector3Serialized* EffectData::release_normal() {
// @@protoc_insertion_point(field_release:EffectData.normal)
::Vector3Serialized* temp = normal_;
normal_ = NULL;
return temp;
}
void EffectData::set_allocated_normal(::Vector3Serialized* normal) {
delete normal_;
normal_ = normal;
if (normal) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:EffectData.normal)
}
// float scale = 6;
void EffectData::clear_scale() {
scale_ = 0;
}
float EffectData::scale() const {
// @@protoc_insertion_point(field_get:EffectData.scale)
return scale_;
}
void EffectData::set_scale(float value) {
scale_ = value;
// @@protoc_insertion_point(field_set:EffectData.scale)
}
// uint32 entity = 7;
void EffectData::clear_entity() {
entity_ = 0u;
}
::google::protobuf::uint32 EffectData::entity() const {
// @@protoc_insertion_point(field_get:EffectData.entity)
return entity_;
}
void EffectData::set_entity(::google::protobuf::uint32 value) {
entity_ = value;
// @@protoc_insertion_point(field_set:EffectData.entity)
}
// uint32 bone = 8;
void EffectData::clear_bone() {
bone_ = 0u;
}
::google::protobuf::uint32 EffectData::bone() const {
// @@protoc_insertion_point(field_get:EffectData.bone)
return bone_;
}
void EffectData::set_bone(::google::protobuf::uint32 value) {
bone_ = value;
// @@protoc_insertion_point(field_set:EffectData.bone)
}
// uint64 source = 9;
void EffectData::clear_source() {
source_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 EffectData::source() const {
// @@protoc_insertion_point(field_get:EffectData.source)
return source_;
}
void EffectData::set_source(::google::protobuf::uint64 value) {
source_ = value;
// @@protoc_insertion_point(field_set:EffectData.source)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Entity::kBaseNetworkableFieldNumber;
const int Entity::kBaseEntityFieldNumber;
const int Entity::kBasePlayerFieldNumber;
const int Entity::kWorldItemFieldNumber;
const int Entity::kResourceFieldNumber;
const int Entity::kBuildingBlockFieldNumber;
const int Entity::kEnvironmentFieldNumber;
const int Entity::kCorpseFieldNumber;
const int Entity::kParentFieldNumber;
const int Entity::kKeyLockFieldNumber;
const int Entity::kCodeLockFieldNumber;
const int Entity::kEntitySlotsFieldNumber;
const int Entity::kBuildingPrivilegeFieldNumber;
const int Entity::kStorageBoxFieldNumber;
const int Entity::kHeldEntityFieldNumber;
const int Entity::kBaseProjectileFieldNumber;
const int Entity::kBaseNPCFieldNumber;
const int Entity::kLootFieldNumber;
const int Entity::kGenericSpawnerFieldNumber;
const int Entity::kSleepingBagFieldNumber;
const int Entity::kLootableCorpseFieldNumber;
const int Entity::kSignFieldNumber;
const int Entity::kBaseCombatFieldNumber;
const int Entity::kMapEntityFieldNumber;
const int Entity::kResearchTableFieldNumber;
const int Entity::kDudExplosiveFieldNumber;
const int Entity::kMiningQuarryFieldNumber;
const int Entity::kPlantEntityFieldNumber;
const int Entity::kHelicopterFieldNumber;
const int Entity::kLandmineFieldNumber;
const int Entity::kAutoturretFieldNumber;
const int Entity::kSphereEntityFieldNumber;
const int Entity::kStabilityEntityFieldNumber;
const int Entity::kOwnerInfoFieldNumber;
const int Entity::kDecayEntityFieldNumber;
const int Entity::kSpawnableFieldNumber;
const int Entity::kServergibFieldNumber;
const int Entity::kVendingMachineFieldNumber;
const int Entity::kCreatedThisFrameFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Entity::Entity()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Entity)
}
Entity::Entity(const Entity& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_basenetworkable()) {
basenetworkable_ = new ::BaseNetworkable(*from.basenetworkable_);
} else {
basenetworkable_ = NULL;
}
if (from.has_baseentity()) {
baseentity_ = new ::BaseEntity(*from.baseentity_);
} else {
baseentity_ = NULL;
}
if (from.has_baseplayer()) {
baseplayer_ = new ::BasePlayer(*from.baseplayer_);
} else {
baseplayer_ = NULL;
}
if (from.has_worlditem()) {
worlditem_ = new ::WorldItem(*from.worlditem_);
} else {
worlditem_ = NULL;
}
if (from.has_resource()) {
resource_ = new ::BaseResource(*from.resource_);
} else {
resource_ = NULL;
}
if (from.has_buildingblock()) {
buildingblock_ = new ::BuildingBlock(*from.buildingblock_);
} else {
buildingblock_ = NULL;
}
if (from.has_environment()) {
environment_ = new ::Environment(*from.environment_);
} else {
environment_ = NULL;
}
if (from.has_corpse()) {
corpse_ = new ::Corpse(*from.corpse_);
} else {
corpse_ = NULL;
}
if (from.has_parent()) {
parent_ = new ::ParentInfo(*from.parent_);
} else {
parent_ = NULL;
}
if (from.has_keylock()) {
keylock_ = new ::KeyLock(*from.keylock_);
} else {
keylock_ = NULL;
}
if (from.has_codelock()) {
codelock_ = new ::CodeLock(*from.codelock_);
} else {
codelock_ = NULL;
}
if (from.has_entityslots()) {
entityslots_ = new ::EntitySlots(*from.entityslots_);
} else {
entityslots_ = NULL;
}
if (from.has_buildingprivilege()) {
buildingprivilege_ = new ::BuildingPrivilege(*from.buildingprivilege_);
} else {
buildingprivilege_ = NULL;
}
if (from.has_storagebox()) {
storagebox_ = new ::StorageBox(*from.storagebox_);
} else {
storagebox_ = NULL;
}
if (from.has_heldentity()) {
heldentity_ = new ::HeldEntity(*from.heldentity_);
} else {
heldentity_ = NULL;
}
if (from.has_baseprojectile()) {
baseprojectile_ = new ::BaseProjectile(*from.baseprojectile_);
} else {
baseprojectile_ = NULL;
}
if (from.has_basenpc()) {
basenpc_ = new ::BaseNPC(*from.basenpc_);
} else {
basenpc_ = NULL;
}
if (from.has_loot()) {
loot_ = new ::Loot(*from.loot_);
} else {
loot_ = NULL;
}
if (from.has_genericspawner()) {
genericspawner_ = new ::GenericSpawner(*from.genericspawner_);
} else {
genericspawner_ = NULL;
}
if (from.has_sleepingbag()) {
sleepingbag_ = new ::SleepingBag(*from.sleepingbag_);
} else {
sleepingbag_ = NULL;
}
if (from.has_lootablecorpse()) {
lootablecorpse_ = new ::LootableCorpse(*from.lootablecorpse_);
} else {
lootablecorpse_ = NULL;
}
if (from.has_sign()) {
sign_ = new ::Sign(*from.sign_);
} else {
sign_ = NULL;
}
if (from.has_basecombat()) {
basecombat_ = new ::BaseCombat(*from.basecombat_);
} else {
basecombat_ = NULL;
}
if (from.has_mapentity()) {
mapentity_ = new ::MapEntity(*from.mapentity_);
} else {
mapentity_ = NULL;
}
if (from.has_researchtable()) {
researchtable_ = new ::ResearchTable(*from.researchtable_);
} else {
researchtable_ = NULL;
}
if (from.has_dudexplosive()) {
dudexplosive_ = new ::DudExplosive(*from.dudexplosive_);
} else {
dudexplosive_ = NULL;
}
if (from.has_miningquarry()) {
miningquarry_ = new ::MiningQuarry(*from.miningquarry_);
} else {
miningquarry_ = NULL;
}
if (from.has_plantentity()) {
plantentity_ = new ::PlantEntity(*from.plantentity_);
} else {
plantentity_ = NULL;
}
if (from.has_helicopter()) {
helicopter_ = new ::Helicopter(*from.helicopter_);
} else {
helicopter_ = NULL;
}
if (from.has_landmine()) {
landmine_ = new ::Landmine(*from.landmine_);
} else {
landmine_ = NULL;
}
if (from.has_autoturret()) {
autoturret_ = new ::AutoTurret(*from.autoturret_);
} else {
autoturret_ = NULL;
}
if (from.has_sphereentity()) {
sphereentity_ = new ::SphereEntity(*from.sphereentity_);
} else {
sphereentity_ = NULL;
}
if (from.has_stabilityentity()) {
stabilityentity_ = new ::StabilityEntity(*from.stabilityentity_);
} else {
stabilityentity_ = NULL;
}
if (from.has_ownerinfo()) {
ownerinfo_ = new ::OwnerInfo(*from.ownerinfo_);
} else {
ownerinfo_ = NULL;
}
if (from.has_decayentity()) {
decayentity_ = new ::DecayEntity(*from.decayentity_);
} else {
decayentity_ = NULL;
}
if (from.has_spawnable()) {
spawnable_ = new ::Spawnable(*from.spawnable_);
} else {
spawnable_ = NULL;
}
if (from.has_servergib()) {
servergib_ = new ::ServerGib(*from.servergib_);
} else {
servergib_ = NULL;
}
if (from.has_vendingmachine()) {
vendingmachine_ = new ::VendingMachine(*from.vendingmachine_);
} else {
vendingmachine_ = NULL;
}
createdthisframe_ = from.createdthisframe_;
// @@protoc_insertion_point(copy_constructor:Entity)
}
void Entity::SharedCtor() {
::memset(&basenetworkable_, 0, reinterpret_cast<char*>(&createdthisframe_) -
reinterpret_cast<char*>(&basenetworkable_) + sizeof(createdthisframe_));
_cached_size_ = 0;
}
Entity::~Entity() {
// @@protoc_insertion_point(destructor:Entity)
SharedDtor();
}
void Entity::SharedDtor() {
if (this != internal_default_instance()) {
delete basenetworkable_;
}
if (this != internal_default_instance()) {
delete baseentity_;
}
if (this != internal_default_instance()) {
delete baseplayer_;
}
if (this != internal_default_instance()) {
delete worlditem_;
}
if (this != internal_default_instance()) {
delete resource_;
}
if (this != internal_default_instance()) {
delete buildingblock_;
}
if (this != internal_default_instance()) {
delete environment_;
}
if (this != internal_default_instance()) {
delete corpse_;
}
if (this != internal_default_instance()) {
delete parent_;
}
if (this != internal_default_instance()) {
delete keylock_;
}
if (this != internal_default_instance()) {
delete codelock_;
}
if (this != internal_default_instance()) {
delete entityslots_;
}
if (this != internal_default_instance()) {
delete buildingprivilege_;
}
if (this != internal_default_instance()) {
delete storagebox_;
}
if (this != internal_default_instance()) {
delete heldentity_;
}
if (this != internal_default_instance()) {
delete baseprojectile_;
}
if (this != internal_default_instance()) {
delete basenpc_;
}
if (this != internal_default_instance()) {
delete loot_;
}
if (this != internal_default_instance()) {
delete genericspawner_;
}
if (this != internal_default_instance()) {
delete sleepingbag_;
}
if (this != internal_default_instance()) {
delete lootablecorpse_;
}
if (this != internal_default_instance()) {
delete sign_;
}
if (this != internal_default_instance()) {
delete basecombat_;
}
if (this != internal_default_instance()) {
delete mapentity_;
}
if (this != internal_default_instance()) {
delete researchtable_;
}
if (this != internal_default_instance()) {
delete dudexplosive_;
}
if (this != internal_default_instance()) {
delete miningquarry_;
}
if (this != internal_default_instance()) {
delete plantentity_;
}
if (this != internal_default_instance()) {
delete helicopter_;
}
if (this != internal_default_instance()) {
delete landmine_;
}
if (this != internal_default_instance()) {
delete autoturret_;
}
if (this != internal_default_instance()) {
delete sphereentity_;
}
if (this != internal_default_instance()) {
delete stabilityentity_;
}
if (this != internal_default_instance()) {
delete ownerinfo_;
}
if (this != internal_default_instance()) {
delete decayentity_;
}
if (this != internal_default_instance()) {
delete spawnable_;
}
if (this != internal_default_instance()) {
delete servergib_;
}
if (this != internal_default_instance()) {
delete vendingmachine_;
}
}
void Entity::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Entity::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[4].descriptor;
}
const Entity& Entity::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Entity* Entity::New(::google::protobuf::Arena* arena) const {
Entity* n = new Entity;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Entity::Clear() {
// @@protoc_insertion_point(message_clear_start:Entity)
if (GetArenaNoVirtual() == NULL && basenetworkable_ != NULL) {
delete basenetworkable_;
}
basenetworkable_ = NULL;
if (GetArenaNoVirtual() == NULL && baseentity_ != NULL) {
delete baseentity_;
}
baseentity_ = NULL;
if (GetArenaNoVirtual() == NULL && baseplayer_ != NULL) {
delete baseplayer_;
}
baseplayer_ = NULL;
if (GetArenaNoVirtual() == NULL && worlditem_ != NULL) {
delete worlditem_;
}
worlditem_ = NULL;
if (GetArenaNoVirtual() == NULL && resource_ != NULL) {
delete resource_;
}
resource_ = NULL;
if (GetArenaNoVirtual() == NULL && buildingblock_ != NULL) {
delete buildingblock_;
}
buildingblock_ = NULL;
if (GetArenaNoVirtual() == NULL && environment_ != NULL) {
delete environment_;
}
environment_ = NULL;
if (GetArenaNoVirtual() == NULL && corpse_ != NULL) {
delete corpse_;
}
corpse_ = NULL;
if (GetArenaNoVirtual() == NULL && parent_ != NULL) {
delete parent_;
}
parent_ = NULL;
if (GetArenaNoVirtual() == NULL && keylock_ != NULL) {
delete keylock_;
}
keylock_ = NULL;
if (GetArenaNoVirtual() == NULL && codelock_ != NULL) {
delete codelock_;
}
codelock_ = NULL;
if (GetArenaNoVirtual() == NULL && entityslots_ != NULL) {
delete entityslots_;
}
entityslots_ = NULL;
if (GetArenaNoVirtual() == NULL && buildingprivilege_ != NULL) {
delete buildingprivilege_;
}
buildingprivilege_ = NULL;
if (GetArenaNoVirtual() == NULL && storagebox_ != NULL) {
delete storagebox_;
}
storagebox_ = NULL;
if (GetArenaNoVirtual() == NULL && heldentity_ != NULL) {
delete heldentity_;
}
heldentity_ = NULL;
if (GetArenaNoVirtual() == NULL && baseprojectile_ != NULL) {
delete baseprojectile_;
}
baseprojectile_ = NULL;
if (GetArenaNoVirtual() == NULL && basenpc_ != NULL) {
delete basenpc_;
}
basenpc_ = NULL;
if (GetArenaNoVirtual() == NULL && loot_ != NULL) {
delete loot_;
}
loot_ = NULL;
if (GetArenaNoVirtual() == NULL && genericspawner_ != NULL) {
delete genericspawner_;
}
genericspawner_ = NULL;
if (GetArenaNoVirtual() == NULL && sleepingbag_ != NULL) {
delete sleepingbag_;
}
sleepingbag_ = NULL;
if (GetArenaNoVirtual() == NULL && lootablecorpse_ != NULL) {
delete lootablecorpse_;
}
lootablecorpse_ = NULL;
if (GetArenaNoVirtual() == NULL && sign_ != NULL) {
delete sign_;
}
sign_ = NULL;
if (GetArenaNoVirtual() == NULL && basecombat_ != NULL) {
delete basecombat_;
}
basecombat_ = NULL;
if (GetArenaNoVirtual() == NULL && mapentity_ != NULL) {
delete mapentity_;
}
mapentity_ = NULL;
if (GetArenaNoVirtual() == NULL && researchtable_ != NULL) {
delete researchtable_;
}
researchtable_ = NULL;
if (GetArenaNoVirtual() == NULL && dudexplosive_ != NULL) {
delete dudexplosive_;
}
dudexplosive_ = NULL;
if (GetArenaNoVirtual() == NULL && miningquarry_ != NULL) {
delete miningquarry_;
}
miningquarry_ = NULL;
if (GetArenaNoVirtual() == NULL && plantentity_ != NULL) {
delete plantentity_;
}
plantentity_ = NULL;
if (GetArenaNoVirtual() == NULL && helicopter_ != NULL) {
delete helicopter_;
}
helicopter_ = NULL;
if (GetArenaNoVirtual() == NULL && landmine_ != NULL) {
delete landmine_;
}
landmine_ = NULL;
if (GetArenaNoVirtual() == NULL && autoturret_ != NULL) {
delete autoturret_;
}
autoturret_ = NULL;
if (GetArenaNoVirtual() == NULL && sphereentity_ != NULL) {
delete sphereentity_;
}
sphereentity_ = NULL;
if (GetArenaNoVirtual() == NULL && stabilityentity_ != NULL) {
delete stabilityentity_;
}
stabilityentity_ = NULL;
if (GetArenaNoVirtual() == NULL && ownerinfo_ != NULL) {
delete ownerinfo_;
}
ownerinfo_ = NULL;
if (GetArenaNoVirtual() == NULL && decayentity_ != NULL) {
delete decayentity_;
}
decayentity_ = NULL;
if (GetArenaNoVirtual() == NULL && spawnable_ != NULL) {
delete spawnable_;
}
spawnable_ = NULL;
if (GetArenaNoVirtual() == NULL && servergib_ != NULL) {
delete servergib_;
}
servergib_ = NULL;
if (GetArenaNoVirtual() == NULL && vendingmachine_ != NULL) {
delete vendingmachine_;
}
vendingmachine_ = NULL;
createdthisframe_ = false;
}
bool Entity::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Entity)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .BaseNetworkable baseNetworkable = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_basenetworkable()));
} else {
goto handle_unusual;
}
break;
}
// .BaseEntity baseEntity = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_baseentity()));
} else {
goto handle_unusual;
}
break;
}
// .BasePlayer basePlayer = 3;
case 3: {
if (tag == 26u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_baseplayer()));
} else {
goto handle_unusual;
}
break;
}
// .WorldItem worldItem = 4;
case 4: {
if (tag == 34u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_worlditem()));
} else {
goto handle_unusual;
}
break;
}
// .BaseResource resource = 5;
case 5: {
if (tag == 42u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_resource()));
} else {
goto handle_unusual;
}
break;
}
// .BuildingBlock buildingBlock = 6;
case 6: {
if (tag == 50u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_buildingblock()));
} else {
goto handle_unusual;
}
break;
}
// .Environment environment = 7;
case 7: {
if (tag == 58u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_environment()));
} else {
goto handle_unusual;
}
break;
}
// .Corpse corpse = 8;
case 8: {
if (tag == 66u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_corpse()));
} else {
goto handle_unusual;
}
break;
}
// .ParentInfo parent = 10;
case 10: {
if (tag == 82u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_parent()));
} else {
goto handle_unusual;
}
break;
}
// .KeyLock keyLock = 11;
case 11: {
if (tag == 90u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_keylock()));
} else {
goto handle_unusual;
}
break;
}
// .CodeLock codeLock = 12;
case 12: {
if (tag == 98u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_codelock()));
} else {
goto handle_unusual;
}
break;
}
// .EntitySlots entitySlots = 13;
case 13: {
if (tag == 106u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_entityslots()));
} else {
goto handle_unusual;
}
break;
}
// .BuildingPrivilege buildingPrivilege = 14;
case 14: {
if (tag == 114u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_buildingprivilege()));
} else {
goto handle_unusual;
}
break;
}
// .StorageBox storageBox = 15;
case 15: {
if (tag == 122u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_storagebox()));
} else {
goto handle_unusual;
}
break;
}
// .HeldEntity heldEntity = 16;
case 16: {
if (tag == 130u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_heldentity()));
} else {
goto handle_unusual;
}
break;
}
// .BaseProjectile baseProjectile = 17;
case 17: {
if (tag == 138u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_baseprojectile()));
} else {
goto handle_unusual;
}
break;
}
// .BaseNPC baseNPC = 18;
case 18: {
if (tag == 146u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_basenpc()));
} else {
goto handle_unusual;
}
break;
}
// .Loot loot = 19;
case 19: {
if (tag == 154u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_loot()));
} else {
goto handle_unusual;
}
break;
}
// .GenericSpawner genericSpawner = 20;
case 20: {
if (tag == 162u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_genericspawner()));
} else {
goto handle_unusual;
}
break;
}
// .SleepingBag sleepingBag = 21;
case 21: {
if (tag == 170u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_sleepingbag()));
} else {
goto handle_unusual;
}
break;
}
// .LootableCorpse lootableCorpse = 22;
case 22: {
if (tag == 178u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_lootablecorpse()));
} else {
goto handle_unusual;
}
break;
}
// .Sign sign = 23;
case 23: {
if (tag == 186u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_sign()));
} else {
goto handle_unusual;
}
break;
}
// .BaseCombat baseCombat = 24;
case 24: {
if (tag == 194u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_basecombat()));
} else {
goto handle_unusual;
}
break;
}
// .MapEntity mapEntity = 25;
case 25: {
if (tag == 202u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_mapentity()));
} else {
goto handle_unusual;
}
break;
}
// .ResearchTable researchTable = 26;
case 26: {
if (tag == 210u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_researchtable()));
} else {
goto handle_unusual;
}
break;
}
// .DudExplosive dudExplosive = 27;
case 27: {
if (tag == 218u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_dudexplosive()));
} else {
goto handle_unusual;
}
break;
}
// .MiningQuarry miningQuarry = 28;
case 28: {
if (tag == 226u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_miningquarry()));
} else {
goto handle_unusual;
}
break;
}
// .PlantEntity plantEntity = 29;
case 29: {
if (tag == 234u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_plantentity()));
} else {
goto handle_unusual;
}
break;
}
// .Helicopter helicopter = 30;
case 30: {
if (tag == 242u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_helicopter()));
} else {
goto handle_unusual;
}
break;
}
// .Landmine landmine = 31;
case 31: {
if (tag == 250u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_landmine()));
} else {
goto handle_unusual;
}
break;
}
// .AutoTurret autoturret = 32;
case 32: {
if (tag == 258u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_autoturret()));
} else {
goto handle_unusual;
}
break;
}
// .SphereEntity sphereEntity = 33;
case 33: {
if (tag == 266u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_sphereentity()));
} else {
goto handle_unusual;
}
break;
}
// .StabilityEntity stabilityEntity = 34;
case 34: {
if (tag == 274u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_stabilityentity()));
} else {
goto handle_unusual;
}
break;
}
// .OwnerInfo ownerInfo = 35;
case 35: {
if (tag == 282u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_ownerinfo()));
} else {
goto handle_unusual;
}
break;
}
// .DecayEntity decayEntity = 36;
case 36: {
if (tag == 290u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_decayentity()));
} else {
goto handle_unusual;
}
break;
}
// .Spawnable spawnable = 37;
case 37: {
if (tag == 298u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_spawnable()));
} else {
goto handle_unusual;
}
break;
}
// .ServerGib servergib = 38;
case 38: {
if (tag == 306u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_servergib()));
} else {
goto handle_unusual;
}
break;
}
// .VendingMachine vendingMachine = 39;
case 39: {
if (tag == 314u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_vendingmachine()));
} else {
goto handle_unusual;
}
break;
}
// bool createdThisFrame = 100;
case 100: {
if (tag == 800u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &createdthisframe_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Entity)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Entity)
return false;
#undef DO_
}
void Entity::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Entity)
// .BaseNetworkable baseNetworkable = 1;
if (this->has_basenetworkable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->basenetworkable_, output);
}
// .BaseEntity baseEntity = 2;
if (this->has_baseentity()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->baseentity_, output);
}
// .BasePlayer basePlayer = 3;
if (this->has_baseplayer()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, *this->baseplayer_, output);
}
// .WorldItem worldItem = 4;
if (this->has_worlditem()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, *this->worlditem_, output);
}
// .BaseResource resource = 5;
if (this->has_resource()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, *this->resource_, output);
}
// .BuildingBlock buildingBlock = 6;
if (this->has_buildingblock()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, *this->buildingblock_, output);
}
// .Environment environment = 7;
if (this->has_environment()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, *this->environment_, output);
}
// .Corpse corpse = 8;
if (this->has_corpse()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, *this->corpse_, output);
}
// .ParentInfo parent = 10;
if (this->has_parent()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, *this->parent_, output);
}
// .KeyLock keyLock = 11;
if (this->has_keylock()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, *this->keylock_, output);
}
// .CodeLock codeLock = 12;
if (this->has_codelock()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12, *this->codelock_, output);
}
// .EntitySlots entitySlots = 13;
if (this->has_entityslots()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13, *this->entityslots_, output);
}
// .BuildingPrivilege buildingPrivilege = 14;
if (this->has_buildingprivilege()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14, *this->buildingprivilege_, output);
}
// .StorageBox storageBox = 15;
if (this->has_storagebox()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15, *this->storagebox_, output);
}
// .HeldEntity heldEntity = 16;
if (this->has_heldentity()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
16, *this->heldentity_, output);
}
// .BaseProjectile baseProjectile = 17;
if (this->has_baseprojectile()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
17, *this->baseprojectile_, output);
}
// .BaseNPC baseNPC = 18;
if (this->has_basenpc()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
18, *this->basenpc_, output);
}
// .Loot loot = 19;
if (this->has_loot()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
19, *this->loot_, output);
}
// .GenericSpawner genericSpawner = 20;
if (this->has_genericspawner()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
20, *this->genericspawner_, output);
}
// .SleepingBag sleepingBag = 21;
if (this->has_sleepingbag()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
21, *this->sleepingbag_, output);
}
// .LootableCorpse lootableCorpse = 22;
if (this->has_lootablecorpse()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
22, *this->lootablecorpse_, output);
}
// .Sign sign = 23;
if (this->has_sign()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
23, *this->sign_, output);
}
// .BaseCombat baseCombat = 24;
if (this->has_basecombat()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
24, *this->basecombat_, output);
}
// .MapEntity mapEntity = 25;
if (this->has_mapentity()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
25, *this->mapentity_, output);
}
// .ResearchTable researchTable = 26;
if (this->has_researchtable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
26, *this->researchtable_, output);
}
// .DudExplosive dudExplosive = 27;
if (this->has_dudexplosive()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
27, *this->dudexplosive_, output);
}
// .MiningQuarry miningQuarry = 28;
if (this->has_miningquarry()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
28, *this->miningquarry_, output);
}
// .PlantEntity plantEntity = 29;
if (this->has_plantentity()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
29, *this->plantentity_, output);
}
// .Helicopter helicopter = 30;
if (this->has_helicopter()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
30, *this->helicopter_, output);
}
// .Landmine landmine = 31;
if (this->has_landmine()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
31, *this->landmine_, output);
}
// .AutoTurret autoturret = 32;
if (this->has_autoturret()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
32, *this->autoturret_, output);
}
// .SphereEntity sphereEntity = 33;
if (this->has_sphereentity()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
33, *this->sphereentity_, output);
}
// .StabilityEntity stabilityEntity = 34;
if (this->has_stabilityentity()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
34, *this->stabilityentity_, output);
}
// .OwnerInfo ownerInfo = 35;
if (this->has_ownerinfo()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
35, *this->ownerinfo_, output);
}
// .DecayEntity decayEntity = 36;
if (this->has_decayentity()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36, *this->decayentity_, output);
}
// .Spawnable spawnable = 37;
if (this->has_spawnable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
37, *this->spawnable_, output);
}
// .ServerGib servergib = 38;
if (this->has_servergib()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
38, *this->servergib_, output);
}
// .VendingMachine vendingMachine = 39;
if (this->has_vendingmachine()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
39, *this->vendingmachine_, output);
}
// bool createdThisFrame = 100;
if (this->createdthisframe() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(100, this->createdthisframe(), output);
}
// @@protoc_insertion_point(serialize_end:Entity)
}
::google::protobuf::uint8* Entity::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Entity)
// .BaseNetworkable baseNetworkable = 1;
if (this->has_basenetworkable()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->basenetworkable_, false, target);
}
// .BaseEntity baseEntity = 2;
if (this->has_baseentity()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->baseentity_, false, target);
}
// .BasePlayer basePlayer = 3;
if (this->has_baseplayer()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
3, *this->baseplayer_, false, target);
}
// .WorldItem worldItem = 4;
if (this->has_worlditem()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
4, *this->worlditem_, false, target);
}
// .BaseResource resource = 5;
if (this->has_resource()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
5, *this->resource_, false, target);
}
// .BuildingBlock buildingBlock = 6;
if (this->has_buildingblock()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
6, *this->buildingblock_, false, target);
}
// .Environment environment = 7;
if (this->has_environment()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
7, *this->environment_, false, target);
}
// .Corpse corpse = 8;
if (this->has_corpse()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
8, *this->corpse_, false, target);
}
// .ParentInfo parent = 10;
if (this->has_parent()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
10, *this->parent_, false, target);
}
// .KeyLock keyLock = 11;
if (this->has_keylock()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
11, *this->keylock_, false, target);
}
// .CodeLock codeLock = 12;
if (this->has_codelock()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
12, *this->codelock_, false, target);
}
// .EntitySlots entitySlots = 13;
if (this->has_entityslots()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
13, *this->entityslots_, false, target);
}
// .BuildingPrivilege buildingPrivilege = 14;
if (this->has_buildingprivilege()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
14, *this->buildingprivilege_, false, target);
}
// .StorageBox storageBox = 15;
if (this->has_storagebox()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
15, *this->storagebox_, false, target);
}
// .HeldEntity heldEntity = 16;
if (this->has_heldentity()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
16, *this->heldentity_, false, target);
}
// .BaseProjectile baseProjectile = 17;
if (this->has_baseprojectile()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
17, *this->baseprojectile_, false, target);
}
// .BaseNPC baseNPC = 18;
if (this->has_basenpc()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
18, *this->basenpc_, false, target);
}
// .Loot loot = 19;
if (this->has_loot()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
19, *this->loot_, false, target);
}
// .GenericSpawner genericSpawner = 20;
if (this->has_genericspawner()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
20, *this->genericspawner_, false, target);
}
// .SleepingBag sleepingBag = 21;
if (this->has_sleepingbag()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
21, *this->sleepingbag_, false, target);
}
// .LootableCorpse lootableCorpse = 22;
if (this->has_lootablecorpse()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
22, *this->lootablecorpse_, false, target);
}
// .Sign sign = 23;
if (this->has_sign()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
23, *this->sign_, false, target);
}
// .BaseCombat baseCombat = 24;
if (this->has_basecombat()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
24, *this->basecombat_, false, target);
}
// .MapEntity mapEntity = 25;
if (this->has_mapentity()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
25, *this->mapentity_, false, target);
}
// .ResearchTable researchTable = 26;
if (this->has_researchtable()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
26, *this->researchtable_, false, target);
}
// .DudExplosive dudExplosive = 27;
if (this->has_dudexplosive()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
27, *this->dudexplosive_, false, target);
}
// .MiningQuarry miningQuarry = 28;
if (this->has_miningquarry()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
28, *this->miningquarry_, false, target);
}
// .PlantEntity plantEntity = 29;
if (this->has_plantentity()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
29, *this->plantentity_, false, target);
}
// .Helicopter helicopter = 30;
if (this->has_helicopter()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
30, *this->helicopter_, false, target);
}
// .Landmine landmine = 31;
if (this->has_landmine()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
31, *this->landmine_, false, target);
}
// .AutoTurret autoturret = 32;
if (this->has_autoturret()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
32, *this->autoturret_, false, target);
}
// .SphereEntity sphereEntity = 33;
if (this->has_sphereentity()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
33, *this->sphereentity_, false, target);
}
// .StabilityEntity stabilityEntity = 34;
if (this->has_stabilityentity()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
34, *this->stabilityentity_, false, target);
}
// .OwnerInfo ownerInfo = 35;
if (this->has_ownerinfo()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
35, *this->ownerinfo_, false, target);
}
// .DecayEntity decayEntity = 36;
if (this->has_decayentity()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
36, *this->decayentity_, false, target);
}
// .Spawnable spawnable = 37;
if (this->has_spawnable()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
37, *this->spawnable_, false, target);
}
// .ServerGib servergib = 38;
if (this->has_servergib()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
38, *this->servergib_, false, target);
}
// .VendingMachine vendingMachine = 39;
if (this->has_vendingmachine()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
39, *this->vendingmachine_, false, target);
}
// bool createdThisFrame = 100;
if (this->createdthisframe() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(100, this->createdthisframe(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Entity)
return target;
}
size_t Entity::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Entity)
size_t total_size = 0;
// .BaseNetworkable baseNetworkable = 1;
if (this->has_basenetworkable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->basenetworkable_);
}
// .BaseEntity baseEntity = 2;
if (this->has_baseentity()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->baseentity_);
}
// .BasePlayer basePlayer = 3;
if (this->has_baseplayer()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->baseplayer_);
}
// .WorldItem worldItem = 4;
if (this->has_worlditem()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->worlditem_);
}
// .BaseResource resource = 5;
if (this->has_resource()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->resource_);
}
// .BuildingBlock buildingBlock = 6;
if (this->has_buildingblock()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->buildingblock_);
}
// .Environment environment = 7;
if (this->has_environment()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->environment_);
}
// .Corpse corpse = 8;
if (this->has_corpse()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->corpse_);
}
// .ParentInfo parent = 10;
if (this->has_parent()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->parent_);
}
// .KeyLock keyLock = 11;
if (this->has_keylock()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->keylock_);
}
// .CodeLock codeLock = 12;
if (this->has_codelock()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->codelock_);
}
// .EntitySlots entitySlots = 13;
if (this->has_entityslots()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->entityslots_);
}
// .BuildingPrivilege buildingPrivilege = 14;
if (this->has_buildingprivilege()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->buildingprivilege_);
}
// .StorageBox storageBox = 15;
if (this->has_storagebox()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->storagebox_);
}
// .HeldEntity heldEntity = 16;
if (this->has_heldentity()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->heldentity_);
}
// .BaseProjectile baseProjectile = 17;
if (this->has_baseprojectile()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->baseprojectile_);
}
// .BaseNPC baseNPC = 18;
if (this->has_basenpc()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->basenpc_);
}
// .Loot loot = 19;
if (this->has_loot()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->loot_);
}
// .GenericSpawner genericSpawner = 20;
if (this->has_genericspawner()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->genericspawner_);
}
// .SleepingBag sleepingBag = 21;
if (this->has_sleepingbag()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->sleepingbag_);
}
// .LootableCorpse lootableCorpse = 22;
if (this->has_lootablecorpse()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->lootablecorpse_);
}
// .Sign sign = 23;
if (this->has_sign()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->sign_);
}
// .BaseCombat baseCombat = 24;
if (this->has_basecombat()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->basecombat_);
}
// .MapEntity mapEntity = 25;
if (this->has_mapentity()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->mapentity_);
}
// .ResearchTable researchTable = 26;
if (this->has_researchtable()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->researchtable_);
}
// .DudExplosive dudExplosive = 27;
if (this->has_dudexplosive()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->dudexplosive_);
}
// .MiningQuarry miningQuarry = 28;
if (this->has_miningquarry()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->miningquarry_);
}
// .PlantEntity plantEntity = 29;
if (this->has_plantentity()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->plantentity_);
}
// .Helicopter helicopter = 30;
if (this->has_helicopter()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->helicopter_);
}
// .Landmine landmine = 31;
if (this->has_landmine()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->landmine_);
}
// .AutoTurret autoturret = 32;
if (this->has_autoturret()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->autoturret_);
}
// .SphereEntity sphereEntity = 33;
if (this->has_sphereentity()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->sphereentity_);
}
// .StabilityEntity stabilityEntity = 34;
if (this->has_stabilityentity()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->stabilityentity_);
}
// .OwnerInfo ownerInfo = 35;
if (this->has_ownerinfo()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->ownerinfo_);
}
// .DecayEntity decayEntity = 36;
if (this->has_decayentity()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->decayentity_);
}
// .Spawnable spawnable = 37;
if (this->has_spawnable()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->spawnable_);
}
// .ServerGib servergib = 38;
if (this->has_servergib()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->servergib_);
}
// .VendingMachine vendingMachine = 39;
if (this->has_vendingmachine()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->vendingmachine_);
}
// bool createdThisFrame = 100;
if (this->createdthisframe() != 0) {
total_size += 2 + 1;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Entity::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Entity)
GOOGLE_DCHECK_NE(&from, this);
const Entity* source =
::google::protobuf::internal::DynamicCastToGenerated<const Entity>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Entity)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Entity)
MergeFrom(*source);
}
}
void Entity::MergeFrom(const Entity& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Entity)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_basenetworkable()) {
mutable_basenetworkable()->::BaseNetworkable::MergeFrom(from.basenetworkable());
}
if (from.has_baseentity()) {
mutable_baseentity()->::BaseEntity::MergeFrom(from.baseentity());
}
if (from.has_baseplayer()) {
mutable_baseplayer()->::BasePlayer::MergeFrom(from.baseplayer());
}
if (from.has_worlditem()) {
mutable_worlditem()->::WorldItem::MergeFrom(from.worlditem());
}
if (from.has_resource()) {
mutable_resource()->::BaseResource::MergeFrom(from.resource());
}
if (from.has_buildingblock()) {
mutable_buildingblock()->::BuildingBlock::MergeFrom(from.buildingblock());
}
if (from.has_environment()) {
mutable_environment()->::Environment::MergeFrom(from.environment());
}
if (from.has_corpse()) {
mutable_corpse()->::Corpse::MergeFrom(from.corpse());
}
if (from.has_parent()) {
mutable_parent()->::ParentInfo::MergeFrom(from.parent());
}
if (from.has_keylock()) {
mutable_keylock()->::KeyLock::MergeFrom(from.keylock());
}
if (from.has_codelock()) {
mutable_codelock()->::CodeLock::MergeFrom(from.codelock());
}
if (from.has_entityslots()) {
mutable_entityslots()->::EntitySlots::MergeFrom(from.entityslots());
}
if (from.has_buildingprivilege()) {
mutable_buildingprivilege()->::BuildingPrivilege::MergeFrom(from.buildingprivilege());
}
if (from.has_storagebox()) {
mutable_storagebox()->::StorageBox::MergeFrom(from.storagebox());
}
if (from.has_heldentity()) {
mutable_heldentity()->::HeldEntity::MergeFrom(from.heldentity());
}
if (from.has_baseprojectile()) {
mutable_baseprojectile()->::BaseProjectile::MergeFrom(from.baseprojectile());
}
if (from.has_basenpc()) {
mutable_basenpc()->::BaseNPC::MergeFrom(from.basenpc());
}
if (from.has_loot()) {
mutable_loot()->::Loot::MergeFrom(from.loot());
}
if (from.has_genericspawner()) {
mutable_genericspawner()->::GenericSpawner::MergeFrom(from.genericspawner());
}
if (from.has_sleepingbag()) {
mutable_sleepingbag()->::SleepingBag::MergeFrom(from.sleepingbag());
}
if (from.has_lootablecorpse()) {
mutable_lootablecorpse()->::LootableCorpse::MergeFrom(from.lootablecorpse());
}
if (from.has_sign()) {
mutable_sign()->::Sign::MergeFrom(from.sign());
}
if (from.has_basecombat()) {
mutable_basecombat()->::BaseCombat::MergeFrom(from.basecombat());
}
if (from.has_mapentity()) {
mutable_mapentity()->::MapEntity::MergeFrom(from.mapentity());
}
if (from.has_researchtable()) {
mutable_researchtable()->::ResearchTable::MergeFrom(from.researchtable());
}
if (from.has_dudexplosive()) {
mutable_dudexplosive()->::DudExplosive::MergeFrom(from.dudexplosive());
}
if (from.has_miningquarry()) {
mutable_miningquarry()->::MiningQuarry::MergeFrom(from.miningquarry());
}
if (from.has_plantentity()) {
mutable_plantentity()->::PlantEntity::MergeFrom(from.plantentity());
}
if (from.has_helicopter()) {
mutable_helicopter()->::Helicopter::MergeFrom(from.helicopter());
}
if (from.has_landmine()) {
mutable_landmine()->::Landmine::MergeFrom(from.landmine());
}
if (from.has_autoturret()) {
mutable_autoturret()->::AutoTurret::MergeFrom(from.autoturret());
}
if (from.has_sphereentity()) {
mutable_sphereentity()->::SphereEntity::MergeFrom(from.sphereentity());
}
if (from.has_stabilityentity()) {
mutable_stabilityentity()->::StabilityEntity::MergeFrom(from.stabilityentity());
}
if (from.has_ownerinfo()) {
mutable_ownerinfo()->::OwnerInfo::MergeFrom(from.ownerinfo());
}
if (from.has_decayentity()) {
mutable_decayentity()->::DecayEntity::MergeFrom(from.decayentity());
}
if (from.has_spawnable()) {
mutable_spawnable()->::Spawnable::MergeFrom(from.spawnable());
}
if (from.has_servergib()) {
mutable_servergib()->::ServerGib::MergeFrom(from.servergib());
}
if (from.has_vendingmachine()) {
mutable_vendingmachine()->::VendingMachine::MergeFrom(from.vendingmachine());
}
if (from.createdthisframe() != 0) {
set_createdthisframe(from.createdthisframe());
}
}
void Entity::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Entity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Entity::CopyFrom(const Entity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Entity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Entity::IsInitialized() const {
return true;
}
void Entity::Swap(Entity* other) {
if (other == this) return;
InternalSwap(other);
}
void Entity::InternalSwap(Entity* other) {
std::swap(basenetworkable_, other->basenetworkable_);
std::swap(baseentity_, other->baseentity_);
std::swap(baseplayer_, other->baseplayer_);
std::swap(worlditem_, other->worlditem_);
std::swap(resource_, other->resource_);
std::swap(buildingblock_, other->buildingblock_);
std::swap(environment_, other->environment_);
std::swap(corpse_, other->corpse_);
std::swap(parent_, other->parent_);
std::swap(keylock_, other->keylock_);
std::swap(codelock_, other->codelock_);
std::swap(entityslots_, other->entityslots_);
std::swap(buildingprivilege_, other->buildingprivilege_);
std::swap(storagebox_, other->storagebox_);
std::swap(heldentity_, other->heldentity_);
std::swap(baseprojectile_, other->baseprojectile_);
std::swap(basenpc_, other->basenpc_);
std::swap(loot_, other->loot_);
std::swap(genericspawner_, other->genericspawner_);
std::swap(sleepingbag_, other->sleepingbag_);
std::swap(lootablecorpse_, other->lootablecorpse_);
std::swap(sign_, other->sign_);
std::swap(basecombat_, other->basecombat_);
std::swap(mapentity_, other->mapentity_);
std::swap(researchtable_, other->researchtable_);
std::swap(dudexplosive_, other->dudexplosive_);
std::swap(miningquarry_, other->miningquarry_);
std::swap(plantentity_, other->plantentity_);
std::swap(helicopter_, other->helicopter_);
std::swap(landmine_, other->landmine_);
std::swap(autoturret_, other->autoturret_);
std::swap(sphereentity_, other->sphereentity_);
std::swap(stabilityentity_, other->stabilityentity_);
std::swap(ownerinfo_, other->ownerinfo_);
std::swap(decayentity_, other->decayentity_);
std::swap(spawnable_, other->spawnable_);
std::swap(servergib_, other->servergib_);
std::swap(vendingmachine_, other->vendingmachine_);
std::swap(createdthisframe_, other->createdthisframe_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Entity::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[4];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Entity
// .BaseNetworkable baseNetworkable = 1;
bool Entity::has_basenetworkable() const {
return this != internal_default_instance() && basenetworkable_ != NULL;
}
void Entity::clear_basenetworkable() {
if (GetArenaNoVirtual() == NULL && basenetworkable_ != NULL) delete basenetworkable_;
basenetworkable_ = NULL;
}
const ::BaseNetworkable& Entity::basenetworkable() const {
// @@protoc_insertion_point(field_get:Entity.baseNetworkable)
return basenetworkable_ != NULL ? *basenetworkable_
: *::BaseNetworkable::internal_default_instance();
}
::BaseNetworkable* Entity::mutable_basenetworkable() {
if (basenetworkable_ == NULL) {
basenetworkable_ = new ::BaseNetworkable;
}
// @@protoc_insertion_point(field_mutable:Entity.baseNetworkable)
return basenetworkable_;
}
::BaseNetworkable* Entity::release_basenetworkable() {
// @@protoc_insertion_point(field_release:Entity.baseNetworkable)
::BaseNetworkable* temp = basenetworkable_;
basenetworkable_ = NULL;
return temp;
}
void Entity::set_allocated_basenetworkable(::BaseNetworkable* basenetworkable) {
delete basenetworkable_;
basenetworkable_ = basenetworkable;
if (basenetworkable) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.baseNetworkable)
}
// .BaseEntity baseEntity = 2;
bool Entity::has_baseentity() const {
return this != internal_default_instance() && baseentity_ != NULL;
}
void Entity::clear_baseentity() {
if (GetArenaNoVirtual() == NULL && baseentity_ != NULL) delete baseentity_;
baseentity_ = NULL;
}
const ::BaseEntity& Entity::baseentity() const {
// @@protoc_insertion_point(field_get:Entity.baseEntity)
return baseentity_ != NULL ? *baseentity_
: *::BaseEntity::internal_default_instance();
}
::BaseEntity* Entity::mutable_baseentity() {
if (baseentity_ == NULL) {
baseentity_ = new ::BaseEntity;
}
// @@protoc_insertion_point(field_mutable:Entity.baseEntity)
return baseentity_;
}
::BaseEntity* Entity::release_baseentity() {
// @@protoc_insertion_point(field_release:Entity.baseEntity)
::BaseEntity* temp = baseentity_;
baseentity_ = NULL;
return temp;
}
void Entity::set_allocated_baseentity(::BaseEntity* baseentity) {
delete baseentity_;
baseentity_ = baseentity;
if (baseentity) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.baseEntity)
}
// .BasePlayer basePlayer = 3;
bool Entity::has_baseplayer() const {
return this != internal_default_instance() && baseplayer_ != NULL;
}
void Entity::clear_baseplayer() {
if (GetArenaNoVirtual() == NULL && baseplayer_ != NULL) delete baseplayer_;
baseplayer_ = NULL;
}
const ::BasePlayer& Entity::baseplayer() const {
// @@protoc_insertion_point(field_get:Entity.basePlayer)
return baseplayer_ != NULL ? *baseplayer_
: *::BasePlayer::internal_default_instance();
}
::BasePlayer* Entity::mutable_baseplayer() {
if (baseplayer_ == NULL) {
baseplayer_ = new ::BasePlayer;
}
// @@protoc_insertion_point(field_mutable:Entity.basePlayer)
return baseplayer_;
}
::BasePlayer* Entity::release_baseplayer() {
// @@protoc_insertion_point(field_release:Entity.basePlayer)
::BasePlayer* temp = baseplayer_;
baseplayer_ = NULL;
return temp;
}
void Entity::set_allocated_baseplayer(::BasePlayer* baseplayer) {
delete baseplayer_;
baseplayer_ = baseplayer;
if (baseplayer) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.basePlayer)
}
// .WorldItem worldItem = 4;
bool Entity::has_worlditem() const {
return this != internal_default_instance() && worlditem_ != NULL;
}
void Entity::clear_worlditem() {
if (GetArenaNoVirtual() == NULL && worlditem_ != NULL) delete worlditem_;
worlditem_ = NULL;
}
const ::WorldItem& Entity::worlditem() const {
// @@protoc_insertion_point(field_get:Entity.worldItem)
return worlditem_ != NULL ? *worlditem_
: *::WorldItem::internal_default_instance();
}
::WorldItem* Entity::mutable_worlditem() {
if (worlditem_ == NULL) {
worlditem_ = new ::WorldItem;
}
// @@protoc_insertion_point(field_mutable:Entity.worldItem)
return worlditem_;
}
::WorldItem* Entity::release_worlditem() {
// @@protoc_insertion_point(field_release:Entity.worldItem)
::WorldItem* temp = worlditem_;
worlditem_ = NULL;
return temp;
}
void Entity::set_allocated_worlditem(::WorldItem* worlditem) {
delete worlditem_;
worlditem_ = worlditem;
if (worlditem) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.worldItem)
}
// .BaseResource resource = 5;
bool Entity::has_resource() const {
return this != internal_default_instance() && resource_ != NULL;
}
void Entity::clear_resource() {
if (GetArenaNoVirtual() == NULL && resource_ != NULL) delete resource_;
resource_ = NULL;
}
const ::BaseResource& Entity::resource() const {
// @@protoc_insertion_point(field_get:Entity.resource)
return resource_ != NULL ? *resource_
: *::BaseResource::internal_default_instance();
}
::BaseResource* Entity::mutable_resource() {
if (resource_ == NULL) {
resource_ = new ::BaseResource;
}
// @@protoc_insertion_point(field_mutable:Entity.resource)
return resource_;
}
::BaseResource* Entity::release_resource() {
// @@protoc_insertion_point(field_release:Entity.resource)
::BaseResource* temp = resource_;
resource_ = NULL;
return temp;
}
void Entity::set_allocated_resource(::BaseResource* resource) {
delete resource_;
resource_ = resource;
if (resource) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.resource)
}
// .BuildingBlock buildingBlock = 6;
bool Entity::has_buildingblock() const {
return this != internal_default_instance() && buildingblock_ != NULL;
}
void Entity::clear_buildingblock() {
if (GetArenaNoVirtual() == NULL && buildingblock_ != NULL) delete buildingblock_;
buildingblock_ = NULL;
}
const ::BuildingBlock& Entity::buildingblock() const {
// @@protoc_insertion_point(field_get:Entity.buildingBlock)
return buildingblock_ != NULL ? *buildingblock_
: *::BuildingBlock::internal_default_instance();
}
::BuildingBlock* Entity::mutable_buildingblock() {
if (buildingblock_ == NULL) {
buildingblock_ = new ::BuildingBlock;
}
// @@protoc_insertion_point(field_mutable:Entity.buildingBlock)
return buildingblock_;
}
::BuildingBlock* Entity::release_buildingblock() {
// @@protoc_insertion_point(field_release:Entity.buildingBlock)
::BuildingBlock* temp = buildingblock_;
buildingblock_ = NULL;
return temp;
}
void Entity::set_allocated_buildingblock(::BuildingBlock* buildingblock) {
delete buildingblock_;
buildingblock_ = buildingblock;
if (buildingblock) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.buildingBlock)
}
// .Environment environment = 7;
bool Entity::has_environment() const {
return this != internal_default_instance() && environment_ != NULL;
}
void Entity::clear_environment() {
if (GetArenaNoVirtual() == NULL && environment_ != NULL) delete environment_;
environment_ = NULL;
}
const ::Environment& Entity::environment() const {
// @@protoc_insertion_point(field_get:Entity.environment)
return environment_ != NULL ? *environment_
: *::Environment::internal_default_instance();
}
::Environment* Entity::mutable_environment() {
if (environment_ == NULL) {
environment_ = new ::Environment;
}
// @@protoc_insertion_point(field_mutable:Entity.environment)
return environment_;
}
::Environment* Entity::release_environment() {
// @@protoc_insertion_point(field_release:Entity.environment)
::Environment* temp = environment_;
environment_ = NULL;
return temp;
}
void Entity::set_allocated_environment(::Environment* environment) {
delete environment_;
environment_ = environment;
if (environment) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.environment)
}
// .Corpse corpse = 8;
bool Entity::has_corpse() const {
return this != internal_default_instance() && corpse_ != NULL;
}
void Entity::clear_corpse() {
if (GetArenaNoVirtual() == NULL && corpse_ != NULL) delete corpse_;
corpse_ = NULL;
}
const ::Corpse& Entity::corpse() const {
// @@protoc_insertion_point(field_get:Entity.corpse)
return corpse_ != NULL ? *corpse_
: *::Corpse::internal_default_instance();
}
::Corpse* Entity::mutable_corpse() {
if (corpse_ == NULL) {
corpse_ = new ::Corpse;
}
// @@protoc_insertion_point(field_mutable:Entity.corpse)
return corpse_;
}
::Corpse* Entity::release_corpse() {
// @@protoc_insertion_point(field_release:Entity.corpse)
::Corpse* temp = corpse_;
corpse_ = NULL;
return temp;
}
void Entity::set_allocated_corpse(::Corpse* corpse) {
delete corpse_;
corpse_ = corpse;
if (corpse) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.corpse)
}
// .ParentInfo parent = 10;
bool Entity::has_parent() const {
return this != internal_default_instance() && parent_ != NULL;
}
void Entity::clear_parent() {
if (GetArenaNoVirtual() == NULL && parent_ != NULL) delete parent_;
parent_ = NULL;
}
const ::ParentInfo& Entity::parent() const {
// @@protoc_insertion_point(field_get:Entity.parent)
return parent_ != NULL ? *parent_
: *::ParentInfo::internal_default_instance();
}
::ParentInfo* Entity::mutable_parent() {
if (parent_ == NULL) {
parent_ = new ::ParentInfo;
}
// @@protoc_insertion_point(field_mutable:Entity.parent)
return parent_;
}
::ParentInfo* Entity::release_parent() {
// @@protoc_insertion_point(field_release:Entity.parent)
::ParentInfo* temp = parent_;
parent_ = NULL;
return temp;
}
void Entity::set_allocated_parent(::ParentInfo* parent) {
delete parent_;
parent_ = parent;
if (parent) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.parent)
}
// .KeyLock keyLock = 11;
bool Entity::has_keylock() const {
return this != internal_default_instance() && keylock_ != NULL;
}
void Entity::clear_keylock() {
if (GetArenaNoVirtual() == NULL && keylock_ != NULL) delete keylock_;
keylock_ = NULL;
}
const ::KeyLock& Entity::keylock() const {
// @@protoc_insertion_point(field_get:Entity.keyLock)
return keylock_ != NULL ? *keylock_
: *::KeyLock::internal_default_instance();
}
::KeyLock* Entity::mutable_keylock() {
if (keylock_ == NULL) {
keylock_ = new ::KeyLock;
}
// @@protoc_insertion_point(field_mutable:Entity.keyLock)
return keylock_;
}
::KeyLock* Entity::release_keylock() {
// @@protoc_insertion_point(field_release:Entity.keyLock)
::KeyLock* temp = keylock_;
keylock_ = NULL;
return temp;
}
void Entity::set_allocated_keylock(::KeyLock* keylock) {
delete keylock_;
keylock_ = keylock;
if (keylock) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.keyLock)
}
// .CodeLock codeLock = 12;
bool Entity::has_codelock() const {
return this != internal_default_instance() && codelock_ != NULL;
}
void Entity::clear_codelock() {
if (GetArenaNoVirtual() == NULL && codelock_ != NULL) delete codelock_;
codelock_ = NULL;
}
const ::CodeLock& Entity::codelock() const {
// @@protoc_insertion_point(field_get:Entity.codeLock)
return codelock_ != NULL ? *codelock_
: *::CodeLock::internal_default_instance();
}
::CodeLock* Entity::mutable_codelock() {
if (codelock_ == NULL) {
codelock_ = new ::CodeLock;
}
// @@protoc_insertion_point(field_mutable:Entity.codeLock)
return codelock_;
}
::CodeLock* Entity::release_codelock() {
// @@protoc_insertion_point(field_release:Entity.codeLock)
::CodeLock* temp = codelock_;
codelock_ = NULL;
return temp;
}
void Entity::set_allocated_codelock(::CodeLock* codelock) {
delete codelock_;
codelock_ = codelock;
if (codelock) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.codeLock)
}
// .EntitySlots entitySlots = 13;
bool Entity::has_entityslots() const {
return this != internal_default_instance() && entityslots_ != NULL;
}
void Entity::clear_entityslots() {
if (GetArenaNoVirtual() == NULL && entityslots_ != NULL) delete entityslots_;
entityslots_ = NULL;
}
const ::EntitySlots& Entity::entityslots() const {
// @@protoc_insertion_point(field_get:Entity.entitySlots)
return entityslots_ != NULL ? *entityslots_
: *::EntitySlots::internal_default_instance();
}
::EntitySlots* Entity::mutable_entityslots() {
if (entityslots_ == NULL) {
entityslots_ = new ::EntitySlots;
}
// @@protoc_insertion_point(field_mutable:Entity.entitySlots)
return entityslots_;
}
::EntitySlots* Entity::release_entityslots() {
// @@protoc_insertion_point(field_release:Entity.entitySlots)
::EntitySlots* temp = entityslots_;
entityslots_ = NULL;
return temp;
}
void Entity::set_allocated_entityslots(::EntitySlots* entityslots) {
delete entityslots_;
entityslots_ = entityslots;
if (entityslots) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.entitySlots)
}
// .BuildingPrivilege buildingPrivilege = 14;
bool Entity::has_buildingprivilege() const {
return this != internal_default_instance() && buildingprivilege_ != NULL;
}
void Entity::clear_buildingprivilege() {
if (GetArenaNoVirtual() == NULL && buildingprivilege_ != NULL) delete buildingprivilege_;
buildingprivilege_ = NULL;
}
const ::BuildingPrivilege& Entity::buildingprivilege() const {
// @@protoc_insertion_point(field_get:Entity.buildingPrivilege)
return buildingprivilege_ != NULL ? *buildingprivilege_
: *::BuildingPrivilege::internal_default_instance();
}
::BuildingPrivilege* Entity::mutable_buildingprivilege() {
if (buildingprivilege_ == NULL) {
buildingprivilege_ = new ::BuildingPrivilege;
}
// @@protoc_insertion_point(field_mutable:Entity.buildingPrivilege)
return buildingprivilege_;
}
::BuildingPrivilege* Entity::release_buildingprivilege() {
// @@protoc_insertion_point(field_release:Entity.buildingPrivilege)
::BuildingPrivilege* temp = buildingprivilege_;
buildingprivilege_ = NULL;
return temp;
}
void Entity::set_allocated_buildingprivilege(::BuildingPrivilege* buildingprivilege) {
delete buildingprivilege_;
buildingprivilege_ = buildingprivilege;
if (buildingprivilege) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.buildingPrivilege)
}
// .StorageBox storageBox = 15;
bool Entity::has_storagebox() const {
return this != internal_default_instance() && storagebox_ != NULL;
}
void Entity::clear_storagebox() {
if (GetArenaNoVirtual() == NULL && storagebox_ != NULL) delete storagebox_;
storagebox_ = NULL;
}
const ::StorageBox& Entity::storagebox() const {
// @@protoc_insertion_point(field_get:Entity.storageBox)
return storagebox_ != NULL ? *storagebox_
: *::StorageBox::internal_default_instance();
}
::StorageBox* Entity::mutable_storagebox() {
if (storagebox_ == NULL) {
storagebox_ = new ::StorageBox;
}
// @@protoc_insertion_point(field_mutable:Entity.storageBox)
return storagebox_;
}
::StorageBox* Entity::release_storagebox() {
// @@protoc_insertion_point(field_release:Entity.storageBox)
::StorageBox* temp = storagebox_;
storagebox_ = NULL;
return temp;
}
void Entity::set_allocated_storagebox(::StorageBox* storagebox) {
delete storagebox_;
storagebox_ = storagebox;
if (storagebox) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.storageBox)
}
// .HeldEntity heldEntity = 16;
bool Entity::has_heldentity() const {
return this != internal_default_instance() && heldentity_ != NULL;
}
void Entity::clear_heldentity() {
if (GetArenaNoVirtual() == NULL && heldentity_ != NULL) delete heldentity_;
heldentity_ = NULL;
}
const ::HeldEntity& Entity::heldentity() const {
// @@protoc_insertion_point(field_get:Entity.heldEntity)
return heldentity_ != NULL ? *heldentity_
: *::HeldEntity::internal_default_instance();
}
::HeldEntity* Entity::mutable_heldentity() {
if (heldentity_ == NULL) {
heldentity_ = new ::HeldEntity;
}
// @@protoc_insertion_point(field_mutable:Entity.heldEntity)
return heldentity_;
}
::HeldEntity* Entity::release_heldentity() {
// @@protoc_insertion_point(field_release:Entity.heldEntity)
::HeldEntity* temp = heldentity_;
heldentity_ = NULL;
return temp;
}
void Entity::set_allocated_heldentity(::HeldEntity* heldentity) {
delete heldentity_;
heldentity_ = heldentity;
if (heldentity) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.heldEntity)
}
// .BaseProjectile baseProjectile = 17;
bool Entity::has_baseprojectile() const {
return this != internal_default_instance() && baseprojectile_ != NULL;
}
void Entity::clear_baseprojectile() {
if (GetArenaNoVirtual() == NULL && baseprojectile_ != NULL) delete baseprojectile_;
baseprojectile_ = NULL;
}
const ::BaseProjectile& Entity::baseprojectile() const {
// @@protoc_insertion_point(field_get:Entity.baseProjectile)
return baseprojectile_ != NULL ? *baseprojectile_
: *::BaseProjectile::internal_default_instance();
}
::BaseProjectile* Entity::mutable_baseprojectile() {
if (baseprojectile_ == NULL) {
baseprojectile_ = new ::BaseProjectile;
}
// @@protoc_insertion_point(field_mutable:Entity.baseProjectile)
return baseprojectile_;
}
::BaseProjectile* Entity::release_baseprojectile() {
// @@protoc_insertion_point(field_release:Entity.baseProjectile)
::BaseProjectile* temp = baseprojectile_;
baseprojectile_ = NULL;
return temp;
}
void Entity::set_allocated_baseprojectile(::BaseProjectile* baseprojectile) {
delete baseprojectile_;
baseprojectile_ = baseprojectile;
if (baseprojectile) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.baseProjectile)
}
// .BaseNPC baseNPC = 18;
bool Entity::has_basenpc() const {
return this != internal_default_instance() && basenpc_ != NULL;
}
void Entity::clear_basenpc() {
if (GetArenaNoVirtual() == NULL && basenpc_ != NULL) delete basenpc_;
basenpc_ = NULL;
}
const ::BaseNPC& Entity::basenpc() const {
// @@protoc_insertion_point(field_get:Entity.baseNPC)
return basenpc_ != NULL ? *basenpc_
: *::BaseNPC::internal_default_instance();
}
::BaseNPC* Entity::mutable_basenpc() {
if (basenpc_ == NULL) {
basenpc_ = new ::BaseNPC;
}
// @@protoc_insertion_point(field_mutable:Entity.baseNPC)
return basenpc_;
}
::BaseNPC* Entity::release_basenpc() {
// @@protoc_insertion_point(field_release:Entity.baseNPC)
::BaseNPC* temp = basenpc_;
basenpc_ = NULL;
return temp;
}
void Entity::set_allocated_basenpc(::BaseNPC* basenpc) {
delete basenpc_;
basenpc_ = basenpc;
if (basenpc) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.baseNPC)
}
// .Loot loot = 19;
bool Entity::has_loot() const {
return this != internal_default_instance() && loot_ != NULL;
}
void Entity::clear_loot() {
if (GetArenaNoVirtual() == NULL && loot_ != NULL) delete loot_;
loot_ = NULL;
}
const ::Loot& Entity::loot() const {
// @@protoc_insertion_point(field_get:Entity.loot)
return loot_ != NULL ? *loot_
: *::Loot::internal_default_instance();
}
::Loot* Entity::mutable_loot() {
if (loot_ == NULL) {
loot_ = new ::Loot;
}
// @@protoc_insertion_point(field_mutable:Entity.loot)
return loot_;
}
::Loot* Entity::release_loot() {
// @@protoc_insertion_point(field_release:Entity.loot)
::Loot* temp = loot_;
loot_ = NULL;
return temp;
}
void Entity::set_allocated_loot(::Loot* loot) {
delete loot_;
loot_ = loot;
if (loot) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.loot)
}
// .GenericSpawner genericSpawner = 20;
bool Entity::has_genericspawner() const {
return this != internal_default_instance() && genericspawner_ != NULL;
}
void Entity::clear_genericspawner() {
if (GetArenaNoVirtual() == NULL && genericspawner_ != NULL) delete genericspawner_;
genericspawner_ = NULL;
}
const ::GenericSpawner& Entity::genericspawner() const {
// @@protoc_insertion_point(field_get:Entity.genericSpawner)
return genericspawner_ != NULL ? *genericspawner_
: *::GenericSpawner::internal_default_instance();
}
::GenericSpawner* Entity::mutable_genericspawner() {
if (genericspawner_ == NULL) {
genericspawner_ = new ::GenericSpawner;
}
// @@protoc_insertion_point(field_mutable:Entity.genericSpawner)
return genericspawner_;
}
::GenericSpawner* Entity::release_genericspawner() {
// @@protoc_insertion_point(field_release:Entity.genericSpawner)
::GenericSpawner* temp = genericspawner_;
genericspawner_ = NULL;
return temp;
}
void Entity::set_allocated_genericspawner(::GenericSpawner* genericspawner) {
delete genericspawner_;
genericspawner_ = genericspawner;
if (genericspawner) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.genericSpawner)
}
// .SleepingBag sleepingBag = 21;
bool Entity::has_sleepingbag() const {
return this != internal_default_instance() && sleepingbag_ != NULL;
}
void Entity::clear_sleepingbag() {
if (GetArenaNoVirtual() == NULL && sleepingbag_ != NULL) delete sleepingbag_;
sleepingbag_ = NULL;
}
const ::SleepingBag& Entity::sleepingbag() const {
// @@protoc_insertion_point(field_get:Entity.sleepingBag)
return sleepingbag_ != NULL ? *sleepingbag_
: *::SleepingBag::internal_default_instance();
}
::SleepingBag* Entity::mutable_sleepingbag() {
if (sleepingbag_ == NULL) {
sleepingbag_ = new ::SleepingBag;
}
// @@protoc_insertion_point(field_mutable:Entity.sleepingBag)
return sleepingbag_;
}
::SleepingBag* Entity::release_sleepingbag() {
// @@protoc_insertion_point(field_release:Entity.sleepingBag)
::SleepingBag* temp = sleepingbag_;
sleepingbag_ = NULL;
return temp;
}
void Entity::set_allocated_sleepingbag(::SleepingBag* sleepingbag) {
delete sleepingbag_;
sleepingbag_ = sleepingbag;
if (sleepingbag) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.sleepingBag)
}
// .LootableCorpse lootableCorpse = 22;
bool Entity::has_lootablecorpse() const {
return this != internal_default_instance() && lootablecorpse_ != NULL;
}
void Entity::clear_lootablecorpse() {
if (GetArenaNoVirtual() == NULL && lootablecorpse_ != NULL) delete lootablecorpse_;
lootablecorpse_ = NULL;
}
const ::LootableCorpse& Entity::lootablecorpse() const {
// @@protoc_insertion_point(field_get:Entity.lootableCorpse)
return lootablecorpse_ != NULL ? *lootablecorpse_
: *::LootableCorpse::internal_default_instance();
}
::LootableCorpse* Entity::mutable_lootablecorpse() {
if (lootablecorpse_ == NULL) {
lootablecorpse_ = new ::LootableCorpse;
}
// @@protoc_insertion_point(field_mutable:Entity.lootableCorpse)
return lootablecorpse_;
}
::LootableCorpse* Entity::release_lootablecorpse() {
// @@protoc_insertion_point(field_release:Entity.lootableCorpse)
::LootableCorpse* temp = lootablecorpse_;
lootablecorpse_ = NULL;
return temp;
}
void Entity::set_allocated_lootablecorpse(::LootableCorpse* lootablecorpse) {
delete lootablecorpse_;
lootablecorpse_ = lootablecorpse;
if (lootablecorpse) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.lootableCorpse)
}
// .Sign sign = 23;
bool Entity::has_sign() const {
return this != internal_default_instance() && sign_ != NULL;
}
void Entity::clear_sign() {
if (GetArenaNoVirtual() == NULL && sign_ != NULL) delete sign_;
sign_ = NULL;
}
const ::Sign& Entity::sign() const {
// @@protoc_insertion_point(field_get:Entity.sign)
return sign_ != NULL ? *sign_
: *::Sign::internal_default_instance();
}
::Sign* Entity::mutable_sign() {
if (sign_ == NULL) {
sign_ = new ::Sign;
}
// @@protoc_insertion_point(field_mutable:Entity.sign)
return sign_;
}
::Sign* Entity::release_sign() {
// @@protoc_insertion_point(field_release:Entity.sign)
::Sign* temp = sign_;
sign_ = NULL;
return temp;
}
void Entity::set_allocated_sign(::Sign* sign) {
delete sign_;
sign_ = sign;
if (sign) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.sign)
}
// .BaseCombat baseCombat = 24;
bool Entity::has_basecombat() const {
return this != internal_default_instance() && basecombat_ != NULL;
}
void Entity::clear_basecombat() {
if (GetArenaNoVirtual() == NULL && basecombat_ != NULL) delete basecombat_;
basecombat_ = NULL;
}
const ::BaseCombat& Entity::basecombat() const {
// @@protoc_insertion_point(field_get:Entity.baseCombat)
return basecombat_ != NULL ? *basecombat_
: *::BaseCombat::internal_default_instance();
}
::BaseCombat* Entity::mutable_basecombat() {
if (basecombat_ == NULL) {
basecombat_ = new ::BaseCombat;
}
// @@protoc_insertion_point(field_mutable:Entity.baseCombat)
return basecombat_;
}
::BaseCombat* Entity::release_basecombat() {
// @@protoc_insertion_point(field_release:Entity.baseCombat)
::BaseCombat* temp = basecombat_;
basecombat_ = NULL;
return temp;
}
void Entity::set_allocated_basecombat(::BaseCombat* basecombat) {
delete basecombat_;
basecombat_ = basecombat;
if (basecombat) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.baseCombat)
}
// .MapEntity mapEntity = 25;
bool Entity::has_mapentity() const {
return this != internal_default_instance() && mapentity_ != NULL;
}
void Entity::clear_mapentity() {
if (GetArenaNoVirtual() == NULL && mapentity_ != NULL) delete mapentity_;
mapentity_ = NULL;
}
const ::MapEntity& Entity::mapentity() const {
// @@protoc_insertion_point(field_get:Entity.mapEntity)
return mapentity_ != NULL ? *mapentity_
: *::MapEntity::internal_default_instance();
}
::MapEntity* Entity::mutable_mapentity() {
if (mapentity_ == NULL) {
mapentity_ = new ::MapEntity;
}
// @@protoc_insertion_point(field_mutable:Entity.mapEntity)
return mapentity_;
}
::MapEntity* Entity::release_mapentity() {
// @@protoc_insertion_point(field_release:Entity.mapEntity)
::MapEntity* temp = mapentity_;
mapentity_ = NULL;
return temp;
}
void Entity::set_allocated_mapentity(::MapEntity* mapentity) {
delete mapentity_;
mapentity_ = mapentity;
if (mapentity) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.mapEntity)
}
// .ResearchTable researchTable = 26;
bool Entity::has_researchtable() const {
return this != internal_default_instance() && researchtable_ != NULL;
}
void Entity::clear_researchtable() {
if (GetArenaNoVirtual() == NULL && researchtable_ != NULL) delete researchtable_;
researchtable_ = NULL;
}
const ::ResearchTable& Entity::researchtable() const {
// @@protoc_insertion_point(field_get:Entity.researchTable)
return researchtable_ != NULL ? *researchtable_
: *::ResearchTable::internal_default_instance();
}
::ResearchTable* Entity::mutable_researchtable() {
if (researchtable_ == NULL) {
researchtable_ = new ::ResearchTable;
}
// @@protoc_insertion_point(field_mutable:Entity.researchTable)
return researchtable_;
}
::ResearchTable* Entity::release_researchtable() {
// @@protoc_insertion_point(field_release:Entity.researchTable)
::ResearchTable* temp = researchtable_;
researchtable_ = NULL;
return temp;
}
void Entity::set_allocated_researchtable(::ResearchTable* researchtable) {
delete researchtable_;
researchtable_ = researchtable;
if (researchtable) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.researchTable)
}
// .DudExplosive dudExplosive = 27;
bool Entity::has_dudexplosive() const {
return this != internal_default_instance() && dudexplosive_ != NULL;
}
void Entity::clear_dudexplosive() {
if (GetArenaNoVirtual() == NULL && dudexplosive_ != NULL) delete dudexplosive_;
dudexplosive_ = NULL;
}
const ::DudExplosive& Entity::dudexplosive() const {
// @@protoc_insertion_point(field_get:Entity.dudExplosive)
return dudexplosive_ != NULL ? *dudexplosive_
: *::DudExplosive::internal_default_instance();
}
::DudExplosive* Entity::mutable_dudexplosive() {
if (dudexplosive_ == NULL) {
dudexplosive_ = new ::DudExplosive;
}
// @@protoc_insertion_point(field_mutable:Entity.dudExplosive)
return dudexplosive_;
}
::DudExplosive* Entity::release_dudexplosive() {
// @@protoc_insertion_point(field_release:Entity.dudExplosive)
::DudExplosive* temp = dudexplosive_;
dudexplosive_ = NULL;
return temp;
}
void Entity::set_allocated_dudexplosive(::DudExplosive* dudexplosive) {
delete dudexplosive_;
dudexplosive_ = dudexplosive;
if (dudexplosive) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.dudExplosive)
}
// .MiningQuarry miningQuarry = 28;
bool Entity::has_miningquarry() const {
return this != internal_default_instance() && miningquarry_ != NULL;
}
void Entity::clear_miningquarry() {
if (GetArenaNoVirtual() == NULL && miningquarry_ != NULL) delete miningquarry_;
miningquarry_ = NULL;
}
const ::MiningQuarry& Entity::miningquarry() const {
// @@protoc_insertion_point(field_get:Entity.miningQuarry)
return miningquarry_ != NULL ? *miningquarry_
: *::MiningQuarry::internal_default_instance();
}
::MiningQuarry* Entity::mutable_miningquarry() {
if (miningquarry_ == NULL) {
miningquarry_ = new ::MiningQuarry;
}
// @@protoc_insertion_point(field_mutable:Entity.miningQuarry)
return miningquarry_;
}
::MiningQuarry* Entity::release_miningquarry() {
// @@protoc_insertion_point(field_release:Entity.miningQuarry)
::MiningQuarry* temp = miningquarry_;
miningquarry_ = NULL;
return temp;
}
void Entity::set_allocated_miningquarry(::MiningQuarry* miningquarry) {
delete miningquarry_;
miningquarry_ = miningquarry;
if (miningquarry) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.miningQuarry)
}
// .PlantEntity plantEntity = 29;
bool Entity::has_plantentity() const {
return this != internal_default_instance() && plantentity_ != NULL;
}
void Entity::clear_plantentity() {
if (GetArenaNoVirtual() == NULL && plantentity_ != NULL) delete plantentity_;
plantentity_ = NULL;
}
const ::PlantEntity& Entity::plantentity() const {
// @@protoc_insertion_point(field_get:Entity.plantEntity)
return plantentity_ != NULL ? *plantentity_
: *::PlantEntity::internal_default_instance();
}
::PlantEntity* Entity::mutable_plantentity() {
if (plantentity_ == NULL) {
plantentity_ = new ::PlantEntity;
}
// @@protoc_insertion_point(field_mutable:Entity.plantEntity)
return plantentity_;
}
::PlantEntity* Entity::release_plantentity() {
// @@protoc_insertion_point(field_release:Entity.plantEntity)
::PlantEntity* temp = plantentity_;
plantentity_ = NULL;
return temp;
}
void Entity::set_allocated_plantentity(::PlantEntity* plantentity) {
delete plantentity_;
plantentity_ = plantentity;
if (plantentity) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.plantEntity)
}
// .Helicopter helicopter = 30;
bool Entity::has_helicopter() const {
return this != internal_default_instance() && helicopter_ != NULL;
}
void Entity::clear_helicopter() {
if (GetArenaNoVirtual() == NULL && helicopter_ != NULL) delete helicopter_;
helicopter_ = NULL;
}
const ::Helicopter& Entity::helicopter() const {
// @@protoc_insertion_point(field_get:Entity.helicopter)
return helicopter_ != NULL ? *helicopter_
: *::Helicopter::internal_default_instance();
}
::Helicopter* Entity::mutable_helicopter() {
if (helicopter_ == NULL) {
helicopter_ = new ::Helicopter;
}
// @@protoc_insertion_point(field_mutable:Entity.helicopter)
return helicopter_;
}
::Helicopter* Entity::release_helicopter() {
// @@protoc_insertion_point(field_release:Entity.helicopter)
::Helicopter* temp = helicopter_;
helicopter_ = NULL;
return temp;
}
void Entity::set_allocated_helicopter(::Helicopter* helicopter) {
delete helicopter_;
helicopter_ = helicopter;
if (helicopter) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.helicopter)
}
// .Landmine landmine = 31;
bool Entity::has_landmine() const {
return this != internal_default_instance() && landmine_ != NULL;
}
void Entity::clear_landmine() {
if (GetArenaNoVirtual() == NULL && landmine_ != NULL) delete landmine_;
landmine_ = NULL;
}
const ::Landmine& Entity::landmine() const {
// @@protoc_insertion_point(field_get:Entity.landmine)
return landmine_ != NULL ? *landmine_
: *::Landmine::internal_default_instance();
}
::Landmine* Entity::mutable_landmine() {
if (landmine_ == NULL) {
landmine_ = new ::Landmine;
}
// @@protoc_insertion_point(field_mutable:Entity.landmine)
return landmine_;
}
::Landmine* Entity::release_landmine() {
// @@protoc_insertion_point(field_release:Entity.landmine)
::Landmine* temp = landmine_;
landmine_ = NULL;
return temp;
}
void Entity::set_allocated_landmine(::Landmine* landmine) {
delete landmine_;
landmine_ = landmine;
if (landmine) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.landmine)
}
// .AutoTurret autoturret = 32;
bool Entity::has_autoturret() const {
return this != internal_default_instance() && autoturret_ != NULL;
}
void Entity::clear_autoturret() {
if (GetArenaNoVirtual() == NULL && autoturret_ != NULL) delete autoturret_;
autoturret_ = NULL;
}
const ::AutoTurret& Entity::autoturret() const {
// @@protoc_insertion_point(field_get:Entity.autoturret)
return autoturret_ != NULL ? *autoturret_
: *::AutoTurret::internal_default_instance();
}
::AutoTurret* Entity::mutable_autoturret() {
if (autoturret_ == NULL) {
autoturret_ = new ::AutoTurret;
}
// @@protoc_insertion_point(field_mutable:Entity.autoturret)
return autoturret_;
}
::AutoTurret* Entity::release_autoturret() {
// @@protoc_insertion_point(field_release:Entity.autoturret)
::AutoTurret* temp = autoturret_;
autoturret_ = NULL;
return temp;
}
void Entity::set_allocated_autoturret(::AutoTurret* autoturret) {
delete autoturret_;
autoturret_ = autoturret;
if (autoturret) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.autoturret)
}
// .SphereEntity sphereEntity = 33;
bool Entity::has_sphereentity() const {
return this != internal_default_instance() && sphereentity_ != NULL;
}
void Entity::clear_sphereentity() {
if (GetArenaNoVirtual() == NULL && sphereentity_ != NULL) delete sphereentity_;
sphereentity_ = NULL;
}
const ::SphereEntity& Entity::sphereentity() const {
// @@protoc_insertion_point(field_get:Entity.sphereEntity)
return sphereentity_ != NULL ? *sphereentity_
: *::SphereEntity::internal_default_instance();
}
::SphereEntity* Entity::mutable_sphereentity() {
if (sphereentity_ == NULL) {
sphereentity_ = new ::SphereEntity;
}
// @@protoc_insertion_point(field_mutable:Entity.sphereEntity)
return sphereentity_;
}
::SphereEntity* Entity::release_sphereentity() {
// @@protoc_insertion_point(field_release:Entity.sphereEntity)
::SphereEntity* temp = sphereentity_;
sphereentity_ = NULL;
return temp;
}
void Entity::set_allocated_sphereentity(::SphereEntity* sphereentity) {
delete sphereentity_;
sphereentity_ = sphereentity;
if (sphereentity) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.sphereEntity)
}
// .StabilityEntity stabilityEntity = 34;
bool Entity::has_stabilityentity() const {
return this != internal_default_instance() && stabilityentity_ != NULL;
}
void Entity::clear_stabilityentity() {
if (GetArenaNoVirtual() == NULL && stabilityentity_ != NULL) delete stabilityentity_;
stabilityentity_ = NULL;
}
const ::StabilityEntity& Entity::stabilityentity() const {
// @@protoc_insertion_point(field_get:Entity.stabilityEntity)
return stabilityentity_ != NULL ? *stabilityentity_
: *::StabilityEntity::internal_default_instance();
}
::StabilityEntity* Entity::mutable_stabilityentity() {
if (stabilityentity_ == NULL) {
stabilityentity_ = new ::StabilityEntity;
}
// @@protoc_insertion_point(field_mutable:Entity.stabilityEntity)
return stabilityentity_;
}
::StabilityEntity* Entity::release_stabilityentity() {
// @@protoc_insertion_point(field_release:Entity.stabilityEntity)
::StabilityEntity* temp = stabilityentity_;
stabilityentity_ = NULL;
return temp;
}
void Entity::set_allocated_stabilityentity(::StabilityEntity* stabilityentity) {
delete stabilityentity_;
stabilityentity_ = stabilityentity;
if (stabilityentity) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.stabilityEntity)
}
// .OwnerInfo ownerInfo = 35;
bool Entity::has_ownerinfo() const {
return this != internal_default_instance() && ownerinfo_ != NULL;
}
void Entity::clear_ownerinfo() {
if (GetArenaNoVirtual() == NULL && ownerinfo_ != NULL) delete ownerinfo_;
ownerinfo_ = NULL;
}
const ::OwnerInfo& Entity::ownerinfo() const {
// @@protoc_insertion_point(field_get:Entity.ownerInfo)
return ownerinfo_ != NULL ? *ownerinfo_
: *::OwnerInfo::internal_default_instance();
}
::OwnerInfo* Entity::mutable_ownerinfo() {
if (ownerinfo_ == NULL) {
ownerinfo_ = new ::OwnerInfo;
}
// @@protoc_insertion_point(field_mutable:Entity.ownerInfo)
return ownerinfo_;
}
::OwnerInfo* Entity::release_ownerinfo() {
// @@protoc_insertion_point(field_release:Entity.ownerInfo)
::OwnerInfo* temp = ownerinfo_;
ownerinfo_ = NULL;
return temp;
}
void Entity::set_allocated_ownerinfo(::OwnerInfo* ownerinfo) {
delete ownerinfo_;
ownerinfo_ = ownerinfo;
if (ownerinfo) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.ownerInfo)
}
// .DecayEntity decayEntity = 36;
bool Entity::has_decayentity() const {
return this != internal_default_instance() && decayentity_ != NULL;
}
void Entity::clear_decayentity() {
if (GetArenaNoVirtual() == NULL && decayentity_ != NULL) delete decayentity_;
decayentity_ = NULL;
}
const ::DecayEntity& Entity::decayentity() const {
// @@protoc_insertion_point(field_get:Entity.decayEntity)
return decayentity_ != NULL ? *decayentity_
: *::DecayEntity::internal_default_instance();
}
::DecayEntity* Entity::mutable_decayentity() {
if (decayentity_ == NULL) {
decayentity_ = new ::DecayEntity;
}
// @@protoc_insertion_point(field_mutable:Entity.decayEntity)
return decayentity_;
}
::DecayEntity* Entity::release_decayentity() {
// @@protoc_insertion_point(field_release:Entity.decayEntity)
::DecayEntity* temp = decayentity_;
decayentity_ = NULL;
return temp;
}
void Entity::set_allocated_decayentity(::DecayEntity* decayentity) {
delete decayentity_;
decayentity_ = decayentity;
if (decayentity) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.decayEntity)
}
// .Spawnable spawnable = 37;
bool Entity::has_spawnable() const {
return this != internal_default_instance() && spawnable_ != NULL;
}
void Entity::clear_spawnable() {
if (GetArenaNoVirtual() == NULL && spawnable_ != NULL) delete spawnable_;
spawnable_ = NULL;
}
const ::Spawnable& Entity::spawnable() const {
// @@protoc_insertion_point(field_get:Entity.spawnable)
return spawnable_ != NULL ? *spawnable_
: *::Spawnable::internal_default_instance();
}
::Spawnable* Entity::mutable_spawnable() {
if (spawnable_ == NULL) {
spawnable_ = new ::Spawnable;
}
// @@protoc_insertion_point(field_mutable:Entity.spawnable)
return spawnable_;
}
::Spawnable* Entity::release_spawnable() {
// @@protoc_insertion_point(field_release:Entity.spawnable)
::Spawnable* temp = spawnable_;
spawnable_ = NULL;
return temp;
}
void Entity::set_allocated_spawnable(::Spawnable* spawnable) {
delete spawnable_;
spawnable_ = spawnable;
if (spawnable) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.spawnable)
}
// .ServerGib servergib = 38;
bool Entity::has_servergib() const {
return this != internal_default_instance() && servergib_ != NULL;
}
void Entity::clear_servergib() {
if (GetArenaNoVirtual() == NULL && servergib_ != NULL) delete servergib_;
servergib_ = NULL;
}
const ::ServerGib& Entity::servergib() const {
// @@protoc_insertion_point(field_get:Entity.servergib)
return servergib_ != NULL ? *servergib_
: *::ServerGib::internal_default_instance();
}
::ServerGib* Entity::mutable_servergib() {
if (servergib_ == NULL) {
servergib_ = new ::ServerGib;
}
// @@protoc_insertion_point(field_mutable:Entity.servergib)
return servergib_;
}
::ServerGib* Entity::release_servergib() {
// @@protoc_insertion_point(field_release:Entity.servergib)
::ServerGib* temp = servergib_;
servergib_ = NULL;
return temp;
}
void Entity::set_allocated_servergib(::ServerGib* servergib) {
delete servergib_;
servergib_ = servergib;
if (servergib) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.servergib)
}
// .VendingMachine vendingMachine = 39;
bool Entity::has_vendingmachine() const {
return this != internal_default_instance() && vendingmachine_ != NULL;
}
void Entity::clear_vendingmachine() {
if (GetArenaNoVirtual() == NULL && vendingmachine_ != NULL) delete vendingmachine_;
vendingmachine_ = NULL;
}
const ::VendingMachine& Entity::vendingmachine() const {
// @@protoc_insertion_point(field_get:Entity.vendingMachine)
return vendingmachine_ != NULL ? *vendingmachine_
: *::VendingMachine::internal_default_instance();
}
::VendingMachine* Entity::mutable_vendingmachine() {
if (vendingmachine_ == NULL) {
vendingmachine_ = new ::VendingMachine;
}
// @@protoc_insertion_point(field_mutable:Entity.vendingMachine)
return vendingmachine_;
}
::VendingMachine* Entity::release_vendingmachine() {
// @@protoc_insertion_point(field_release:Entity.vendingMachine)
::VendingMachine* temp = vendingmachine_;
vendingmachine_ = NULL;
return temp;
}
void Entity::set_allocated_vendingmachine(::VendingMachine* vendingmachine) {
delete vendingmachine_;
vendingmachine_ = vendingmachine;
if (vendingmachine) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Entity.vendingMachine)
}
// bool createdThisFrame = 100;
void Entity::clear_createdthisframe() {
createdthisframe_ = false;
}
bool Entity::createdthisframe() const {
// @@protoc_insertion_point(field_get:Entity.createdThisFrame)
return createdthisframe_;
}
void Entity::set_createdthisframe(bool value) {
createdthisframe_ = value;
// @@protoc_insertion_point(field_set:Entity.createdThisFrame)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BaseNetworkable::kUidFieldNumber;
const int BaseNetworkable::kGroupFieldNumber;
const int BaseNetworkable::kPrefabIDFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BaseNetworkable::BaseNetworkable()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BaseNetworkable)
}
BaseNetworkable::BaseNetworkable(const BaseNetworkable& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&uid_, &from.uid_,
reinterpret_cast<char*>(&prefabid_) -
reinterpret_cast<char*>(&uid_) + sizeof(prefabid_));
// @@protoc_insertion_point(copy_constructor:BaseNetworkable)
}
void BaseNetworkable::SharedCtor() {
::memset(&uid_, 0, reinterpret_cast<char*>(&prefabid_) -
reinterpret_cast<char*>(&uid_) + sizeof(prefabid_));
_cached_size_ = 0;
}
BaseNetworkable::~BaseNetworkable() {
// @@protoc_insertion_point(destructor:BaseNetworkable)
SharedDtor();
}
void BaseNetworkable::SharedDtor() {
}
void BaseNetworkable::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BaseNetworkable::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[5].descriptor;
}
const BaseNetworkable& BaseNetworkable::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BaseNetworkable* BaseNetworkable::New(::google::protobuf::Arena* arena) const {
BaseNetworkable* n = new BaseNetworkable;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BaseNetworkable::Clear() {
// @@protoc_insertion_point(message_clear_start:BaseNetworkable)
::memset(&uid_, 0, reinterpret_cast<char*>(&prefabid_) -
reinterpret_cast<char*>(&uid_) + sizeof(prefabid_));
}
bool BaseNetworkable::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BaseNetworkable)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 uid = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &uid_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 group = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &group_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 prefabID = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &prefabid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BaseNetworkable)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BaseNetworkable)
return false;
#undef DO_
}
void BaseNetworkable::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BaseNetworkable)
// uint32 uid = 1;
if (this->uid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->uid(), output);
}
// uint32 group = 2;
if (this->group() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->group(), output);
}
// uint32 prefabID = 3;
if (this->prefabid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->prefabid(), output);
}
// @@protoc_insertion_point(serialize_end:BaseNetworkable)
}
::google::protobuf::uint8* BaseNetworkable::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BaseNetworkable)
// uint32 uid = 1;
if (this->uid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->uid(), target);
}
// uint32 group = 2;
if (this->group() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->group(), target);
}
// uint32 prefabID = 3;
if (this->prefabid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->prefabid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:BaseNetworkable)
return target;
}
size_t BaseNetworkable::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BaseNetworkable)
size_t total_size = 0;
// uint32 uid = 1;
if (this->uid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->uid());
}
// uint32 group = 2;
if (this->group() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->group());
}
// uint32 prefabID = 3;
if (this->prefabid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->prefabid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BaseNetworkable::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BaseNetworkable)
GOOGLE_DCHECK_NE(&from, this);
const BaseNetworkable* source =
::google::protobuf::internal::DynamicCastToGenerated<const BaseNetworkable>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BaseNetworkable)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BaseNetworkable)
MergeFrom(*source);
}
}
void BaseNetworkable::MergeFrom(const BaseNetworkable& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BaseNetworkable)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.uid() != 0) {
set_uid(from.uid());
}
if (from.group() != 0) {
set_group(from.group());
}
if (from.prefabid() != 0) {
set_prefabid(from.prefabid());
}
}
void BaseNetworkable::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BaseNetworkable)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BaseNetworkable::CopyFrom(const BaseNetworkable& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BaseNetworkable)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BaseNetworkable::IsInitialized() const {
return true;
}
void BaseNetworkable::Swap(BaseNetworkable* other) {
if (other == this) return;
InternalSwap(other);
}
void BaseNetworkable::InternalSwap(BaseNetworkable* other) {
std::swap(uid_, other->uid_);
std::swap(group_, other->group_);
std::swap(prefabid_, other->prefabid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BaseNetworkable::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[5];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BaseNetworkable
// uint32 uid = 1;
void BaseNetworkable::clear_uid() {
uid_ = 0u;
}
::google::protobuf::uint32 BaseNetworkable::uid() const {
// @@protoc_insertion_point(field_get:BaseNetworkable.uid)
return uid_;
}
void BaseNetworkable::set_uid(::google::protobuf::uint32 value) {
uid_ = value;
// @@protoc_insertion_point(field_set:BaseNetworkable.uid)
}
// uint32 group = 2;
void BaseNetworkable::clear_group() {
group_ = 0u;
}
::google::protobuf::uint32 BaseNetworkable::group() const {
// @@protoc_insertion_point(field_get:BaseNetworkable.group)
return group_;
}
void BaseNetworkable::set_group(::google::protobuf::uint32 value) {
group_ = value;
// @@protoc_insertion_point(field_set:BaseNetworkable.group)
}
// uint32 prefabID = 3;
void BaseNetworkable::clear_prefabid() {
prefabid_ = 0u;
}
::google::protobuf::uint32 BaseNetworkable::prefabid() const {
// @@protoc_insertion_point(field_get:BaseNetworkable.prefabID)
return prefabid_;
}
void BaseNetworkable::set_prefabid(::google::protobuf::uint32 value) {
prefabid_ = value;
// @@protoc_insertion_point(field_set:BaseNetworkable.prefabID)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BaseEntity::kPosFieldNumber;
const int BaseEntity::kRotFieldNumber;
const int BaseEntity::kFlagsFieldNumber;
const int BaseEntity::kSkinidFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BaseEntity::BaseEntity()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BaseEntity)
}
BaseEntity::BaseEntity(const BaseEntity& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_pos()) {
pos_ = new ::Vector3Serialized(*from.pos_);
} else {
pos_ = NULL;
}
if (from.has_rot()) {
rot_ = new ::Vector3Serialized(*from.rot_);
} else {
rot_ = NULL;
}
::memcpy(&skinid_, &from.skinid_,
reinterpret_cast<char*>(&flags_) -
reinterpret_cast<char*>(&skinid_) + sizeof(flags_));
// @@protoc_insertion_point(copy_constructor:BaseEntity)
}
void BaseEntity::SharedCtor() {
::memset(&pos_, 0, reinterpret_cast<char*>(&flags_) -
reinterpret_cast<char*>(&pos_) + sizeof(flags_));
_cached_size_ = 0;
}
BaseEntity::~BaseEntity() {
// @@protoc_insertion_point(destructor:BaseEntity)
SharedDtor();
}
void BaseEntity::SharedDtor() {
if (this != internal_default_instance()) {
delete pos_;
}
if (this != internal_default_instance()) {
delete rot_;
}
}
void BaseEntity::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BaseEntity::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[6].descriptor;
}
const BaseEntity& BaseEntity::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BaseEntity* BaseEntity::New(::google::protobuf::Arena* arena) const {
BaseEntity* n = new BaseEntity;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BaseEntity::Clear() {
// @@protoc_insertion_point(message_clear_start:BaseEntity)
if (GetArenaNoVirtual() == NULL && pos_ != NULL) {
delete pos_;
}
pos_ = NULL;
if (GetArenaNoVirtual() == NULL && rot_ != NULL) {
delete rot_;
}
rot_ = NULL;
::memset(&skinid_, 0, reinterpret_cast<char*>(&flags_) -
reinterpret_cast<char*>(&skinid_) + sizeof(flags_));
}
bool BaseEntity::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BaseEntity)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .Vector3Serialized pos = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_pos()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized rot = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_rot()));
} else {
goto handle_unusual;
}
break;
}
// int32 flags = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &flags_)));
} else {
goto handle_unusual;
}
break;
}
// uint64 skinid = 5;
case 5: {
if (tag == 40u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &skinid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BaseEntity)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BaseEntity)
return false;
#undef DO_
}
void BaseEntity::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BaseEntity)
// .Vector3Serialized pos = 1;
if (this->has_pos()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->pos_, output);
}
// .Vector3Serialized rot = 2;
if (this->has_rot()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->rot_, output);
}
// int32 flags = 3;
if (this->flags() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->flags(), output);
}
// uint64 skinid = 5;
if (this->skinid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->skinid(), output);
}
// @@protoc_insertion_point(serialize_end:BaseEntity)
}
::google::protobuf::uint8* BaseEntity::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BaseEntity)
// .Vector3Serialized pos = 1;
if (this->has_pos()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->pos_, false, target);
}
// .Vector3Serialized rot = 2;
if (this->has_rot()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->rot_, false, target);
}
// int32 flags = 3;
if (this->flags() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->flags(), target);
}
// uint64 skinid = 5;
if (this->skinid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->skinid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:BaseEntity)
return target;
}
size_t BaseEntity::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BaseEntity)
size_t total_size = 0;
// .Vector3Serialized pos = 1;
if (this->has_pos()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->pos_);
}
// .Vector3Serialized rot = 2;
if (this->has_rot()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->rot_);
}
// uint64 skinid = 5;
if (this->skinid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->skinid());
}
// int32 flags = 3;
if (this->flags() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->flags());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BaseEntity::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BaseEntity)
GOOGLE_DCHECK_NE(&from, this);
const BaseEntity* source =
::google::protobuf::internal::DynamicCastToGenerated<const BaseEntity>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BaseEntity)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BaseEntity)
MergeFrom(*source);
}
}
void BaseEntity::MergeFrom(const BaseEntity& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BaseEntity)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_pos()) {
mutable_pos()->::Vector3Serialized::MergeFrom(from.pos());
}
if (from.has_rot()) {
mutable_rot()->::Vector3Serialized::MergeFrom(from.rot());
}
if (from.skinid() != 0) {
set_skinid(from.skinid());
}
if (from.flags() != 0) {
set_flags(from.flags());
}
}
void BaseEntity::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BaseEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BaseEntity::CopyFrom(const BaseEntity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BaseEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BaseEntity::IsInitialized() const {
return true;
}
void BaseEntity::Swap(BaseEntity* other) {
if (other == this) return;
InternalSwap(other);
}
void BaseEntity::InternalSwap(BaseEntity* other) {
std::swap(pos_, other->pos_);
std::swap(rot_, other->rot_);
std::swap(skinid_, other->skinid_);
std::swap(flags_, other->flags_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BaseEntity::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[6];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BaseEntity
// .Vector3Serialized pos = 1;
bool BaseEntity::has_pos() const {
return this != internal_default_instance() && pos_ != NULL;
}
void BaseEntity::clear_pos() {
if (GetArenaNoVirtual() == NULL && pos_ != NULL) delete pos_;
pos_ = NULL;
}
const ::Vector3Serialized& BaseEntity::pos() const {
// @@protoc_insertion_point(field_get:BaseEntity.pos)
return pos_ != NULL ? *pos_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* BaseEntity::mutable_pos() {
if (pos_ == NULL) {
pos_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:BaseEntity.pos)
return pos_;
}
::Vector3Serialized* BaseEntity::release_pos() {
// @@protoc_insertion_point(field_release:BaseEntity.pos)
::Vector3Serialized* temp = pos_;
pos_ = NULL;
return temp;
}
void BaseEntity::set_allocated_pos(::Vector3Serialized* pos) {
delete pos_;
pos_ = pos;
if (pos) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BaseEntity.pos)
}
// .Vector3Serialized rot = 2;
bool BaseEntity::has_rot() const {
return this != internal_default_instance() && rot_ != NULL;
}
void BaseEntity::clear_rot() {
if (GetArenaNoVirtual() == NULL && rot_ != NULL) delete rot_;
rot_ = NULL;
}
const ::Vector3Serialized& BaseEntity::rot() const {
// @@protoc_insertion_point(field_get:BaseEntity.rot)
return rot_ != NULL ? *rot_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* BaseEntity::mutable_rot() {
if (rot_ == NULL) {
rot_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:BaseEntity.rot)
return rot_;
}
::Vector3Serialized* BaseEntity::release_rot() {
// @@protoc_insertion_point(field_release:BaseEntity.rot)
::Vector3Serialized* temp = rot_;
rot_ = NULL;
return temp;
}
void BaseEntity::set_allocated_rot(::Vector3Serialized* rot) {
delete rot_;
rot_ = rot;
if (rot) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BaseEntity.rot)
}
// int32 flags = 3;
void BaseEntity::clear_flags() {
flags_ = 0;
}
::google::protobuf::int32 BaseEntity::flags() const {
// @@protoc_insertion_point(field_get:BaseEntity.flags)
return flags_;
}
void BaseEntity::set_flags(::google::protobuf::int32 value) {
flags_ = value;
// @@protoc_insertion_point(field_set:BaseEntity.flags)
}
// uint64 skinid = 5;
void BaseEntity::clear_skinid() {
skinid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 BaseEntity::skinid() const {
// @@protoc_insertion_point(field_get:BaseEntity.skinid)
return skinid_;
}
void BaseEntity::set_skinid(::google::protobuf::uint64 value) {
skinid_ = value;
// @@protoc_insertion_point(field_set:BaseEntity.skinid)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BaseCombat::kStateFieldNumber;
const int BaseCombat::kHealthFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BaseCombat::BaseCombat()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BaseCombat)
}
BaseCombat::BaseCombat(const BaseCombat& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&state_, &from.state_,
reinterpret_cast<char*>(&health_) -
reinterpret_cast<char*>(&state_) + sizeof(health_));
// @@protoc_insertion_point(copy_constructor:BaseCombat)
}
void BaseCombat::SharedCtor() {
::memset(&state_, 0, reinterpret_cast<char*>(&health_) -
reinterpret_cast<char*>(&state_) + sizeof(health_));
_cached_size_ = 0;
}
BaseCombat::~BaseCombat() {
// @@protoc_insertion_point(destructor:BaseCombat)
SharedDtor();
}
void BaseCombat::SharedDtor() {
}
void BaseCombat::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BaseCombat::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[7].descriptor;
}
const BaseCombat& BaseCombat::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BaseCombat* BaseCombat::New(::google::protobuf::Arena* arena) const {
BaseCombat* n = new BaseCombat;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BaseCombat::Clear() {
// @@protoc_insertion_point(message_clear_start:BaseCombat)
::memset(&state_, 0, reinterpret_cast<char*>(&health_) -
reinterpret_cast<char*>(&state_) + sizeof(health_));
}
bool BaseCombat::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BaseCombat)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 state = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &state_)));
} else {
goto handle_unusual;
}
break;
}
// float health = 2;
case 2: {
if (tag == 21u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &health_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BaseCombat)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BaseCombat)
return false;
#undef DO_
}
void BaseCombat::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BaseCombat)
// int32 state = 1;
if (this->state() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->state(), output);
}
// float health = 2;
if (this->health() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->health(), output);
}
// @@protoc_insertion_point(serialize_end:BaseCombat)
}
::google::protobuf::uint8* BaseCombat::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BaseCombat)
// int32 state = 1;
if (this->state() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->state(), target);
}
// float health = 2;
if (this->health() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->health(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:BaseCombat)
return target;
}
size_t BaseCombat::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BaseCombat)
size_t total_size = 0;
// int32 state = 1;
if (this->state() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->state());
}
// float health = 2;
if (this->health() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BaseCombat::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BaseCombat)
GOOGLE_DCHECK_NE(&from, this);
const BaseCombat* source =
::google::protobuf::internal::DynamicCastToGenerated<const BaseCombat>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BaseCombat)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BaseCombat)
MergeFrom(*source);
}
}
void BaseCombat::MergeFrom(const BaseCombat& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BaseCombat)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.state() != 0) {
set_state(from.state());
}
if (from.health() != 0) {
set_health(from.health());
}
}
void BaseCombat::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BaseCombat)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BaseCombat::CopyFrom(const BaseCombat& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BaseCombat)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BaseCombat::IsInitialized() const {
return true;
}
void BaseCombat::Swap(BaseCombat* other) {
if (other == this) return;
InternalSwap(other);
}
void BaseCombat::InternalSwap(BaseCombat* other) {
std::swap(state_, other->state_);
std::swap(health_, other->health_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BaseCombat::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[7];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BaseCombat
// int32 state = 1;
void BaseCombat::clear_state() {
state_ = 0;
}
::google::protobuf::int32 BaseCombat::state() const {
// @@protoc_insertion_point(field_get:BaseCombat.state)
return state_;
}
void BaseCombat::set_state(::google::protobuf::int32 value) {
state_ = value;
// @@protoc_insertion_point(field_set:BaseCombat.state)
}
// float health = 2;
void BaseCombat::clear_health() {
health_ = 0;
}
float BaseCombat::health() const {
// @@protoc_insertion_point(field_get:BaseCombat.health)
return health_;
}
void BaseCombat::set_health(float value) {
health_ = value;
// @@protoc_insertion_point(field_set:BaseCombat.health)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BaseNPC::kStateFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BaseNPC::BaseNPC()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BaseNPC)
}
BaseNPC::BaseNPC(const BaseNPC& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
state_ = from.state_;
// @@protoc_insertion_point(copy_constructor:BaseNPC)
}
void BaseNPC::SharedCtor() {
state_ = 0u;
_cached_size_ = 0;
}
BaseNPC::~BaseNPC() {
// @@protoc_insertion_point(destructor:BaseNPC)
SharedDtor();
}
void BaseNPC::SharedDtor() {
}
void BaseNPC::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BaseNPC::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[8].descriptor;
}
const BaseNPC& BaseNPC::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BaseNPC* BaseNPC::New(::google::protobuf::Arena* arena) const {
BaseNPC* n = new BaseNPC;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BaseNPC::Clear() {
// @@protoc_insertion_point(message_clear_start:BaseNPC)
state_ = 0u;
}
bool BaseNPC::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BaseNPC)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 state = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &state_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BaseNPC)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BaseNPC)
return false;
#undef DO_
}
void BaseNPC::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BaseNPC)
// uint32 state = 1;
if (this->state() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->state(), output);
}
// @@protoc_insertion_point(serialize_end:BaseNPC)
}
::google::protobuf::uint8* BaseNPC::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BaseNPC)
// uint32 state = 1;
if (this->state() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->state(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:BaseNPC)
return target;
}
size_t BaseNPC::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BaseNPC)
size_t total_size = 0;
// uint32 state = 1;
if (this->state() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->state());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BaseNPC::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BaseNPC)
GOOGLE_DCHECK_NE(&from, this);
const BaseNPC* source =
::google::protobuf::internal::DynamicCastToGenerated<const BaseNPC>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BaseNPC)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BaseNPC)
MergeFrom(*source);
}
}
void BaseNPC::MergeFrom(const BaseNPC& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BaseNPC)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.state() != 0) {
set_state(from.state());
}
}
void BaseNPC::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BaseNPC)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BaseNPC::CopyFrom(const BaseNPC& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BaseNPC)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BaseNPC::IsInitialized() const {
return true;
}
void BaseNPC::Swap(BaseNPC* other) {
if (other == this) return;
InternalSwap(other);
}
void BaseNPC::InternalSwap(BaseNPC* other) {
std::swap(state_, other->state_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BaseNPC::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[8];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BaseNPC
// uint32 state = 1;
void BaseNPC::clear_state() {
state_ = 0u;
}
::google::protobuf::uint32 BaseNPC::state() const {
// @@protoc_insertion_point(field_get:BaseNPC.state)
return state_;
}
void BaseNPC::set_state(::google::protobuf::uint32 value) {
state_ = value;
// @@protoc_insertion_point(field_set:BaseNPC.state)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int EntitySlots::kSlotLockFieldNumber;
const int EntitySlots::kSlotFireModFieldNumber;
const int EntitySlots::kSlotUpperModificationFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
EntitySlots::EntitySlots()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:EntitySlots)
}
EntitySlots::EntitySlots(const EntitySlots& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&slotlock_, &from.slotlock_,
reinterpret_cast<char*>(&slotuppermodification_) -
reinterpret_cast<char*>(&slotlock_) + sizeof(slotuppermodification_));
// @@protoc_insertion_point(copy_constructor:EntitySlots)
}
void EntitySlots::SharedCtor() {
::memset(&slotlock_, 0, reinterpret_cast<char*>(&slotuppermodification_) -
reinterpret_cast<char*>(&slotlock_) + sizeof(slotuppermodification_));
_cached_size_ = 0;
}
EntitySlots::~EntitySlots() {
// @@protoc_insertion_point(destructor:EntitySlots)
SharedDtor();
}
void EntitySlots::SharedDtor() {
}
void EntitySlots::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* EntitySlots::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[9].descriptor;
}
const EntitySlots& EntitySlots::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
EntitySlots* EntitySlots::New(::google::protobuf::Arena* arena) const {
EntitySlots* n = new EntitySlots;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void EntitySlots::Clear() {
// @@protoc_insertion_point(message_clear_start:EntitySlots)
::memset(&slotlock_, 0, reinterpret_cast<char*>(&slotuppermodification_) -
reinterpret_cast<char*>(&slotlock_) + sizeof(slotuppermodification_));
}
bool EntitySlots::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:EntitySlots)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 slotLock = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &slotlock_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 slotFireMod = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &slotfiremod_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 slotUpperModification = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &slotuppermodification_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:EntitySlots)
return true;
failure:
// @@protoc_insertion_point(parse_failure:EntitySlots)
return false;
#undef DO_
}
void EntitySlots::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:EntitySlots)
// uint32 slotLock = 1;
if (this->slotlock() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->slotlock(), output);
}
// uint32 slotFireMod = 2;
if (this->slotfiremod() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->slotfiremod(), output);
}
// uint32 slotUpperModification = 3;
if (this->slotuppermodification() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->slotuppermodification(), output);
}
// @@protoc_insertion_point(serialize_end:EntitySlots)
}
::google::protobuf::uint8* EntitySlots::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:EntitySlots)
// uint32 slotLock = 1;
if (this->slotlock() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->slotlock(), target);
}
// uint32 slotFireMod = 2;
if (this->slotfiremod() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->slotfiremod(), target);
}
// uint32 slotUpperModification = 3;
if (this->slotuppermodification() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->slotuppermodification(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:EntitySlots)
return target;
}
size_t EntitySlots::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:EntitySlots)
size_t total_size = 0;
// uint32 slotLock = 1;
if (this->slotlock() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->slotlock());
}
// uint32 slotFireMod = 2;
if (this->slotfiremod() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->slotfiremod());
}
// uint32 slotUpperModification = 3;
if (this->slotuppermodification() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->slotuppermodification());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void EntitySlots::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:EntitySlots)
GOOGLE_DCHECK_NE(&from, this);
const EntitySlots* source =
::google::protobuf::internal::DynamicCastToGenerated<const EntitySlots>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:EntitySlots)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:EntitySlots)
MergeFrom(*source);
}
}
void EntitySlots::MergeFrom(const EntitySlots& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:EntitySlots)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.slotlock() != 0) {
set_slotlock(from.slotlock());
}
if (from.slotfiremod() != 0) {
set_slotfiremod(from.slotfiremod());
}
if (from.slotuppermodification() != 0) {
set_slotuppermodification(from.slotuppermodification());
}
}
void EntitySlots::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:EntitySlots)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void EntitySlots::CopyFrom(const EntitySlots& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:EntitySlots)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool EntitySlots::IsInitialized() const {
return true;
}
void EntitySlots::Swap(EntitySlots* other) {
if (other == this) return;
InternalSwap(other);
}
void EntitySlots::InternalSwap(EntitySlots* other) {
std::swap(slotlock_, other->slotlock_);
std::swap(slotfiremod_, other->slotfiremod_);
std::swap(slotuppermodification_, other->slotuppermodification_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata EntitySlots::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[9];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// EntitySlots
// uint32 slotLock = 1;
void EntitySlots::clear_slotlock() {
slotlock_ = 0u;
}
::google::protobuf::uint32 EntitySlots::slotlock() const {
// @@protoc_insertion_point(field_get:EntitySlots.slotLock)
return slotlock_;
}
void EntitySlots::set_slotlock(::google::protobuf::uint32 value) {
slotlock_ = value;
// @@protoc_insertion_point(field_set:EntitySlots.slotLock)
}
// uint32 slotFireMod = 2;
void EntitySlots::clear_slotfiremod() {
slotfiremod_ = 0u;
}
::google::protobuf::uint32 EntitySlots::slotfiremod() const {
// @@protoc_insertion_point(field_get:EntitySlots.slotFireMod)
return slotfiremod_;
}
void EntitySlots::set_slotfiremod(::google::protobuf::uint32 value) {
slotfiremod_ = value;
// @@protoc_insertion_point(field_set:EntitySlots.slotFireMod)
}
// uint32 slotUpperModification = 3;
void EntitySlots::clear_slotuppermodification() {
slotuppermodification_ = 0u;
}
::google::protobuf::uint32 EntitySlots::slotuppermodification() const {
// @@protoc_insertion_point(field_get:EntitySlots.slotUpperModification)
return slotuppermodification_;
}
void EntitySlots::set_slotuppermodification(::google::protobuf::uint32 value) {
slotuppermodification_ = value;
// @@protoc_insertion_point(field_set:EntitySlots.slotUpperModification)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BaseResource::kStageFieldNumber;
const int BaseResource::kHealthFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BaseResource::BaseResource()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BaseResource)
}
BaseResource::BaseResource(const BaseResource& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&stage_, &from.stage_,
reinterpret_cast<char*>(&health_) -
reinterpret_cast<char*>(&stage_) + sizeof(health_));
// @@protoc_insertion_point(copy_constructor:BaseResource)
}
void BaseResource::SharedCtor() {
::memset(&stage_, 0, reinterpret_cast<char*>(&health_) -
reinterpret_cast<char*>(&stage_) + sizeof(health_));
_cached_size_ = 0;
}
BaseResource::~BaseResource() {
// @@protoc_insertion_point(destructor:BaseResource)
SharedDtor();
}
void BaseResource::SharedDtor() {
}
void BaseResource::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BaseResource::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[10].descriptor;
}
const BaseResource& BaseResource::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BaseResource* BaseResource::New(::google::protobuf::Arena* arena) const {
BaseResource* n = new BaseResource;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BaseResource::Clear() {
// @@protoc_insertion_point(message_clear_start:BaseResource)
::memset(&stage_, 0, reinterpret_cast<char*>(&health_) -
reinterpret_cast<char*>(&stage_) + sizeof(health_));
}
bool BaseResource::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BaseResource)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 stage = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &stage_)));
} else {
goto handle_unusual;
}
break;
}
// float health = 2;
case 2: {
if (tag == 21u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &health_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BaseResource)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BaseResource)
return false;
#undef DO_
}
void BaseResource::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BaseResource)
// int32 stage = 1;
if (this->stage() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->stage(), output);
}
// float health = 2;
if (this->health() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->health(), output);
}
// @@protoc_insertion_point(serialize_end:BaseResource)
}
::google::protobuf::uint8* BaseResource::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BaseResource)
// int32 stage = 1;
if (this->stage() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->stage(), target);
}
// float health = 2;
if (this->health() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->health(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:BaseResource)
return target;
}
size_t BaseResource::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BaseResource)
size_t total_size = 0;
// int32 stage = 1;
if (this->stage() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->stage());
}
// float health = 2;
if (this->health() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BaseResource::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BaseResource)
GOOGLE_DCHECK_NE(&from, this);
const BaseResource* source =
::google::protobuf::internal::DynamicCastToGenerated<const BaseResource>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BaseResource)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BaseResource)
MergeFrom(*source);
}
}
void BaseResource::MergeFrom(const BaseResource& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BaseResource)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.stage() != 0) {
set_stage(from.stage());
}
if (from.health() != 0) {
set_health(from.health());
}
}
void BaseResource::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BaseResource)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BaseResource::CopyFrom(const BaseResource& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BaseResource)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BaseResource::IsInitialized() const {
return true;
}
void BaseResource::Swap(BaseResource* other) {
if (other == this) return;
InternalSwap(other);
}
void BaseResource::InternalSwap(BaseResource* other) {
std::swap(stage_, other->stage_);
std::swap(health_, other->health_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BaseResource::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[10];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BaseResource
// int32 stage = 1;
void BaseResource::clear_stage() {
stage_ = 0;
}
::google::protobuf::int32 BaseResource::stage() const {
// @@protoc_insertion_point(field_get:BaseResource.stage)
return stage_;
}
void BaseResource::set_stage(::google::protobuf::int32 value) {
stage_ = value;
// @@protoc_insertion_point(field_set:BaseResource.stage)
}
// float health = 2;
void BaseResource::clear_health() {
health_ = 0;
}
float BaseResource::health() const {
// @@protoc_insertion_point(field_get:BaseResource.health)
return health_;
}
void BaseResource::set_health(float value) {
health_ = value;
// @@protoc_insertion_point(field_set:BaseResource.health)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Environment::kDateTimeFieldNumber;
const int Environment::kCloudsFieldNumber;
const int Environment::kFogFieldNumber;
const int Environment::kWindFieldNumber;
const int Environment::kRainFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Environment::Environment()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Environment)
}
Environment::Environment(const Environment& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&datetime_, &from.datetime_,
reinterpret_cast<char*>(&rain_) -
reinterpret_cast<char*>(&datetime_) + sizeof(rain_));
// @@protoc_insertion_point(copy_constructor:Environment)
}
void Environment::SharedCtor() {
::memset(&datetime_, 0, reinterpret_cast<char*>(&rain_) -
reinterpret_cast<char*>(&datetime_) + sizeof(rain_));
_cached_size_ = 0;
}
Environment::~Environment() {
// @@protoc_insertion_point(destructor:Environment)
SharedDtor();
}
void Environment::SharedDtor() {
}
void Environment::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Environment::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[11].descriptor;
}
const Environment& Environment::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Environment* Environment::New(::google::protobuf::Arena* arena) const {
Environment* n = new Environment;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Environment::Clear() {
// @@protoc_insertion_point(message_clear_start:Environment)
::memset(&datetime_, 0, reinterpret_cast<char*>(&rain_) -
reinterpret_cast<char*>(&datetime_) + sizeof(rain_));
}
bool Environment::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Environment)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int64 dateTime = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &datetime_)));
} else {
goto handle_unusual;
}
break;
}
// float clouds = 2;
case 2: {
if (tag == 21u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &clouds_)));
} else {
goto handle_unusual;
}
break;
}
// float fog = 3;
case 3: {
if (tag == 29u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &fog_)));
} else {
goto handle_unusual;
}
break;
}
// float wind = 4;
case 4: {
if (tag == 37u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &wind_)));
} else {
goto handle_unusual;
}
break;
}
// float rain = 5;
case 5: {
if (tag == 45u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &rain_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Environment)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Environment)
return false;
#undef DO_
}
void Environment::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Environment)
// int64 dateTime = 1;
if (this->datetime() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->datetime(), output);
}
// float clouds = 2;
if (this->clouds() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->clouds(), output);
}
// float fog = 3;
if (this->fog() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->fog(), output);
}
// float wind = 4;
if (this->wind() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->wind(), output);
}
// float rain = 5;
if (this->rain() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->rain(), output);
}
// @@protoc_insertion_point(serialize_end:Environment)
}
::google::protobuf::uint8* Environment::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Environment)
// int64 dateTime = 1;
if (this->datetime() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->datetime(), target);
}
// float clouds = 2;
if (this->clouds() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->clouds(), target);
}
// float fog = 3;
if (this->fog() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->fog(), target);
}
// float wind = 4;
if (this->wind() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->wind(), target);
}
// float rain = 5;
if (this->rain() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->rain(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Environment)
return target;
}
size_t Environment::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Environment)
size_t total_size = 0;
// int64 dateTime = 1;
if (this->datetime() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->datetime());
}
// float clouds = 2;
if (this->clouds() != 0) {
total_size += 1 + 4;
}
// float fog = 3;
if (this->fog() != 0) {
total_size += 1 + 4;
}
// float wind = 4;
if (this->wind() != 0) {
total_size += 1 + 4;
}
// float rain = 5;
if (this->rain() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Environment::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Environment)
GOOGLE_DCHECK_NE(&from, this);
const Environment* source =
::google::protobuf::internal::DynamicCastToGenerated<const Environment>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Environment)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Environment)
MergeFrom(*source);
}
}
void Environment::MergeFrom(const Environment& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Environment)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.datetime() != 0) {
set_datetime(from.datetime());
}
if (from.clouds() != 0) {
set_clouds(from.clouds());
}
if (from.fog() != 0) {
set_fog(from.fog());
}
if (from.wind() != 0) {
set_wind(from.wind());
}
if (from.rain() != 0) {
set_rain(from.rain());
}
}
void Environment::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Environment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Environment::CopyFrom(const Environment& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Environment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Environment::IsInitialized() const {
return true;
}
void Environment::Swap(Environment* other) {
if (other == this) return;
InternalSwap(other);
}
void Environment::InternalSwap(Environment* other) {
std::swap(datetime_, other->datetime_);
std::swap(clouds_, other->clouds_);
std::swap(fog_, other->fog_);
std::swap(wind_, other->wind_);
std::swap(rain_, other->rain_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Environment::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[11];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Environment
// int64 dateTime = 1;
void Environment::clear_datetime() {
datetime_ = GOOGLE_LONGLONG(0);
}
::google::protobuf::int64 Environment::datetime() const {
// @@protoc_insertion_point(field_get:Environment.dateTime)
return datetime_;
}
void Environment::set_datetime(::google::protobuf::int64 value) {
datetime_ = value;
// @@protoc_insertion_point(field_set:Environment.dateTime)
}
// float clouds = 2;
void Environment::clear_clouds() {
clouds_ = 0;
}
float Environment::clouds() const {
// @@protoc_insertion_point(field_get:Environment.clouds)
return clouds_;
}
void Environment::set_clouds(float value) {
clouds_ = value;
// @@protoc_insertion_point(field_set:Environment.clouds)
}
// float fog = 3;
void Environment::clear_fog() {
fog_ = 0;
}
float Environment::fog() const {
// @@protoc_insertion_point(field_get:Environment.fog)
return fog_;
}
void Environment::set_fog(float value) {
fog_ = value;
// @@protoc_insertion_point(field_set:Environment.fog)
}
// float wind = 4;
void Environment::clear_wind() {
wind_ = 0;
}
float Environment::wind() const {
// @@protoc_insertion_point(field_get:Environment.wind)
return wind_;
}
void Environment::set_wind(float value) {
wind_ = value;
// @@protoc_insertion_point(field_set:Environment.wind)
}
// float rain = 5;
void Environment::clear_rain() {
rain_ = 0;
}
float Environment::rain() const {
// @@protoc_insertion_point(field_get:Environment.rain)
return rain_;
}
void Environment::set_rain(float value) {
rain_ = value;
// @@protoc_insertion_point(field_set:Environment.rain)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Corpse::kParentIDFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Corpse::Corpse()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Corpse)
}
Corpse::Corpse(const Corpse& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
parentid_ = from.parentid_;
// @@protoc_insertion_point(copy_constructor:Corpse)
}
void Corpse::SharedCtor() {
parentid_ = 0u;
_cached_size_ = 0;
}
Corpse::~Corpse() {
// @@protoc_insertion_point(destructor:Corpse)
SharedDtor();
}
void Corpse::SharedDtor() {
}
void Corpse::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Corpse::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[12].descriptor;
}
const Corpse& Corpse::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Corpse* Corpse::New(::google::protobuf::Arena* arena) const {
Corpse* n = new Corpse;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Corpse::Clear() {
// @@protoc_insertion_point(message_clear_start:Corpse)
parentid_ = 0u;
}
bool Corpse::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Corpse)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 parentID = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &parentid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Corpse)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Corpse)
return false;
#undef DO_
}
void Corpse::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Corpse)
// uint32 parentID = 1;
if (this->parentid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->parentid(), output);
}
// @@protoc_insertion_point(serialize_end:Corpse)
}
::google::protobuf::uint8* Corpse::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Corpse)
// uint32 parentID = 1;
if (this->parentid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->parentid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Corpse)
return target;
}
size_t Corpse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Corpse)
size_t total_size = 0;
// uint32 parentID = 1;
if (this->parentid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->parentid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Corpse::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Corpse)
GOOGLE_DCHECK_NE(&from, this);
const Corpse* source =
::google::protobuf::internal::DynamicCastToGenerated<const Corpse>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Corpse)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Corpse)
MergeFrom(*source);
}
}
void Corpse::MergeFrom(const Corpse& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Corpse)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.parentid() != 0) {
set_parentid(from.parentid());
}
}
void Corpse::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Corpse)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Corpse::CopyFrom(const Corpse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Corpse)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Corpse::IsInitialized() const {
return true;
}
void Corpse::Swap(Corpse* other) {
if (other == this) return;
InternalSwap(other);
}
void Corpse::InternalSwap(Corpse* other) {
std::swap(parentid_, other->parentid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Corpse::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[12];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Corpse
// uint32 parentID = 1;
void Corpse::clear_parentid() {
parentid_ = 0u;
}
::google::protobuf::uint32 Corpse::parentid() const {
// @@protoc_insertion_point(field_get:Corpse.parentID)
return parentid_;
}
void Corpse::set_parentid(::google::protobuf::uint32 value) {
parentid_ = value;
// @@protoc_insertion_point(field_set:Corpse.parentID)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int LootableCorpse::kPrivateDataFieldNumber;
const int LootableCorpse::kPlayerIDFieldNumber;
const int LootableCorpse::kPlayerNameFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
LootableCorpse::LootableCorpse()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:LootableCorpse)
}
LootableCorpse::LootableCorpse(const LootableCorpse& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
playername_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.playername().size() > 0) {
playername_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.playername_);
}
if (from.has_privatedata()) {
privatedata_ = new ::LootableCorpsePrivate(*from.privatedata_);
} else {
privatedata_ = NULL;
}
playerid_ = from.playerid_;
// @@protoc_insertion_point(copy_constructor:LootableCorpse)
}
void LootableCorpse::SharedCtor() {
playername_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&privatedata_, 0, reinterpret_cast<char*>(&playerid_) -
reinterpret_cast<char*>(&privatedata_) + sizeof(playerid_));
_cached_size_ = 0;
}
LootableCorpse::~LootableCorpse() {
// @@protoc_insertion_point(destructor:LootableCorpse)
SharedDtor();
}
void LootableCorpse::SharedDtor() {
playername_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) {
delete privatedata_;
}
}
void LootableCorpse::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* LootableCorpse::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[13].descriptor;
}
const LootableCorpse& LootableCorpse::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
LootableCorpse* LootableCorpse::New(::google::protobuf::Arena* arena) const {
LootableCorpse* n = new LootableCorpse;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void LootableCorpse::Clear() {
// @@protoc_insertion_point(message_clear_start:LootableCorpse)
playername_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == NULL && privatedata_ != NULL) {
delete privatedata_;
}
privatedata_ = NULL;
playerid_ = GOOGLE_ULONGLONG(0);
}
bool LootableCorpse::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:LootableCorpse)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .LootableCorpsePrivate privateData = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_privatedata()));
} else {
goto handle_unusual;
}
break;
}
// uint64 playerID = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &playerid_)));
} else {
goto handle_unusual;
}
break;
}
// string playerName = 3;
case 3: {
if (tag == 26u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_playername()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->playername().data(), this->playername().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"LootableCorpse.playerName"));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:LootableCorpse)
return true;
failure:
// @@protoc_insertion_point(parse_failure:LootableCorpse)
return false;
#undef DO_
}
void LootableCorpse::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:LootableCorpse)
// .LootableCorpsePrivate privateData = 1;
if (this->has_privatedata()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->privatedata_, output);
}
// uint64 playerID = 2;
if (this->playerid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->playerid(), output);
}
// string playerName = 3;
if (this->playername().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->playername().data(), this->playername().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"LootableCorpse.playerName");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->playername(), output);
}
// @@protoc_insertion_point(serialize_end:LootableCorpse)
}
::google::protobuf::uint8* LootableCorpse::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:LootableCorpse)
// .LootableCorpsePrivate privateData = 1;
if (this->has_privatedata()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->privatedata_, false, target);
}
// uint64 playerID = 2;
if (this->playerid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->playerid(), target);
}
// string playerName = 3;
if (this->playername().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->playername().data(), this->playername().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"LootableCorpse.playerName");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->playername(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:LootableCorpse)
return target;
}
size_t LootableCorpse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LootableCorpse)
size_t total_size = 0;
// string playerName = 3;
if (this->playername().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->playername());
}
// .LootableCorpsePrivate privateData = 1;
if (this->has_privatedata()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->privatedata_);
}
// uint64 playerID = 2;
if (this->playerid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->playerid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void LootableCorpse::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:LootableCorpse)
GOOGLE_DCHECK_NE(&from, this);
const LootableCorpse* source =
::google::protobuf::internal::DynamicCastToGenerated<const LootableCorpse>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LootableCorpse)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:LootableCorpse)
MergeFrom(*source);
}
}
void LootableCorpse::MergeFrom(const LootableCorpse& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:LootableCorpse)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.playername().size() > 0) {
playername_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.playername_);
}
if (from.has_privatedata()) {
mutable_privatedata()->::LootableCorpsePrivate::MergeFrom(from.privatedata());
}
if (from.playerid() != 0) {
set_playerid(from.playerid());
}
}
void LootableCorpse::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:LootableCorpse)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void LootableCorpse::CopyFrom(const LootableCorpse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LootableCorpse)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LootableCorpse::IsInitialized() const {
return true;
}
void LootableCorpse::Swap(LootableCorpse* other) {
if (other == this) return;
InternalSwap(other);
}
void LootableCorpse::InternalSwap(LootableCorpse* other) {
playername_.Swap(&other->playername_);
std::swap(privatedata_, other->privatedata_);
std::swap(playerid_, other->playerid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata LootableCorpse::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[13];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// LootableCorpse
// .LootableCorpsePrivate privateData = 1;
bool LootableCorpse::has_privatedata() const {
return this != internal_default_instance() && privatedata_ != NULL;
}
void LootableCorpse::clear_privatedata() {
if (GetArenaNoVirtual() == NULL && privatedata_ != NULL) delete privatedata_;
privatedata_ = NULL;
}
const ::LootableCorpsePrivate& LootableCorpse::privatedata() const {
// @@protoc_insertion_point(field_get:LootableCorpse.privateData)
return privatedata_ != NULL ? *privatedata_
: *::LootableCorpsePrivate::internal_default_instance();
}
::LootableCorpsePrivate* LootableCorpse::mutable_privatedata() {
if (privatedata_ == NULL) {
privatedata_ = new ::LootableCorpsePrivate;
}
// @@protoc_insertion_point(field_mutable:LootableCorpse.privateData)
return privatedata_;
}
::LootableCorpsePrivate* LootableCorpse::release_privatedata() {
// @@protoc_insertion_point(field_release:LootableCorpse.privateData)
::LootableCorpsePrivate* temp = privatedata_;
privatedata_ = NULL;
return temp;
}
void LootableCorpse::set_allocated_privatedata(::LootableCorpsePrivate* privatedata) {
delete privatedata_;
privatedata_ = privatedata;
if (privatedata) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:LootableCorpse.privateData)
}
// uint64 playerID = 2;
void LootableCorpse::clear_playerid() {
playerid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 LootableCorpse::playerid() const {
// @@protoc_insertion_point(field_get:LootableCorpse.playerID)
return playerid_;
}
void LootableCorpse::set_playerid(::google::protobuf::uint64 value) {
playerid_ = value;
// @@protoc_insertion_point(field_set:LootableCorpse.playerID)
}
// string playerName = 3;
void LootableCorpse::clear_playername() {
playername_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& LootableCorpse::playername() const {
// @@protoc_insertion_point(field_get:LootableCorpse.playerName)
return playername_.GetNoArena();
}
void LootableCorpse::set_playername(const ::std::string& value) {
playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:LootableCorpse.playerName)
}
#if LANG_CXX11
void LootableCorpse::set_playername(::std::string&& value) {
playername_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:LootableCorpse.playerName)
}
#endif
void LootableCorpse::set_playername(const char* value) {
playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:LootableCorpse.playerName)
}
void LootableCorpse::set_playername(const char* value, size_t size) {
playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:LootableCorpse.playerName)
}
::std::string* LootableCorpse::mutable_playername() {
// @@protoc_insertion_point(field_mutable:LootableCorpse.playerName)
return playername_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* LootableCorpse::release_playername() {
// @@protoc_insertion_point(field_release:LootableCorpse.playerName)
return playername_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void LootableCorpse::set_allocated_playername(::std::string* playername) {
if (playername != NULL) {
} else {
}
playername_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), playername);
// @@protoc_insertion_point(field_set_allocated:LootableCorpse.playerName)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ParentInfo::kUidFieldNumber;
const int ParentInfo::kBoneFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ParentInfo::ParentInfo()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:ParentInfo)
}
ParentInfo::ParentInfo(const ParentInfo& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&uid_, &from.uid_,
reinterpret_cast<char*>(&bone_) -
reinterpret_cast<char*>(&uid_) + sizeof(bone_));
// @@protoc_insertion_point(copy_constructor:ParentInfo)
}
void ParentInfo::SharedCtor() {
::memset(&uid_, 0, reinterpret_cast<char*>(&bone_) -
reinterpret_cast<char*>(&uid_) + sizeof(bone_));
_cached_size_ = 0;
}
ParentInfo::~ParentInfo() {
// @@protoc_insertion_point(destructor:ParentInfo)
SharedDtor();
}
void ParentInfo::SharedDtor() {
}
void ParentInfo::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ParentInfo::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[14].descriptor;
}
const ParentInfo& ParentInfo::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
ParentInfo* ParentInfo::New(::google::protobuf::Arena* arena) const {
ParentInfo* n = new ParentInfo;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void ParentInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:ParentInfo)
::memset(&uid_, 0, reinterpret_cast<char*>(&bone_) -
reinterpret_cast<char*>(&uid_) + sizeof(bone_));
}
bool ParentInfo::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:ParentInfo)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 uid = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &uid_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 bone = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &bone_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:ParentInfo)
return true;
failure:
// @@protoc_insertion_point(parse_failure:ParentInfo)
return false;
#undef DO_
}
void ParentInfo::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:ParentInfo)
// uint32 uid = 1;
if (this->uid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->uid(), output);
}
// uint32 bone = 2;
if (this->bone() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->bone(), output);
}
// @@protoc_insertion_point(serialize_end:ParentInfo)
}
::google::protobuf::uint8* ParentInfo::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:ParentInfo)
// uint32 uid = 1;
if (this->uid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->uid(), target);
}
// uint32 bone = 2;
if (this->bone() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->bone(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:ParentInfo)
return target;
}
size_t ParentInfo::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ParentInfo)
size_t total_size = 0;
// uint32 uid = 1;
if (this->uid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->uid());
}
// uint32 bone = 2;
if (this->bone() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->bone());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ParentInfo::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ParentInfo)
GOOGLE_DCHECK_NE(&from, this);
const ParentInfo* source =
::google::protobuf::internal::DynamicCastToGenerated<const ParentInfo>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ParentInfo)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:ParentInfo)
MergeFrom(*source);
}
}
void ParentInfo::MergeFrom(const ParentInfo& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ParentInfo)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.uid() != 0) {
set_uid(from.uid());
}
if (from.bone() != 0) {
set_bone(from.bone());
}
}
void ParentInfo::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ParentInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ParentInfo::CopyFrom(const ParentInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ParentInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ParentInfo::IsInitialized() const {
return true;
}
void ParentInfo::Swap(ParentInfo* other) {
if (other == this) return;
InternalSwap(other);
}
void ParentInfo::InternalSwap(ParentInfo* other) {
std::swap(uid_, other->uid_);
std::swap(bone_, other->bone_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata ParentInfo::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[14];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// ParentInfo
// uint32 uid = 1;
void ParentInfo::clear_uid() {
uid_ = 0u;
}
::google::protobuf::uint32 ParentInfo::uid() const {
// @@protoc_insertion_point(field_get:ParentInfo.uid)
return uid_;
}
void ParentInfo::set_uid(::google::protobuf::uint32 value) {
uid_ = value;
// @@protoc_insertion_point(field_set:ParentInfo.uid)
}
// uint32 bone = 2;
void ParentInfo::clear_bone() {
bone_ = 0u;
}
::google::protobuf::uint32 ParentInfo::bone() const {
// @@protoc_insertion_point(field_get:ParentInfo.bone)
return bone_;
}
void ParentInfo::set_bone(::google::protobuf::uint32 value) {
bone_ = value;
// @@protoc_insertion_point(field_set:ParentInfo.bone)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BuildingBlock::kGradeFieldNumber;
const int BuildingBlock::kBeingDemolishedFieldNumber;
const int BuildingBlock::kStabilityFieldNumber;
const int BuildingBlock::kBuildingIDFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BuildingBlock::BuildingBlock()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BuildingBlock)
}
BuildingBlock::BuildingBlock(const BuildingBlock& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&grade_, &from.grade_,
reinterpret_cast<char*>(&buildingid_) -
reinterpret_cast<char*>(&grade_) + sizeof(buildingid_));
// @@protoc_insertion_point(copy_constructor:BuildingBlock)
}
void BuildingBlock::SharedCtor() {
::memset(&grade_, 0, reinterpret_cast<char*>(&buildingid_) -
reinterpret_cast<char*>(&grade_) + sizeof(buildingid_));
_cached_size_ = 0;
}
BuildingBlock::~BuildingBlock() {
// @@protoc_insertion_point(destructor:BuildingBlock)
SharedDtor();
}
void BuildingBlock::SharedDtor() {
}
void BuildingBlock::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BuildingBlock::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[15].descriptor;
}
const BuildingBlock& BuildingBlock::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BuildingBlock* BuildingBlock::New(::google::protobuf::Arena* arena) const {
BuildingBlock* n = new BuildingBlock;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BuildingBlock::Clear() {
// @@protoc_insertion_point(message_clear_start:BuildingBlock)
::memset(&grade_, 0, reinterpret_cast<char*>(&buildingid_) -
reinterpret_cast<char*>(&grade_) + sizeof(buildingid_));
}
bool BuildingBlock::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BuildingBlock)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 grade = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &grade_)));
} else {
goto handle_unusual;
}
break;
}
// bool beingDemolished = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &beingdemolished_)));
} else {
goto handle_unusual;
}
break;
}
// float stability = 4;
case 4: {
if (tag == 37u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &stability_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 buildingID = 5;
case 5: {
if (tag == 40u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &buildingid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BuildingBlock)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BuildingBlock)
return false;
#undef DO_
}
void BuildingBlock::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BuildingBlock)
// int32 grade = 2;
if (this->grade() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->grade(), output);
}
// bool beingDemolished = 3;
if (this->beingdemolished() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->beingdemolished(), output);
}
// float stability = 4;
if (this->stability() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->stability(), output);
}
// uint32 buildingID = 5;
if (this->buildingid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->buildingid(), output);
}
// @@protoc_insertion_point(serialize_end:BuildingBlock)
}
::google::protobuf::uint8* BuildingBlock::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BuildingBlock)
// int32 grade = 2;
if (this->grade() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->grade(), target);
}
// bool beingDemolished = 3;
if (this->beingdemolished() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->beingdemolished(), target);
}
// float stability = 4;
if (this->stability() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->stability(), target);
}
// uint32 buildingID = 5;
if (this->buildingid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->buildingid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:BuildingBlock)
return target;
}
size_t BuildingBlock::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BuildingBlock)
size_t total_size = 0;
// int32 grade = 2;
if (this->grade() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->grade());
}
// bool beingDemolished = 3;
if (this->beingdemolished() != 0) {
total_size += 1 + 1;
}
// float stability = 4;
if (this->stability() != 0) {
total_size += 1 + 4;
}
// uint32 buildingID = 5;
if (this->buildingid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->buildingid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BuildingBlock::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BuildingBlock)
GOOGLE_DCHECK_NE(&from, this);
const BuildingBlock* source =
::google::protobuf::internal::DynamicCastToGenerated<const BuildingBlock>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BuildingBlock)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BuildingBlock)
MergeFrom(*source);
}
}
void BuildingBlock::MergeFrom(const BuildingBlock& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BuildingBlock)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.grade() != 0) {
set_grade(from.grade());
}
if (from.beingdemolished() != 0) {
set_beingdemolished(from.beingdemolished());
}
if (from.stability() != 0) {
set_stability(from.stability());
}
if (from.buildingid() != 0) {
set_buildingid(from.buildingid());
}
}
void BuildingBlock::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BuildingBlock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BuildingBlock::CopyFrom(const BuildingBlock& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BuildingBlock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BuildingBlock::IsInitialized() const {
return true;
}
void BuildingBlock::Swap(BuildingBlock* other) {
if (other == this) return;
InternalSwap(other);
}
void BuildingBlock::InternalSwap(BuildingBlock* other) {
std::swap(grade_, other->grade_);
std::swap(beingdemolished_, other->beingdemolished_);
std::swap(stability_, other->stability_);
std::swap(buildingid_, other->buildingid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BuildingBlock::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[15];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BuildingBlock
// int32 grade = 2;
void BuildingBlock::clear_grade() {
grade_ = 0;
}
::google::protobuf::int32 BuildingBlock::grade() const {
// @@protoc_insertion_point(field_get:BuildingBlock.grade)
return grade_;
}
void BuildingBlock::set_grade(::google::protobuf::int32 value) {
grade_ = value;
// @@protoc_insertion_point(field_set:BuildingBlock.grade)
}
// bool beingDemolished = 3;
void BuildingBlock::clear_beingdemolished() {
beingdemolished_ = false;
}
bool BuildingBlock::beingdemolished() const {
// @@protoc_insertion_point(field_get:BuildingBlock.beingDemolished)
return beingdemolished_;
}
void BuildingBlock::set_beingdemolished(bool value) {
beingdemolished_ = value;
// @@protoc_insertion_point(field_set:BuildingBlock.beingDemolished)
}
// float stability = 4;
void BuildingBlock::clear_stability() {
stability_ = 0;
}
float BuildingBlock::stability() const {
// @@protoc_insertion_point(field_get:BuildingBlock.stability)
return stability_;
}
void BuildingBlock::set_stability(float value) {
stability_ = value;
// @@protoc_insertion_point(field_set:BuildingBlock.stability)
}
// uint32 buildingID = 5;
void BuildingBlock::clear_buildingid() {
buildingid_ = 0u;
}
::google::protobuf::uint32 BuildingBlock::buildingid() const {
// @@protoc_insertion_point(field_get:BuildingBlock.buildingID)
return buildingid_;
}
void BuildingBlock::set_buildingid(::google::protobuf::uint32 value) {
buildingid_ = value;
// @@protoc_insertion_point(field_set:BuildingBlock.buildingID)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int WorldItem::kItemFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
WorldItem::WorldItem()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:WorldItem)
}
WorldItem::WorldItem(const WorldItem& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_item()) {
item_ = new ::Item(*from.item_);
} else {
item_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:WorldItem)
}
void WorldItem::SharedCtor() {
item_ = NULL;
_cached_size_ = 0;
}
WorldItem::~WorldItem() {
// @@protoc_insertion_point(destructor:WorldItem)
SharedDtor();
}
void WorldItem::SharedDtor() {
if (this != internal_default_instance()) {
delete item_;
}
}
void WorldItem::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* WorldItem::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[16].descriptor;
}
const WorldItem& WorldItem::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
WorldItem* WorldItem::New(::google::protobuf::Arena* arena) const {
WorldItem* n = new WorldItem;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void WorldItem::Clear() {
// @@protoc_insertion_point(message_clear_start:WorldItem)
if (GetArenaNoVirtual() == NULL && item_ != NULL) {
delete item_;
}
item_ = NULL;
}
bool WorldItem::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:WorldItem)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .Item item = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_item()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:WorldItem)
return true;
failure:
// @@protoc_insertion_point(parse_failure:WorldItem)
return false;
#undef DO_
}
void WorldItem::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:WorldItem)
// .Item item = 1;
if (this->has_item()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->item_, output);
}
// @@protoc_insertion_point(serialize_end:WorldItem)
}
::google::protobuf::uint8* WorldItem::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:WorldItem)
// .Item item = 1;
if (this->has_item()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->item_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:WorldItem)
return target;
}
size_t WorldItem::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:WorldItem)
size_t total_size = 0;
// .Item item = 1;
if (this->has_item()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->item_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void WorldItem::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:WorldItem)
GOOGLE_DCHECK_NE(&from, this);
const WorldItem* source =
::google::protobuf::internal::DynamicCastToGenerated<const WorldItem>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:WorldItem)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:WorldItem)
MergeFrom(*source);
}
}
void WorldItem::MergeFrom(const WorldItem& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:WorldItem)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_item()) {
mutable_item()->::Item::MergeFrom(from.item());
}
}
void WorldItem::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:WorldItem)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void WorldItem::CopyFrom(const WorldItem& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:WorldItem)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool WorldItem::IsInitialized() const {
return true;
}
void WorldItem::Swap(WorldItem* other) {
if (other == this) return;
InternalSwap(other);
}
void WorldItem::InternalSwap(WorldItem* other) {
std::swap(item_, other->item_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata WorldItem::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[16];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// WorldItem
// .Item item = 1;
bool WorldItem::has_item() const {
return this != internal_default_instance() && item_ != NULL;
}
void WorldItem::clear_item() {
if (GetArenaNoVirtual() == NULL && item_ != NULL) delete item_;
item_ = NULL;
}
const ::Item& WorldItem::item() const {
// @@protoc_insertion_point(field_get:WorldItem.item)
return item_ != NULL ? *item_
: *::Item::internal_default_instance();
}
::Item* WorldItem::mutable_item() {
if (item_ == NULL) {
item_ = new ::Item;
}
// @@protoc_insertion_point(field_mutable:WorldItem.item)
return item_;
}
::Item* WorldItem::release_item() {
// @@protoc_insertion_point(field_release:WorldItem.item)
::Item* temp = item_;
item_ = NULL;
return temp;
}
void WorldItem::set_allocated_item(::Item* item) {
delete item_;
item_ = item;
if (item) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:WorldItem.item)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int KeyLock::kCodeFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
KeyLock::KeyLock()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:KeyLock)
}
KeyLock::KeyLock(const KeyLock& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
code_ = from.code_;
// @@protoc_insertion_point(copy_constructor:KeyLock)
}
void KeyLock::SharedCtor() {
code_ = 0;
_cached_size_ = 0;
}
KeyLock::~KeyLock() {
// @@protoc_insertion_point(destructor:KeyLock)
SharedDtor();
}
void KeyLock::SharedDtor() {
}
void KeyLock::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* KeyLock::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[17].descriptor;
}
const KeyLock& KeyLock::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
KeyLock* KeyLock::New(::google::protobuf::Arena* arena) const {
KeyLock* n = new KeyLock;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void KeyLock::Clear() {
// @@protoc_insertion_point(message_clear_start:KeyLock)
code_ = 0;
}
bool KeyLock::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:KeyLock)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 code = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &code_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:KeyLock)
return true;
failure:
// @@protoc_insertion_point(parse_failure:KeyLock)
return false;
#undef DO_
}
void KeyLock::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:KeyLock)
// int32 code = 1;
if (this->code() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->code(), output);
}
// @@protoc_insertion_point(serialize_end:KeyLock)
}
::google::protobuf::uint8* KeyLock::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:KeyLock)
// int32 code = 1;
if (this->code() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->code(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:KeyLock)
return target;
}
size_t KeyLock::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:KeyLock)
size_t total_size = 0;
// int32 code = 1;
if (this->code() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->code());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void KeyLock::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:KeyLock)
GOOGLE_DCHECK_NE(&from, this);
const KeyLock* source =
::google::protobuf::internal::DynamicCastToGenerated<const KeyLock>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:KeyLock)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:KeyLock)
MergeFrom(*source);
}
}
void KeyLock::MergeFrom(const KeyLock& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:KeyLock)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.code() != 0) {
set_code(from.code());
}
}
void KeyLock::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:KeyLock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void KeyLock::CopyFrom(const KeyLock& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:KeyLock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool KeyLock::IsInitialized() const {
return true;
}
void KeyLock::Swap(KeyLock* other) {
if (other == this) return;
InternalSwap(other);
}
void KeyLock::InternalSwap(KeyLock* other) {
std::swap(code_, other->code_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata KeyLock::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[17];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// KeyLock
// int32 code = 1;
void KeyLock::clear_code() {
code_ = 0;
}
::google::protobuf::int32 KeyLock::code() const {
// @@protoc_insertion_point(field_get:KeyLock.code)
return code_;
}
void KeyLock::set_code(::google::protobuf::int32 value) {
code_ = value;
// @@protoc_insertion_point(field_set:KeyLock.code)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CodeLock::kPvFieldNumber;
const int CodeLock::kHasCodeFieldNumber;
const int CodeLock::kHasGuestCodeFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
CodeLock::CodeLock()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:CodeLock)
}
CodeLock::CodeLock(const CodeLock& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_pv()) {
pv_ = new ::CodeLockPrivate(*from.pv_);
} else {
pv_ = NULL;
}
::memcpy(&hascode_, &from.hascode_,
reinterpret_cast<char*>(&hasguestcode_) -
reinterpret_cast<char*>(&hascode_) + sizeof(hasguestcode_));
// @@protoc_insertion_point(copy_constructor:CodeLock)
}
void CodeLock::SharedCtor() {
::memset(&pv_, 0, reinterpret_cast<char*>(&hasguestcode_) -
reinterpret_cast<char*>(&pv_) + sizeof(hasguestcode_));
_cached_size_ = 0;
}
CodeLock::~CodeLock() {
// @@protoc_insertion_point(destructor:CodeLock)
SharedDtor();
}
void CodeLock::SharedDtor() {
if (this != internal_default_instance()) {
delete pv_;
}
}
void CodeLock::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CodeLock::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[18].descriptor;
}
const CodeLock& CodeLock::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
CodeLock* CodeLock::New(::google::protobuf::Arena* arena) const {
CodeLock* n = new CodeLock;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void CodeLock::Clear() {
// @@protoc_insertion_point(message_clear_start:CodeLock)
if (GetArenaNoVirtual() == NULL && pv_ != NULL) {
delete pv_;
}
pv_ = NULL;
::memset(&hascode_, 0, reinterpret_cast<char*>(&hasguestcode_) -
reinterpret_cast<char*>(&hascode_) + sizeof(hasguestcode_));
}
bool CodeLock::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:CodeLock)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .CodeLockPrivate pv = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_pv()));
} else {
goto handle_unusual;
}
break;
}
// bool hasCode = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &hascode_)));
} else {
goto handle_unusual;
}
break;
}
// bool hasGuestCode = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &hasguestcode_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:CodeLock)
return true;
failure:
// @@protoc_insertion_point(parse_failure:CodeLock)
return false;
#undef DO_
}
void CodeLock::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:CodeLock)
// .CodeLockPrivate pv = 1;
if (this->has_pv()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->pv_, output);
}
// bool hasCode = 2;
if (this->hascode() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->hascode(), output);
}
// bool hasGuestCode = 3;
if (this->hasguestcode() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->hasguestcode(), output);
}
// @@protoc_insertion_point(serialize_end:CodeLock)
}
::google::protobuf::uint8* CodeLock::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:CodeLock)
// .CodeLockPrivate pv = 1;
if (this->has_pv()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->pv_, false, target);
}
// bool hasCode = 2;
if (this->hascode() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->hascode(), target);
}
// bool hasGuestCode = 3;
if (this->hasguestcode() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->hasguestcode(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:CodeLock)
return target;
}
size_t CodeLock::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:CodeLock)
size_t total_size = 0;
// .CodeLockPrivate pv = 1;
if (this->has_pv()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->pv_);
}
// bool hasCode = 2;
if (this->hascode() != 0) {
total_size += 1 + 1;
}
// bool hasGuestCode = 3;
if (this->hasguestcode() != 0) {
total_size += 1 + 1;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CodeLock::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:CodeLock)
GOOGLE_DCHECK_NE(&from, this);
const CodeLock* source =
::google::protobuf::internal::DynamicCastToGenerated<const CodeLock>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:CodeLock)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:CodeLock)
MergeFrom(*source);
}
}
void CodeLock::MergeFrom(const CodeLock& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:CodeLock)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_pv()) {
mutable_pv()->::CodeLockPrivate::MergeFrom(from.pv());
}
if (from.hascode() != 0) {
set_hascode(from.hascode());
}
if (from.hasguestcode() != 0) {
set_hasguestcode(from.hasguestcode());
}
}
void CodeLock::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:CodeLock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CodeLock::CopyFrom(const CodeLock& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:CodeLock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CodeLock::IsInitialized() const {
return true;
}
void CodeLock::Swap(CodeLock* other) {
if (other == this) return;
InternalSwap(other);
}
void CodeLock::InternalSwap(CodeLock* other) {
std::swap(pv_, other->pv_);
std::swap(hascode_, other->hascode_);
std::swap(hasguestcode_, other->hasguestcode_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata CodeLock::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[18];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// CodeLock
// .CodeLockPrivate pv = 1;
bool CodeLock::has_pv() const {
return this != internal_default_instance() && pv_ != NULL;
}
void CodeLock::clear_pv() {
if (GetArenaNoVirtual() == NULL && pv_ != NULL) delete pv_;
pv_ = NULL;
}
const ::CodeLockPrivate& CodeLock::pv() const {
// @@protoc_insertion_point(field_get:CodeLock.pv)
return pv_ != NULL ? *pv_
: *::CodeLockPrivate::internal_default_instance();
}
::CodeLockPrivate* CodeLock::mutable_pv() {
if (pv_ == NULL) {
pv_ = new ::CodeLockPrivate;
}
// @@protoc_insertion_point(field_mutable:CodeLock.pv)
return pv_;
}
::CodeLockPrivate* CodeLock::release_pv() {
// @@protoc_insertion_point(field_release:CodeLock.pv)
::CodeLockPrivate* temp = pv_;
pv_ = NULL;
return temp;
}
void CodeLock::set_allocated_pv(::CodeLockPrivate* pv) {
delete pv_;
pv_ = pv;
if (pv) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:CodeLock.pv)
}
// bool hasCode = 2;
void CodeLock::clear_hascode() {
hascode_ = false;
}
bool CodeLock::hascode() const {
// @@protoc_insertion_point(field_get:CodeLock.hasCode)
return hascode_;
}
void CodeLock::set_hascode(bool value) {
hascode_ = value;
// @@protoc_insertion_point(field_set:CodeLock.hasCode)
}
// bool hasGuestCode = 3;
void CodeLock::clear_hasguestcode() {
hasguestcode_ = false;
}
bool CodeLock::hasguestcode() const {
// @@protoc_insertion_point(field_get:CodeLock.hasGuestCode)
return hasguestcode_;
}
void CodeLock::set_hasguestcode(bool value) {
hasguestcode_ = value;
// @@protoc_insertion_point(field_set:CodeLock.hasGuestCode)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BuildingPrivilege::kUsersFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BuildingPrivilege::BuildingPrivilege()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BuildingPrivilege)
}
BuildingPrivilege::BuildingPrivilege(const BuildingPrivilege& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
users_(from.users_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:BuildingPrivilege)
}
void BuildingPrivilege::SharedCtor() {
_cached_size_ = 0;
}
BuildingPrivilege::~BuildingPrivilege() {
// @@protoc_insertion_point(destructor:BuildingPrivilege)
SharedDtor();
}
void BuildingPrivilege::SharedDtor() {
}
void BuildingPrivilege::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BuildingPrivilege::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[19].descriptor;
}
const BuildingPrivilege& BuildingPrivilege::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BuildingPrivilege* BuildingPrivilege::New(::google::protobuf::Arena* arena) const {
BuildingPrivilege* n = new BuildingPrivilege;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BuildingPrivilege::Clear() {
// @@protoc_insertion_point(message_clear_start:BuildingPrivilege)
users_.Clear();
}
bool BuildingPrivilege::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BuildingPrivilege)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .PlayerNameID users = 1;
case 1: {
if (tag == 10u) {
DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_users()));
} else {
goto handle_unusual;
}
input->UnsafeDecrementRecursionDepth();
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BuildingPrivilege)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BuildingPrivilege)
return false;
#undef DO_
}
void BuildingPrivilege::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BuildingPrivilege)
// repeated .PlayerNameID users = 1;
for (unsigned int i = 0, n = this->users_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->users(i), output);
}
// @@protoc_insertion_point(serialize_end:BuildingPrivilege)
}
::google::protobuf::uint8* BuildingPrivilege::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BuildingPrivilege)
// repeated .PlayerNameID users = 1;
for (unsigned int i = 0, n = this->users_size(); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, this->users(i), false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:BuildingPrivilege)
return target;
}
size_t BuildingPrivilege::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BuildingPrivilege)
size_t total_size = 0;
// repeated .PlayerNameID users = 1;
{
unsigned int count = this->users_size();
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->users(i));
}
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BuildingPrivilege::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BuildingPrivilege)
GOOGLE_DCHECK_NE(&from, this);
const BuildingPrivilege* source =
::google::protobuf::internal::DynamicCastToGenerated<const BuildingPrivilege>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BuildingPrivilege)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BuildingPrivilege)
MergeFrom(*source);
}
}
void BuildingPrivilege::MergeFrom(const BuildingPrivilege& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BuildingPrivilege)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
users_.MergeFrom(from.users_);
}
void BuildingPrivilege::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BuildingPrivilege)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BuildingPrivilege::CopyFrom(const BuildingPrivilege& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BuildingPrivilege)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BuildingPrivilege::IsInitialized() const {
return true;
}
void BuildingPrivilege::Swap(BuildingPrivilege* other) {
if (other == this) return;
InternalSwap(other);
}
void BuildingPrivilege::InternalSwap(BuildingPrivilege* other) {
users_.UnsafeArenaSwap(&other->users_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BuildingPrivilege::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[19];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BuildingPrivilege
// repeated .PlayerNameID users = 1;
int BuildingPrivilege::users_size() const {
return users_.size();
}
void BuildingPrivilege::clear_users() {
users_.Clear();
}
const ::PlayerNameID& BuildingPrivilege::users(int index) const {
// @@protoc_insertion_point(field_get:BuildingPrivilege.users)
return users_.Get(index);
}
::PlayerNameID* BuildingPrivilege::mutable_users(int index) {
// @@protoc_insertion_point(field_mutable:BuildingPrivilege.users)
return users_.Mutable(index);
}
::PlayerNameID* BuildingPrivilege::add_users() {
// @@protoc_insertion_point(field_add:BuildingPrivilege.users)
return users_.Add();
}
::google::protobuf::RepeatedPtrField< ::PlayerNameID >*
BuildingPrivilege::mutable_users() {
// @@protoc_insertion_point(field_mutable_list:BuildingPrivilege.users)
return &users_;
}
const ::google::protobuf::RepeatedPtrField< ::PlayerNameID >&
BuildingPrivilege::users() const {
// @@protoc_insertion_point(field_list:BuildingPrivilege.users)
return users_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StorageBox::kContentsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
StorageBox::StorageBox()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:StorageBox)
}
StorageBox::StorageBox(const StorageBox& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_contents()) {
contents_ = new ::ItemContainer(*from.contents_);
} else {
contents_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:StorageBox)
}
void StorageBox::SharedCtor() {
contents_ = NULL;
_cached_size_ = 0;
}
StorageBox::~StorageBox() {
// @@protoc_insertion_point(destructor:StorageBox)
SharedDtor();
}
void StorageBox::SharedDtor() {
if (this != internal_default_instance()) {
delete contents_;
}
}
void StorageBox::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* StorageBox::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[20].descriptor;
}
const StorageBox& StorageBox::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
StorageBox* StorageBox::New(::google::protobuf::Arena* arena) const {
StorageBox* n = new StorageBox;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void StorageBox::Clear() {
// @@protoc_insertion_point(message_clear_start:StorageBox)
if (GetArenaNoVirtual() == NULL && contents_ != NULL) {
delete contents_;
}
contents_ = NULL;
}
bool StorageBox::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:StorageBox)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .ItemContainer contents = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_contents()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:StorageBox)
return true;
failure:
// @@protoc_insertion_point(parse_failure:StorageBox)
return false;
#undef DO_
}
void StorageBox::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:StorageBox)
// .ItemContainer contents = 1;
if (this->has_contents()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->contents_, output);
}
// @@protoc_insertion_point(serialize_end:StorageBox)
}
::google::protobuf::uint8* StorageBox::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:StorageBox)
// .ItemContainer contents = 1;
if (this->has_contents()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->contents_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:StorageBox)
return target;
}
size_t StorageBox::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:StorageBox)
size_t total_size = 0;
// .ItemContainer contents = 1;
if (this->has_contents()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->contents_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void StorageBox::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:StorageBox)
GOOGLE_DCHECK_NE(&from, this);
const StorageBox* source =
::google::protobuf::internal::DynamicCastToGenerated<const StorageBox>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:StorageBox)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:StorageBox)
MergeFrom(*source);
}
}
void StorageBox::MergeFrom(const StorageBox& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:StorageBox)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_contents()) {
mutable_contents()->::ItemContainer::MergeFrom(from.contents());
}
}
void StorageBox::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:StorageBox)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StorageBox::CopyFrom(const StorageBox& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:StorageBox)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StorageBox::IsInitialized() const {
return true;
}
void StorageBox::Swap(StorageBox* other) {
if (other == this) return;
InternalSwap(other);
}
void StorageBox::InternalSwap(StorageBox* other) {
std::swap(contents_, other->contents_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata StorageBox::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[20];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// StorageBox
// .ItemContainer contents = 1;
bool StorageBox::has_contents() const {
return this != internal_default_instance() && contents_ != NULL;
}
void StorageBox::clear_contents() {
if (GetArenaNoVirtual() == NULL && contents_ != NULL) delete contents_;
contents_ = NULL;
}
const ::ItemContainer& StorageBox::contents() const {
// @@protoc_insertion_point(field_get:StorageBox.contents)
return contents_ != NULL ? *contents_
: *::ItemContainer::internal_default_instance();
}
::ItemContainer* StorageBox::mutable_contents() {
if (contents_ == NULL) {
contents_ = new ::ItemContainer;
}
// @@protoc_insertion_point(field_mutable:StorageBox.contents)
return contents_;
}
::ItemContainer* StorageBox::release_contents() {
// @@protoc_insertion_point(field_release:StorageBox.contents)
::ItemContainer* temp = contents_;
contents_ = NULL;
return temp;
}
void StorageBox::set_allocated_contents(::ItemContainer* contents) {
delete contents_;
contents_ = contents;
if (contents) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:StorageBox.contents)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int HeldEntity::kItemUIDFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
HeldEntity::HeldEntity()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:HeldEntity)
}
HeldEntity::HeldEntity(const HeldEntity& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
itemuid_ = from.itemuid_;
// @@protoc_insertion_point(copy_constructor:HeldEntity)
}
void HeldEntity::SharedCtor() {
itemuid_ = 0u;
_cached_size_ = 0;
}
HeldEntity::~HeldEntity() {
// @@protoc_insertion_point(destructor:HeldEntity)
SharedDtor();
}
void HeldEntity::SharedDtor() {
}
void HeldEntity::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HeldEntity::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[21].descriptor;
}
const HeldEntity& HeldEntity::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
HeldEntity* HeldEntity::New(::google::protobuf::Arena* arena) const {
HeldEntity* n = new HeldEntity;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void HeldEntity::Clear() {
// @@protoc_insertion_point(message_clear_start:HeldEntity)
itemuid_ = 0u;
}
bool HeldEntity::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:HeldEntity)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 itemUID = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &itemuid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:HeldEntity)
return true;
failure:
// @@protoc_insertion_point(parse_failure:HeldEntity)
return false;
#undef DO_
}
void HeldEntity::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:HeldEntity)
// uint32 itemUID = 1;
if (this->itemuid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->itemuid(), output);
}
// @@protoc_insertion_point(serialize_end:HeldEntity)
}
::google::protobuf::uint8* HeldEntity::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:HeldEntity)
// uint32 itemUID = 1;
if (this->itemuid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->itemuid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:HeldEntity)
return target;
}
size_t HeldEntity::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:HeldEntity)
size_t total_size = 0;
// uint32 itemUID = 1;
if (this->itemuid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->itemuid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HeldEntity::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:HeldEntity)
GOOGLE_DCHECK_NE(&from, this);
const HeldEntity* source =
::google::protobuf::internal::DynamicCastToGenerated<const HeldEntity>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:HeldEntity)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:HeldEntity)
MergeFrom(*source);
}
}
void HeldEntity::MergeFrom(const HeldEntity& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:HeldEntity)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.itemuid() != 0) {
set_itemuid(from.itemuid());
}
}
void HeldEntity::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:HeldEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HeldEntity::CopyFrom(const HeldEntity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:HeldEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HeldEntity::IsInitialized() const {
return true;
}
void HeldEntity::Swap(HeldEntity* other) {
if (other == this) return;
InternalSwap(other);
}
void HeldEntity::InternalSwap(HeldEntity* other) {
std::swap(itemuid_, other->itemuid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata HeldEntity::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[21];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// HeldEntity
// uint32 itemUID = 1;
void HeldEntity::clear_itemuid() {
itemuid_ = 0u;
}
::google::protobuf::uint32 HeldEntity::itemuid() const {
// @@protoc_insertion_point(field_get:HeldEntity.itemUID)
return itemuid_;
}
void HeldEntity::set_itemuid(::google::protobuf::uint32 value) {
itemuid_ = value;
// @@protoc_insertion_point(field_set:HeldEntity.itemUID)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Loot::kContentsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Loot::Loot()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Loot)
}
Loot::Loot(const Loot& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_contents()) {
contents_ = new ::ItemContainer(*from.contents_);
} else {
contents_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:Loot)
}
void Loot::SharedCtor() {
contents_ = NULL;
_cached_size_ = 0;
}
Loot::~Loot() {
// @@protoc_insertion_point(destructor:Loot)
SharedDtor();
}
void Loot::SharedDtor() {
if (this != internal_default_instance()) {
delete contents_;
}
}
void Loot::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Loot::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[22].descriptor;
}
const Loot& Loot::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Loot* Loot::New(::google::protobuf::Arena* arena) const {
Loot* n = new Loot;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Loot::Clear() {
// @@protoc_insertion_point(message_clear_start:Loot)
if (GetArenaNoVirtual() == NULL && contents_ != NULL) {
delete contents_;
}
contents_ = NULL;
}
bool Loot::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Loot)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .ItemContainer contents = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_contents()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Loot)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Loot)
return false;
#undef DO_
}
void Loot::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Loot)
// .ItemContainer contents = 1;
if (this->has_contents()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->contents_, output);
}
// @@protoc_insertion_point(serialize_end:Loot)
}
::google::protobuf::uint8* Loot::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Loot)
// .ItemContainer contents = 1;
if (this->has_contents()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->contents_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:Loot)
return target;
}
size_t Loot::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Loot)
size_t total_size = 0;
// .ItemContainer contents = 1;
if (this->has_contents()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->contents_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Loot::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Loot)
GOOGLE_DCHECK_NE(&from, this);
const Loot* source =
::google::protobuf::internal::DynamicCastToGenerated<const Loot>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Loot)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Loot)
MergeFrom(*source);
}
}
void Loot::MergeFrom(const Loot& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Loot)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_contents()) {
mutable_contents()->::ItemContainer::MergeFrom(from.contents());
}
}
void Loot::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Loot)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Loot::CopyFrom(const Loot& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Loot)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Loot::IsInitialized() const {
return true;
}
void Loot::Swap(Loot* other) {
if (other == this) return;
InternalSwap(other);
}
void Loot::InternalSwap(Loot* other) {
std::swap(contents_, other->contents_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Loot::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[22];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Loot
// .ItemContainer contents = 1;
bool Loot::has_contents() const {
return this != internal_default_instance() && contents_ != NULL;
}
void Loot::clear_contents() {
if (GetArenaNoVirtual() == NULL && contents_ != NULL) delete contents_;
contents_ = NULL;
}
const ::ItemContainer& Loot::contents() const {
// @@protoc_insertion_point(field_get:Loot.contents)
return contents_ != NULL ? *contents_
: *::ItemContainer::internal_default_instance();
}
::ItemContainer* Loot::mutable_contents() {
if (contents_ == NULL) {
contents_ = new ::ItemContainer;
}
// @@protoc_insertion_point(field_mutable:Loot.contents)
return contents_;
}
::ItemContainer* Loot::release_contents() {
// @@protoc_insertion_point(field_release:Loot.contents)
::ItemContainer* temp = contents_;
contents_ = NULL;
return temp;
}
void Loot::set_allocated_contents(::ItemContainer* contents) {
delete contents_;
contents_ = contents;
if (contents) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Loot.contents)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GenericSpawner::kEntsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GenericSpawner::GenericSpawner()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:GenericSpawner)
}
GenericSpawner::GenericSpawner(const GenericSpawner& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
ents_(from.ents_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:GenericSpawner)
}
void GenericSpawner::SharedCtor() {
_cached_size_ = 0;
}
GenericSpawner::~GenericSpawner() {
// @@protoc_insertion_point(destructor:GenericSpawner)
SharedDtor();
}
void GenericSpawner::SharedDtor() {
}
void GenericSpawner::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* GenericSpawner::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[23].descriptor;
}
const GenericSpawner& GenericSpawner::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
GenericSpawner* GenericSpawner::New(::google::protobuf::Arena* arena) const {
GenericSpawner* n = new GenericSpawner;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void GenericSpawner::Clear() {
// @@protoc_insertion_point(message_clear_start:GenericSpawner)
ents_.Clear();
}
bool GenericSpawner::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:GenericSpawner)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .SpawnedEnt ents = 1;
case 1: {
if (tag == 10u) {
DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_ents()));
} else {
goto handle_unusual;
}
input->UnsafeDecrementRecursionDepth();
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:GenericSpawner)
return true;
failure:
// @@protoc_insertion_point(parse_failure:GenericSpawner)
return false;
#undef DO_
}
void GenericSpawner::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:GenericSpawner)
// repeated .SpawnedEnt ents = 1;
for (unsigned int i = 0, n = this->ents_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->ents(i), output);
}
// @@protoc_insertion_point(serialize_end:GenericSpawner)
}
::google::protobuf::uint8* GenericSpawner::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:GenericSpawner)
// repeated .SpawnedEnt ents = 1;
for (unsigned int i = 0, n = this->ents_size(); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, this->ents(i), false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:GenericSpawner)
return target;
}
size_t GenericSpawner::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:GenericSpawner)
size_t total_size = 0;
// repeated .SpawnedEnt ents = 1;
{
unsigned int count = this->ents_size();
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->ents(i));
}
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void GenericSpawner::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:GenericSpawner)
GOOGLE_DCHECK_NE(&from, this);
const GenericSpawner* source =
::google::protobuf::internal::DynamicCastToGenerated<const GenericSpawner>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:GenericSpawner)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:GenericSpawner)
MergeFrom(*source);
}
}
void GenericSpawner::MergeFrom(const GenericSpawner& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:GenericSpawner)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
ents_.MergeFrom(from.ents_);
}
void GenericSpawner::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:GenericSpawner)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GenericSpawner::CopyFrom(const GenericSpawner& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:GenericSpawner)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GenericSpawner::IsInitialized() const {
return true;
}
void GenericSpawner::Swap(GenericSpawner* other) {
if (other == this) return;
InternalSwap(other);
}
void GenericSpawner::InternalSwap(GenericSpawner* other) {
ents_.UnsafeArenaSwap(&other->ents_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata GenericSpawner::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[23];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// GenericSpawner
// repeated .SpawnedEnt ents = 1;
int GenericSpawner::ents_size() const {
return ents_.size();
}
void GenericSpawner::clear_ents() {
ents_.Clear();
}
const ::SpawnedEnt& GenericSpawner::ents(int index) const {
// @@protoc_insertion_point(field_get:GenericSpawner.ents)
return ents_.Get(index);
}
::SpawnedEnt* GenericSpawner::mutable_ents(int index) {
// @@protoc_insertion_point(field_mutable:GenericSpawner.ents)
return ents_.Mutable(index);
}
::SpawnedEnt* GenericSpawner::add_ents() {
// @@protoc_insertion_point(field_add:GenericSpawner.ents)
return ents_.Add();
}
::google::protobuf::RepeatedPtrField< ::SpawnedEnt >*
GenericSpawner::mutable_ents() {
// @@protoc_insertion_point(field_mutable_list:GenericSpawner.ents)
return &ents_;
}
const ::google::protobuf::RepeatedPtrField< ::SpawnedEnt >&
GenericSpawner::ents() const {
// @@protoc_insertion_point(field_list:GenericSpawner.ents)
return ents_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int SleepingBag::kNameFieldNumber;
const int SleepingBag::kPrivateDataFieldNumber;
const int SleepingBag::kDeployerIDFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
SleepingBag::SleepingBag()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:SleepingBag)
}
SleepingBag::SleepingBag(const SleepingBag& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.has_privatedata()) {
privatedata_ = new ::SleepingBagPrivate(*from.privatedata_);
} else {
privatedata_ = NULL;
}
deployerid_ = from.deployerid_;
// @@protoc_insertion_point(copy_constructor:SleepingBag)
}
void SleepingBag::SharedCtor() {
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&privatedata_, 0, reinterpret_cast<char*>(&deployerid_) -
reinterpret_cast<char*>(&privatedata_) + sizeof(deployerid_));
_cached_size_ = 0;
}
SleepingBag::~SleepingBag() {
// @@protoc_insertion_point(destructor:SleepingBag)
SharedDtor();
}
void SleepingBag::SharedDtor() {
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) {
delete privatedata_;
}
}
void SleepingBag::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* SleepingBag::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[24].descriptor;
}
const SleepingBag& SleepingBag::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
SleepingBag* SleepingBag::New(::google::protobuf::Arena* arena) const {
SleepingBag* n = new SleepingBag;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void SleepingBag::Clear() {
// @@protoc_insertion_point(message_clear_start:SleepingBag)
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == NULL && privatedata_ != NULL) {
delete privatedata_;
}
privatedata_ = NULL;
deployerid_ = GOOGLE_ULONGLONG(0);
}
bool SleepingBag::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:SleepingBag)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"SleepingBag.name"));
} else {
goto handle_unusual;
}
break;
}
// .SleepingBagPrivate privateData = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_privatedata()));
} else {
goto handle_unusual;
}
break;
}
// uint64 deployerID = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &deployerid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:SleepingBag)
return true;
failure:
// @@protoc_insertion_point(parse_failure:SleepingBag)
return false;
#undef DO_
}
void SleepingBag::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:SleepingBag)
// string name = 1;
if (this->name().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"SleepingBag.name");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->name(), output);
}
// .SleepingBagPrivate privateData = 2;
if (this->has_privatedata()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->privatedata_, output);
}
// uint64 deployerID = 3;
if (this->deployerid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->deployerid(), output);
}
// @@protoc_insertion_point(serialize_end:SleepingBag)
}
::google::protobuf::uint8* SleepingBag::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:SleepingBag)
// string name = 1;
if (this->name().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"SleepingBag.name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->name(), target);
}
// .SleepingBagPrivate privateData = 2;
if (this->has_privatedata()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->privatedata_, false, target);
}
// uint64 deployerID = 3;
if (this->deployerid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->deployerid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:SleepingBag)
return target;
}
size_t SleepingBag::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:SleepingBag)
size_t total_size = 0;
// string name = 1;
if (this->name().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->name());
}
// .SleepingBagPrivate privateData = 2;
if (this->has_privatedata()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->privatedata_);
}
// uint64 deployerID = 3;
if (this->deployerid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->deployerid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void SleepingBag::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:SleepingBag)
GOOGLE_DCHECK_NE(&from, this);
const SleepingBag* source =
::google::protobuf::internal::DynamicCastToGenerated<const SleepingBag>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:SleepingBag)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:SleepingBag)
MergeFrom(*source);
}
}
void SleepingBag::MergeFrom(const SleepingBag& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:SleepingBag)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.has_privatedata()) {
mutable_privatedata()->::SleepingBagPrivate::MergeFrom(from.privatedata());
}
if (from.deployerid() != 0) {
set_deployerid(from.deployerid());
}
}
void SleepingBag::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:SleepingBag)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SleepingBag::CopyFrom(const SleepingBag& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:SleepingBag)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SleepingBag::IsInitialized() const {
return true;
}
void SleepingBag::Swap(SleepingBag* other) {
if (other == this) return;
InternalSwap(other);
}
void SleepingBag::InternalSwap(SleepingBag* other) {
name_.Swap(&other->name_);
std::swap(privatedata_, other->privatedata_);
std::swap(deployerid_, other->deployerid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata SleepingBag::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[24];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// SleepingBag
// string name = 1;
void SleepingBag::clear_name() {
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& SleepingBag::name() const {
// @@protoc_insertion_point(field_get:SleepingBag.name)
return name_.GetNoArena();
}
void SleepingBag::set_name(const ::std::string& value) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:SleepingBag.name)
}
#if LANG_CXX11
void SleepingBag::set_name(::std::string&& value) {
name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:SleepingBag.name)
}
#endif
void SleepingBag::set_name(const char* value) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:SleepingBag.name)
}
void SleepingBag::set_name(const char* value, size_t size) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:SleepingBag.name)
}
::std::string* SleepingBag::mutable_name() {
// @@protoc_insertion_point(field_mutable:SleepingBag.name)
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* SleepingBag::release_name() {
// @@protoc_insertion_point(field_release:SleepingBag.name)
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void SleepingBag::set_allocated_name(::std::string* name) {
if (name != NULL) {
} else {
}
name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
// @@protoc_insertion_point(field_set_allocated:SleepingBag.name)
}
// .SleepingBagPrivate privateData = 2;
bool SleepingBag::has_privatedata() const {
return this != internal_default_instance() && privatedata_ != NULL;
}
void SleepingBag::clear_privatedata() {
if (GetArenaNoVirtual() == NULL && privatedata_ != NULL) delete privatedata_;
privatedata_ = NULL;
}
const ::SleepingBagPrivate& SleepingBag::privatedata() const {
// @@protoc_insertion_point(field_get:SleepingBag.privateData)
return privatedata_ != NULL ? *privatedata_
: *::SleepingBagPrivate::internal_default_instance();
}
::SleepingBagPrivate* SleepingBag::mutable_privatedata() {
if (privatedata_ == NULL) {
privatedata_ = new ::SleepingBagPrivate;
}
// @@protoc_insertion_point(field_mutable:SleepingBag.privateData)
return privatedata_;
}
::SleepingBagPrivate* SleepingBag::release_privatedata() {
// @@protoc_insertion_point(field_release:SleepingBag.privateData)
::SleepingBagPrivate* temp = privatedata_;
privatedata_ = NULL;
return temp;
}
void SleepingBag::set_allocated_privatedata(::SleepingBagPrivate* privatedata) {
delete privatedata_;
privatedata_ = privatedata;
if (privatedata) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:SleepingBag.privateData)
}
// uint64 deployerID = 3;
void SleepingBag::clear_deployerid() {
deployerid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 SleepingBag::deployerid() const {
// @@protoc_insertion_point(field_get:SleepingBag.deployerID)
return deployerid_;
}
void SleepingBag::set_deployerid(::google::protobuf::uint64 value) {
deployerid_ = value;
// @@protoc_insertion_point(field_set:SleepingBag.deployerID)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Magazine::kCapacityFieldNumber;
const int Magazine::kContentsFieldNumber;
const int Magazine::kAmmoTypeFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Magazine::Magazine()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Magazine)
}
Magazine::Magazine(const Magazine& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&capacity_, &from.capacity_,
reinterpret_cast<char*>(&ammotype_) -
reinterpret_cast<char*>(&capacity_) + sizeof(ammotype_));
// @@protoc_insertion_point(copy_constructor:Magazine)
}
void Magazine::SharedCtor() {
::memset(&capacity_, 0, reinterpret_cast<char*>(&ammotype_) -
reinterpret_cast<char*>(&capacity_) + sizeof(ammotype_));
_cached_size_ = 0;
}
Magazine::~Magazine() {
// @@protoc_insertion_point(destructor:Magazine)
SharedDtor();
}
void Magazine::SharedDtor() {
}
void Magazine::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Magazine::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[25].descriptor;
}
const Magazine& Magazine::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Magazine* Magazine::New(::google::protobuf::Arena* arena) const {
Magazine* n = new Magazine;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Magazine::Clear() {
// @@protoc_insertion_point(message_clear_start:Magazine)
::memset(&capacity_, 0, reinterpret_cast<char*>(&ammotype_) -
reinterpret_cast<char*>(&capacity_) + sizeof(ammotype_));
}
bool Magazine::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Magazine)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 capacity = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &capacity_)));
} else {
goto handle_unusual;
}
break;
}
// int32 contents = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &contents_)));
} else {
goto handle_unusual;
}
break;
}
// int32 ammoType = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &ammotype_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Magazine)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Magazine)
return false;
#undef DO_
}
void Magazine::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Magazine)
// int32 capacity = 1;
if (this->capacity() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->capacity(), output);
}
// int32 contents = 2;
if (this->contents() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->contents(), output);
}
// int32 ammoType = 3;
if (this->ammotype() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->ammotype(), output);
}
// @@protoc_insertion_point(serialize_end:Magazine)
}
::google::protobuf::uint8* Magazine::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Magazine)
// int32 capacity = 1;
if (this->capacity() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->capacity(), target);
}
// int32 contents = 2;
if (this->contents() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->contents(), target);
}
// int32 ammoType = 3;
if (this->ammotype() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->ammotype(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Magazine)
return target;
}
size_t Magazine::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Magazine)
size_t total_size = 0;
// int32 capacity = 1;
if (this->capacity() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->capacity());
}
// int32 contents = 2;
if (this->contents() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->contents());
}
// int32 ammoType = 3;
if (this->ammotype() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->ammotype());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Magazine::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Magazine)
GOOGLE_DCHECK_NE(&from, this);
const Magazine* source =
::google::protobuf::internal::DynamicCastToGenerated<const Magazine>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Magazine)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Magazine)
MergeFrom(*source);
}
}
void Magazine::MergeFrom(const Magazine& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Magazine)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.capacity() != 0) {
set_capacity(from.capacity());
}
if (from.contents() != 0) {
set_contents(from.contents());
}
if (from.ammotype() != 0) {
set_ammotype(from.ammotype());
}
}
void Magazine::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Magazine)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Magazine::CopyFrom(const Magazine& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Magazine)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Magazine::IsInitialized() const {
return true;
}
void Magazine::Swap(Magazine* other) {
if (other == this) return;
InternalSwap(other);
}
void Magazine::InternalSwap(Magazine* other) {
std::swap(capacity_, other->capacity_);
std::swap(contents_, other->contents_);
std::swap(ammotype_, other->ammotype_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Magazine::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[25];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Magazine
// int32 capacity = 1;
void Magazine::clear_capacity() {
capacity_ = 0;
}
::google::protobuf::int32 Magazine::capacity() const {
// @@protoc_insertion_point(field_get:Magazine.capacity)
return capacity_;
}
void Magazine::set_capacity(::google::protobuf::int32 value) {
capacity_ = value;
// @@protoc_insertion_point(field_set:Magazine.capacity)
}
// int32 contents = 2;
void Magazine::clear_contents() {
contents_ = 0;
}
::google::protobuf::int32 Magazine::contents() const {
// @@protoc_insertion_point(field_get:Magazine.contents)
return contents_;
}
void Magazine::set_contents(::google::protobuf::int32 value) {
contents_ = value;
// @@protoc_insertion_point(field_set:Magazine.contents)
}
// int32 ammoType = 3;
void Magazine::clear_ammotype() {
ammotype_ = 0;
}
::google::protobuf::int32 Magazine::ammotype() const {
// @@protoc_insertion_point(field_get:Magazine.ammoType)
return ammotype_;
}
void Magazine::set_ammotype(::google::protobuf::int32 value) {
ammotype_ = value;
// @@protoc_insertion_point(field_set:Magazine.ammoType)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BaseProjectile::kPrimaryMagazineFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BaseProjectile::BaseProjectile()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BaseProjectile)
}
BaseProjectile::BaseProjectile(const BaseProjectile& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_primarymagazine()) {
primarymagazine_ = new ::Magazine(*from.primarymagazine_);
} else {
primarymagazine_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:BaseProjectile)
}
void BaseProjectile::SharedCtor() {
primarymagazine_ = NULL;
_cached_size_ = 0;
}
BaseProjectile::~BaseProjectile() {
// @@protoc_insertion_point(destructor:BaseProjectile)
SharedDtor();
}
void BaseProjectile::SharedDtor() {
if (this != internal_default_instance()) {
delete primarymagazine_;
}
}
void BaseProjectile::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BaseProjectile::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[26].descriptor;
}
const BaseProjectile& BaseProjectile::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BaseProjectile* BaseProjectile::New(::google::protobuf::Arena* arena) const {
BaseProjectile* n = new BaseProjectile;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BaseProjectile::Clear() {
// @@protoc_insertion_point(message_clear_start:BaseProjectile)
if (GetArenaNoVirtual() == NULL && primarymagazine_ != NULL) {
delete primarymagazine_;
}
primarymagazine_ = NULL;
}
bool BaseProjectile::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BaseProjectile)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .Magazine primaryMagazine = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_primarymagazine()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BaseProjectile)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BaseProjectile)
return false;
#undef DO_
}
void BaseProjectile::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BaseProjectile)
// .Magazine primaryMagazine = 1;
if (this->has_primarymagazine()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->primarymagazine_, output);
}
// @@protoc_insertion_point(serialize_end:BaseProjectile)
}
::google::protobuf::uint8* BaseProjectile::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BaseProjectile)
// .Magazine primaryMagazine = 1;
if (this->has_primarymagazine()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->primarymagazine_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:BaseProjectile)
return target;
}
size_t BaseProjectile::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BaseProjectile)
size_t total_size = 0;
// .Magazine primaryMagazine = 1;
if (this->has_primarymagazine()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->primarymagazine_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BaseProjectile::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BaseProjectile)
GOOGLE_DCHECK_NE(&from, this);
const BaseProjectile* source =
::google::protobuf::internal::DynamicCastToGenerated<const BaseProjectile>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BaseProjectile)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BaseProjectile)
MergeFrom(*source);
}
}
void BaseProjectile::MergeFrom(const BaseProjectile& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BaseProjectile)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_primarymagazine()) {
mutable_primarymagazine()->::Magazine::MergeFrom(from.primarymagazine());
}
}
void BaseProjectile::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BaseProjectile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BaseProjectile::CopyFrom(const BaseProjectile& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BaseProjectile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BaseProjectile::IsInitialized() const {
return true;
}
void BaseProjectile::Swap(BaseProjectile* other) {
if (other == this) return;
InternalSwap(other);
}
void BaseProjectile::InternalSwap(BaseProjectile* other) {
std::swap(primarymagazine_, other->primarymagazine_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BaseProjectile::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[26];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BaseProjectile
// .Magazine primaryMagazine = 1;
bool BaseProjectile::has_primarymagazine() const {
return this != internal_default_instance() && primarymagazine_ != NULL;
}
void BaseProjectile::clear_primarymagazine() {
if (GetArenaNoVirtual() == NULL && primarymagazine_ != NULL) delete primarymagazine_;
primarymagazine_ = NULL;
}
const ::Magazine& BaseProjectile::primarymagazine() const {
// @@protoc_insertion_point(field_get:BaseProjectile.primaryMagazine)
return primarymagazine_ != NULL ? *primarymagazine_
: *::Magazine::internal_default_instance();
}
::Magazine* BaseProjectile::mutable_primarymagazine() {
if (primarymagazine_ == NULL) {
primarymagazine_ = new ::Magazine;
}
// @@protoc_insertion_point(field_mutable:BaseProjectile.primaryMagazine)
return primarymagazine_;
}
::Magazine* BaseProjectile::release_primarymagazine() {
// @@protoc_insertion_point(field_release:BaseProjectile.primaryMagazine)
::Magazine* temp = primarymagazine_;
primarymagazine_ = NULL;
return temp;
}
void BaseProjectile::set_allocated_primarymagazine(::Magazine* primarymagazine) {
delete primarymagazine_;
primarymagazine_ = primarymagazine;
if (primarymagazine) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BaseProjectile.primaryMagazine)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Sign::kImageidFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Sign::Sign()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Sign)
}
Sign::Sign(const Sign& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
imageid_ = from.imageid_;
// @@protoc_insertion_point(copy_constructor:Sign)
}
void Sign::SharedCtor() {
imageid_ = 0u;
_cached_size_ = 0;
}
Sign::~Sign() {
// @@protoc_insertion_point(destructor:Sign)
SharedDtor();
}
void Sign::SharedDtor() {
}
void Sign::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Sign::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[27].descriptor;
}
const Sign& Sign::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Sign* Sign::New(::google::protobuf::Arena* arena) const {
Sign* n = new Sign;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Sign::Clear() {
// @@protoc_insertion_point(message_clear_start:Sign)
imageid_ = 0u;
}
bool Sign::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Sign)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 imageid = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &imageid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Sign)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Sign)
return false;
#undef DO_
}
void Sign::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Sign)
// uint32 imageid = 3;
if (this->imageid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->imageid(), output);
}
// @@protoc_insertion_point(serialize_end:Sign)
}
::google::protobuf::uint8* Sign::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Sign)
// uint32 imageid = 3;
if (this->imageid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->imageid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Sign)
return target;
}
size_t Sign::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Sign)
size_t total_size = 0;
// uint32 imageid = 3;
if (this->imageid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->imageid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Sign::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Sign)
GOOGLE_DCHECK_NE(&from, this);
const Sign* source =
::google::protobuf::internal::DynamicCastToGenerated<const Sign>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Sign)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Sign)
MergeFrom(*source);
}
}
void Sign::MergeFrom(const Sign& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Sign)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.imageid() != 0) {
set_imageid(from.imageid());
}
}
void Sign::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Sign)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Sign::CopyFrom(const Sign& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Sign)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Sign::IsInitialized() const {
return true;
}
void Sign::Swap(Sign* other) {
if (other == this) return;
InternalSwap(other);
}
void Sign::InternalSwap(Sign* other) {
std::swap(imageid_, other->imageid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Sign::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[27];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Sign
// uint32 imageid = 3;
void Sign::clear_imageid() {
imageid_ = 0u;
}
::google::protobuf::uint32 Sign::imageid() const {
// @@protoc_insertion_point(field_get:Sign.imageid)
return imageid_;
}
void Sign::set_imageid(::google::protobuf::uint32 value) {
imageid_ = value;
// @@protoc_insertion_point(field_set:Sign.imageid)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int MapEntity::kFogImagesFieldNumber;
const int MapEntity::kPaintImagesFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
MapEntity::MapEntity()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:MapEntity)
}
MapEntity::MapEntity(const MapEntity& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
fogimages_(from.fogimages_),
paintimages_(from.paintimages_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:MapEntity)
}
void MapEntity::SharedCtor() {
_cached_size_ = 0;
}
MapEntity::~MapEntity() {
// @@protoc_insertion_point(destructor:MapEntity)
SharedDtor();
}
void MapEntity::SharedDtor() {
}
void MapEntity::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* MapEntity::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[28].descriptor;
}
const MapEntity& MapEntity::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
MapEntity* MapEntity::New(::google::protobuf::Arena* arena) const {
MapEntity* n = new MapEntity;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void MapEntity::Clear() {
// @@protoc_insertion_point(message_clear_start:MapEntity)
fogimages_.Clear();
paintimages_.Clear();
}
bool MapEntity::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:MapEntity)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated uint32 fogImages = 1;
case 1: {
if (tag == 10u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_fogimages())));
} else if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 10u, input, this->mutable_fogimages())));
} else {
goto handle_unusual;
}
break;
}
// repeated uint32 paintImages = 2;
case 2: {
if (tag == 18u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_paintimages())));
} else if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 18u, input, this->mutable_paintimages())));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:MapEntity)
return true;
failure:
// @@protoc_insertion_point(parse_failure:MapEntity)
return false;
#undef DO_
}
void MapEntity::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:MapEntity)
// repeated uint32 fogImages = 1;
if (this->fogimages_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_fogimages_cached_byte_size_);
}
for (int i = 0; i < this->fogimages_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
this->fogimages(i), output);
}
// repeated uint32 paintImages = 2;
if (this->paintimages_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_paintimages_cached_byte_size_);
}
for (int i = 0; i < this->paintimages_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
this->paintimages(i), output);
}
// @@protoc_insertion_point(serialize_end:MapEntity)
}
::google::protobuf::uint8* MapEntity::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:MapEntity)
// repeated uint32 fogImages = 1;
if (this->fogimages_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_fogimages_cached_byte_size_, target);
}
for (int i = 0; i < this->fogimages_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32NoTagToArray(this->fogimages(i), target);
}
// repeated uint32 paintImages = 2;
if (this->paintimages_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
2,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_paintimages_cached_byte_size_, target);
}
for (int i = 0; i < this->paintimages_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32NoTagToArray(this->paintimages(i), target);
}
// @@protoc_insertion_point(serialize_to_array_end:MapEntity)
return target;
}
size_t MapEntity::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:MapEntity)
size_t total_size = 0;
// repeated uint32 fogImages = 1;
{
size_t data_size = ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->fogimages_);
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_fogimages_cached_byte_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
total_size += data_size;
}
// repeated uint32 paintImages = 2;
{
size_t data_size = ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->paintimages_);
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_paintimages_cached_byte_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
total_size += data_size;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void MapEntity::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:MapEntity)
GOOGLE_DCHECK_NE(&from, this);
const MapEntity* source =
::google::protobuf::internal::DynamicCastToGenerated<const MapEntity>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:MapEntity)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:MapEntity)
MergeFrom(*source);
}
}
void MapEntity::MergeFrom(const MapEntity& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:MapEntity)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
fogimages_.MergeFrom(from.fogimages_);
paintimages_.MergeFrom(from.paintimages_);
}
void MapEntity::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:MapEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void MapEntity::CopyFrom(const MapEntity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:MapEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool MapEntity::IsInitialized() const {
return true;
}
void MapEntity::Swap(MapEntity* other) {
if (other == this) return;
InternalSwap(other);
}
void MapEntity::InternalSwap(MapEntity* other) {
fogimages_.UnsafeArenaSwap(&other->fogimages_);
paintimages_.UnsafeArenaSwap(&other->paintimages_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata MapEntity::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[28];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// MapEntity
// repeated uint32 fogImages = 1;
int MapEntity::fogimages_size() const {
return fogimages_.size();
}
void MapEntity::clear_fogimages() {
fogimages_.Clear();
}
::google::protobuf::uint32 MapEntity::fogimages(int index) const {
// @@protoc_insertion_point(field_get:MapEntity.fogImages)
return fogimages_.Get(index);
}
void MapEntity::set_fogimages(int index, ::google::protobuf::uint32 value) {
fogimages_.Set(index, value);
// @@protoc_insertion_point(field_set:MapEntity.fogImages)
}
void MapEntity::add_fogimages(::google::protobuf::uint32 value) {
fogimages_.Add(value);
// @@protoc_insertion_point(field_add:MapEntity.fogImages)
}
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
MapEntity::fogimages() const {
// @@protoc_insertion_point(field_list:MapEntity.fogImages)
return fogimages_;
}
::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
MapEntity::mutable_fogimages() {
// @@protoc_insertion_point(field_mutable_list:MapEntity.fogImages)
return &fogimages_;
}
// repeated uint32 paintImages = 2;
int MapEntity::paintimages_size() const {
return paintimages_.size();
}
void MapEntity::clear_paintimages() {
paintimages_.Clear();
}
::google::protobuf::uint32 MapEntity::paintimages(int index) const {
// @@protoc_insertion_point(field_get:MapEntity.paintImages)
return paintimages_.Get(index);
}
void MapEntity::set_paintimages(int index, ::google::protobuf::uint32 value) {
paintimages_.Set(index, value);
// @@protoc_insertion_point(field_set:MapEntity.paintImages)
}
void MapEntity::add_paintimages(::google::protobuf::uint32 value) {
paintimages_.Add(value);
// @@protoc_insertion_point(field_add:MapEntity.paintImages)
}
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
MapEntity::paintimages() const {
// @@protoc_insertion_point(field_list:MapEntity.paintImages)
return paintimages_;
}
::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
MapEntity::mutable_paintimages() {
// @@protoc_insertion_point(field_mutable_list:MapEntity.paintImages)
return &paintimages_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ResearchTable::kResearchTimeLeftFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ResearchTable::ResearchTable()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:ResearchTable)
}
ResearchTable::ResearchTable(const ResearchTable& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
researchtimeleft_ = from.researchtimeleft_;
// @@protoc_insertion_point(copy_constructor:ResearchTable)
}
void ResearchTable::SharedCtor() {
researchtimeleft_ = 0;
_cached_size_ = 0;
}
ResearchTable::~ResearchTable() {
// @@protoc_insertion_point(destructor:ResearchTable)
SharedDtor();
}
void ResearchTable::SharedDtor() {
}
void ResearchTable::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ResearchTable::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[29].descriptor;
}
const ResearchTable& ResearchTable::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
ResearchTable* ResearchTable::New(::google::protobuf::Arena* arena) const {
ResearchTable* n = new ResearchTable;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void ResearchTable::Clear() {
// @@protoc_insertion_point(message_clear_start:ResearchTable)
researchtimeleft_ = 0;
}
bool ResearchTable::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:ResearchTable)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float researchTimeLeft = 1;
case 1: {
if (tag == 13u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &researchtimeleft_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:ResearchTable)
return true;
failure:
// @@protoc_insertion_point(parse_failure:ResearchTable)
return false;
#undef DO_
}
void ResearchTable::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:ResearchTable)
// float researchTimeLeft = 1;
if (this->researchtimeleft() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->researchtimeleft(), output);
}
// @@protoc_insertion_point(serialize_end:ResearchTable)
}
::google::protobuf::uint8* ResearchTable::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:ResearchTable)
// float researchTimeLeft = 1;
if (this->researchtimeleft() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->researchtimeleft(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:ResearchTable)
return target;
}
size_t ResearchTable::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ResearchTable)
size_t total_size = 0;
// float researchTimeLeft = 1;
if (this->researchtimeleft() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ResearchTable::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ResearchTable)
GOOGLE_DCHECK_NE(&from, this);
const ResearchTable* source =
::google::protobuf::internal::DynamicCastToGenerated<const ResearchTable>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ResearchTable)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:ResearchTable)
MergeFrom(*source);
}
}
void ResearchTable::MergeFrom(const ResearchTable& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ResearchTable)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.researchtimeleft() != 0) {
set_researchtimeleft(from.researchtimeleft());
}
}
void ResearchTable::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ResearchTable)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ResearchTable::CopyFrom(const ResearchTable& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ResearchTable)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ResearchTable::IsInitialized() const {
return true;
}
void ResearchTable::Swap(ResearchTable* other) {
if (other == this) return;
InternalSwap(other);
}
void ResearchTable::InternalSwap(ResearchTable* other) {
std::swap(researchtimeleft_, other->researchtimeleft_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata ResearchTable::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[29];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// ResearchTable
// float researchTimeLeft = 1;
void ResearchTable::clear_researchtimeleft() {
researchtimeleft_ = 0;
}
float ResearchTable::researchtimeleft() const {
// @@protoc_insertion_point(field_get:ResearchTable.researchTimeLeft)
return researchtimeleft_;
}
void ResearchTable::set_researchtimeleft(float value) {
researchtimeleft_ = value;
// @@protoc_insertion_point(field_set:ResearchTable.researchTimeLeft)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int DudExplosive::kFuseTimeLeftFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
DudExplosive::DudExplosive()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:DudExplosive)
}
DudExplosive::DudExplosive(const DudExplosive& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
fusetimeleft_ = from.fusetimeleft_;
// @@protoc_insertion_point(copy_constructor:DudExplosive)
}
void DudExplosive::SharedCtor() {
fusetimeleft_ = 0;
_cached_size_ = 0;
}
DudExplosive::~DudExplosive() {
// @@protoc_insertion_point(destructor:DudExplosive)
SharedDtor();
}
void DudExplosive::SharedDtor() {
}
void DudExplosive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DudExplosive::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[30].descriptor;
}
const DudExplosive& DudExplosive::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
DudExplosive* DudExplosive::New(::google::protobuf::Arena* arena) const {
DudExplosive* n = new DudExplosive;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void DudExplosive::Clear() {
// @@protoc_insertion_point(message_clear_start:DudExplosive)
fusetimeleft_ = 0;
}
bool DudExplosive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:DudExplosive)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float fuseTimeLeft = 1;
case 1: {
if (tag == 13u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &fusetimeleft_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:DudExplosive)
return true;
failure:
// @@protoc_insertion_point(parse_failure:DudExplosive)
return false;
#undef DO_
}
void DudExplosive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:DudExplosive)
// float fuseTimeLeft = 1;
if (this->fusetimeleft() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->fusetimeleft(), output);
}
// @@protoc_insertion_point(serialize_end:DudExplosive)
}
::google::protobuf::uint8* DudExplosive::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:DudExplosive)
// float fuseTimeLeft = 1;
if (this->fusetimeleft() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->fusetimeleft(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:DudExplosive)
return target;
}
size_t DudExplosive::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:DudExplosive)
size_t total_size = 0;
// float fuseTimeLeft = 1;
if (this->fusetimeleft() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DudExplosive::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:DudExplosive)
GOOGLE_DCHECK_NE(&from, this);
const DudExplosive* source =
::google::protobuf::internal::DynamicCastToGenerated<const DudExplosive>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:DudExplosive)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:DudExplosive)
MergeFrom(*source);
}
}
void DudExplosive::MergeFrom(const DudExplosive& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:DudExplosive)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.fusetimeleft() != 0) {
set_fusetimeleft(from.fusetimeleft());
}
}
void DudExplosive::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:DudExplosive)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DudExplosive::CopyFrom(const DudExplosive& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:DudExplosive)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DudExplosive::IsInitialized() const {
return true;
}
void DudExplosive::Swap(DudExplosive* other) {
if (other == this) return;
InternalSwap(other);
}
void DudExplosive::InternalSwap(DudExplosive* other) {
std::swap(fusetimeleft_, other->fusetimeleft_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata DudExplosive::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[30];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// DudExplosive
// float fuseTimeLeft = 1;
void DudExplosive::clear_fusetimeleft() {
fusetimeleft_ = 0;
}
float DudExplosive::fusetimeleft() const {
// @@protoc_insertion_point(field_get:DudExplosive.fuseTimeLeft)
return fusetimeleft_;
}
void DudExplosive::set_fusetimeleft(float value) {
fusetimeleft_ = value;
// @@protoc_insertion_point(field_set:DudExplosive.fuseTimeLeft)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ResourceExtractor::kFuelContentsFieldNumber;
const int ResourceExtractor::kOutputContentsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ResourceExtractor::ResourceExtractor()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:ResourceExtractor)
}
ResourceExtractor::ResourceExtractor(const ResourceExtractor& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_fuelcontents()) {
fuelcontents_ = new ::ItemContainer(*from.fuelcontents_);
} else {
fuelcontents_ = NULL;
}
if (from.has_outputcontents()) {
outputcontents_ = new ::ItemContainer(*from.outputcontents_);
} else {
outputcontents_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:ResourceExtractor)
}
void ResourceExtractor::SharedCtor() {
::memset(&fuelcontents_, 0, reinterpret_cast<char*>(&outputcontents_) -
reinterpret_cast<char*>(&fuelcontents_) + sizeof(outputcontents_));
_cached_size_ = 0;
}
ResourceExtractor::~ResourceExtractor() {
// @@protoc_insertion_point(destructor:ResourceExtractor)
SharedDtor();
}
void ResourceExtractor::SharedDtor() {
if (this != internal_default_instance()) {
delete fuelcontents_;
}
if (this != internal_default_instance()) {
delete outputcontents_;
}
}
void ResourceExtractor::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ResourceExtractor::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[31].descriptor;
}
const ResourceExtractor& ResourceExtractor::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
ResourceExtractor* ResourceExtractor::New(::google::protobuf::Arena* arena) const {
ResourceExtractor* n = new ResourceExtractor;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void ResourceExtractor::Clear() {
// @@protoc_insertion_point(message_clear_start:ResourceExtractor)
if (GetArenaNoVirtual() == NULL && fuelcontents_ != NULL) {
delete fuelcontents_;
}
fuelcontents_ = NULL;
if (GetArenaNoVirtual() == NULL && outputcontents_ != NULL) {
delete outputcontents_;
}
outputcontents_ = NULL;
}
bool ResourceExtractor::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:ResourceExtractor)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .ItemContainer fuelContents = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_fuelcontents()));
} else {
goto handle_unusual;
}
break;
}
// .ItemContainer outputContents = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_outputcontents()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:ResourceExtractor)
return true;
failure:
// @@protoc_insertion_point(parse_failure:ResourceExtractor)
return false;
#undef DO_
}
void ResourceExtractor::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:ResourceExtractor)
// .ItemContainer fuelContents = 1;
if (this->has_fuelcontents()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->fuelcontents_, output);
}
// .ItemContainer outputContents = 2;
if (this->has_outputcontents()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->outputcontents_, output);
}
// @@protoc_insertion_point(serialize_end:ResourceExtractor)
}
::google::protobuf::uint8* ResourceExtractor::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:ResourceExtractor)
// .ItemContainer fuelContents = 1;
if (this->has_fuelcontents()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->fuelcontents_, false, target);
}
// .ItemContainer outputContents = 2;
if (this->has_outputcontents()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->outputcontents_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:ResourceExtractor)
return target;
}
size_t ResourceExtractor::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ResourceExtractor)
size_t total_size = 0;
// .ItemContainer fuelContents = 1;
if (this->has_fuelcontents()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->fuelcontents_);
}
// .ItemContainer outputContents = 2;
if (this->has_outputcontents()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->outputcontents_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ResourceExtractor::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ResourceExtractor)
GOOGLE_DCHECK_NE(&from, this);
const ResourceExtractor* source =
::google::protobuf::internal::DynamicCastToGenerated<const ResourceExtractor>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ResourceExtractor)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:ResourceExtractor)
MergeFrom(*source);
}
}
void ResourceExtractor::MergeFrom(const ResourceExtractor& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ResourceExtractor)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_fuelcontents()) {
mutable_fuelcontents()->::ItemContainer::MergeFrom(from.fuelcontents());
}
if (from.has_outputcontents()) {
mutable_outputcontents()->::ItemContainer::MergeFrom(from.outputcontents());
}
}
void ResourceExtractor::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ResourceExtractor)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ResourceExtractor::CopyFrom(const ResourceExtractor& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ResourceExtractor)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ResourceExtractor::IsInitialized() const {
return true;
}
void ResourceExtractor::Swap(ResourceExtractor* other) {
if (other == this) return;
InternalSwap(other);
}
void ResourceExtractor::InternalSwap(ResourceExtractor* other) {
std::swap(fuelcontents_, other->fuelcontents_);
std::swap(outputcontents_, other->outputcontents_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata ResourceExtractor::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[31];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// ResourceExtractor
// .ItemContainer fuelContents = 1;
bool ResourceExtractor::has_fuelcontents() const {
return this != internal_default_instance() && fuelcontents_ != NULL;
}
void ResourceExtractor::clear_fuelcontents() {
if (GetArenaNoVirtual() == NULL && fuelcontents_ != NULL) delete fuelcontents_;
fuelcontents_ = NULL;
}
const ::ItemContainer& ResourceExtractor::fuelcontents() const {
// @@protoc_insertion_point(field_get:ResourceExtractor.fuelContents)
return fuelcontents_ != NULL ? *fuelcontents_
: *::ItemContainer::internal_default_instance();
}
::ItemContainer* ResourceExtractor::mutable_fuelcontents() {
if (fuelcontents_ == NULL) {
fuelcontents_ = new ::ItemContainer;
}
// @@protoc_insertion_point(field_mutable:ResourceExtractor.fuelContents)
return fuelcontents_;
}
::ItemContainer* ResourceExtractor::release_fuelcontents() {
// @@protoc_insertion_point(field_release:ResourceExtractor.fuelContents)
::ItemContainer* temp = fuelcontents_;
fuelcontents_ = NULL;
return temp;
}
void ResourceExtractor::set_allocated_fuelcontents(::ItemContainer* fuelcontents) {
delete fuelcontents_;
fuelcontents_ = fuelcontents;
if (fuelcontents) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:ResourceExtractor.fuelContents)
}
// .ItemContainer outputContents = 2;
bool ResourceExtractor::has_outputcontents() const {
return this != internal_default_instance() && outputcontents_ != NULL;
}
void ResourceExtractor::clear_outputcontents() {
if (GetArenaNoVirtual() == NULL && outputcontents_ != NULL) delete outputcontents_;
outputcontents_ = NULL;
}
const ::ItemContainer& ResourceExtractor::outputcontents() const {
// @@protoc_insertion_point(field_get:ResourceExtractor.outputContents)
return outputcontents_ != NULL ? *outputcontents_
: *::ItemContainer::internal_default_instance();
}
::ItemContainer* ResourceExtractor::mutable_outputcontents() {
if (outputcontents_ == NULL) {
outputcontents_ = new ::ItemContainer;
}
// @@protoc_insertion_point(field_mutable:ResourceExtractor.outputContents)
return outputcontents_;
}
::ItemContainer* ResourceExtractor::release_outputcontents() {
// @@protoc_insertion_point(field_release:ResourceExtractor.outputContents)
::ItemContainer* temp = outputcontents_;
outputcontents_ = NULL;
return temp;
}
void ResourceExtractor::set_allocated_outputcontents(::ItemContainer* outputcontents) {
delete outputcontents_;
outputcontents_ = outputcontents;
if (outputcontents) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:ResourceExtractor.outputContents)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int MiningQuarry::kExtractorFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
MiningQuarry::MiningQuarry()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:MiningQuarry)
}
MiningQuarry::MiningQuarry(const MiningQuarry& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_extractor()) {
extractor_ = new ::ResourceExtractor(*from.extractor_);
} else {
extractor_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:MiningQuarry)
}
void MiningQuarry::SharedCtor() {
extractor_ = NULL;
_cached_size_ = 0;
}
MiningQuarry::~MiningQuarry() {
// @@protoc_insertion_point(destructor:MiningQuarry)
SharedDtor();
}
void MiningQuarry::SharedDtor() {
if (this != internal_default_instance()) {
delete extractor_;
}
}
void MiningQuarry::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* MiningQuarry::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[32].descriptor;
}
const MiningQuarry& MiningQuarry::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
MiningQuarry* MiningQuarry::New(::google::protobuf::Arena* arena) const {
MiningQuarry* n = new MiningQuarry;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void MiningQuarry::Clear() {
// @@protoc_insertion_point(message_clear_start:MiningQuarry)
if (GetArenaNoVirtual() == NULL && extractor_ != NULL) {
delete extractor_;
}
extractor_ = NULL;
}
bool MiningQuarry::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:MiningQuarry)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .ResourceExtractor extractor = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_extractor()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:MiningQuarry)
return true;
failure:
// @@protoc_insertion_point(parse_failure:MiningQuarry)
return false;
#undef DO_
}
void MiningQuarry::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:MiningQuarry)
// .ResourceExtractor extractor = 1;
if (this->has_extractor()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->extractor_, output);
}
// @@protoc_insertion_point(serialize_end:MiningQuarry)
}
::google::protobuf::uint8* MiningQuarry::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:MiningQuarry)
// .ResourceExtractor extractor = 1;
if (this->has_extractor()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->extractor_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:MiningQuarry)
return target;
}
size_t MiningQuarry::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:MiningQuarry)
size_t total_size = 0;
// .ResourceExtractor extractor = 1;
if (this->has_extractor()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->extractor_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void MiningQuarry::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:MiningQuarry)
GOOGLE_DCHECK_NE(&from, this);
const MiningQuarry* source =
::google::protobuf::internal::DynamicCastToGenerated<const MiningQuarry>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:MiningQuarry)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:MiningQuarry)
MergeFrom(*source);
}
}
void MiningQuarry::MergeFrom(const MiningQuarry& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:MiningQuarry)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_extractor()) {
mutable_extractor()->::ResourceExtractor::MergeFrom(from.extractor());
}
}
void MiningQuarry::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:MiningQuarry)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void MiningQuarry::CopyFrom(const MiningQuarry& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:MiningQuarry)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool MiningQuarry::IsInitialized() const {
return true;
}
void MiningQuarry::Swap(MiningQuarry* other) {
if (other == this) return;
InternalSwap(other);
}
void MiningQuarry::InternalSwap(MiningQuarry* other) {
std::swap(extractor_, other->extractor_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata MiningQuarry::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[32];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// MiningQuarry
// .ResourceExtractor extractor = 1;
bool MiningQuarry::has_extractor() const {
return this != internal_default_instance() && extractor_ != NULL;
}
void MiningQuarry::clear_extractor() {
if (GetArenaNoVirtual() == NULL && extractor_ != NULL) delete extractor_;
extractor_ = NULL;
}
const ::ResourceExtractor& MiningQuarry::extractor() const {
// @@protoc_insertion_point(field_get:MiningQuarry.extractor)
return extractor_ != NULL ? *extractor_
: *::ResourceExtractor::internal_default_instance();
}
::ResourceExtractor* MiningQuarry::mutable_extractor() {
if (extractor_ == NULL) {
extractor_ = new ::ResourceExtractor;
}
// @@protoc_insertion_point(field_mutable:MiningQuarry.extractor)
return extractor_;
}
::ResourceExtractor* MiningQuarry::release_extractor() {
// @@protoc_insertion_point(field_release:MiningQuarry.extractor)
::ResourceExtractor* temp = extractor_;
extractor_ = NULL;
return temp;
}
void MiningQuarry::set_allocated_extractor(::ResourceExtractor* extractor) {
delete extractor_;
extractor_ = extractor;
if (extractor) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:MiningQuarry.extractor)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PlantEntity::kStateFieldNumber;
const int PlantEntity::kAgeFieldNumber;
const int PlantEntity::kGeneticsFieldNumber;
const int PlantEntity::kWaterFieldNumber;
const int PlantEntity::kHealthyFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PlantEntity::PlantEntity()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:PlantEntity)
}
PlantEntity::PlantEntity(const PlantEntity& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&state_, &from.state_,
reinterpret_cast<char*>(&healthy_) -
reinterpret_cast<char*>(&state_) + sizeof(healthy_));
// @@protoc_insertion_point(copy_constructor:PlantEntity)
}
void PlantEntity::SharedCtor() {
::memset(&state_, 0, reinterpret_cast<char*>(&healthy_) -
reinterpret_cast<char*>(&state_) + sizeof(healthy_));
_cached_size_ = 0;
}
PlantEntity::~PlantEntity() {
// @@protoc_insertion_point(destructor:PlantEntity)
SharedDtor();
}
void PlantEntity::SharedDtor() {
}
void PlantEntity::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PlantEntity::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[33].descriptor;
}
const PlantEntity& PlantEntity::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
PlantEntity* PlantEntity::New(::google::protobuf::Arena* arena) const {
PlantEntity* n = new PlantEntity;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void PlantEntity::Clear() {
// @@protoc_insertion_point(message_clear_start:PlantEntity)
::memset(&state_, 0, reinterpret_cast<char*>(&healthy_) -
reinterpret_cast<char*>(&state_) + sizeof(healthy_));
}
bool PlantEntity::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:PlantEntity)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 state = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &state_)));
} else {
goto handle_unusual;
}
break;
}
// float age = 2;
case 2: {
if (tag == 21u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &age_)));
} else {
goto handle_unusual;
}
break;
}
// int32 genetics = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &genetics_)));
} else {
goto handle_unusual;
}
break;
}
// int32 water = 4;
case 4: {
if (tag == 32u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &water_)));
} else {
goto handle_unusual;
}
break;
}
// float healthy = 5;
case 5: {
if (tag == 45u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &healthy_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:PlantEntity)
return true;
failure:
// @@protoc_insertion_point(parse_failure:PlantEntity)
return false;
#undef DO_
}
void PlantEntity::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:PlantEntity)
// int32 state = 1;
if (this->state() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->state(), output);
}
// float age = 2;
if (this->age() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->age(), output);
}
// int32 genetics = 3;
if (this->genetics() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->genetics(), output);
}
// int32 water = 4;
if (this->water() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->water(), output);
}
// float healthy = 5;
if (this->healthy() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->healthy(), output);
}
// @@protoc_insertion_point(serialize_end:PlantEntity)
}
::google::protobuf::uint8* PlantEntity::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:PlantEntity)
// int32 state = 1;
if (this->state() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->state(), target);
}
// float age = 2;
if (this->age() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->age(), target);
}
// int32 genetics = 3;
if (this->genetics() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->genetics(), target);
}
// int32 water = 4;
if (this->water() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->water(), target);
}
// float healthy = 5;
if (this->healthy() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->healthy(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:PlantEntity)
return target;
}
size_t PlantEntity::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PlantEntity)
size_t total_size = 0;
// int32 state = 1;
if (this->state() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->state());
}
// float age = 2;
if (this->age() != 0) {
total_size += 1 + 4;
}
// int32 genetics = 3;
if (this->genetics() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->genetics());
}
// int32 water = 4;
if (this->water() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->water());
}
// float healthy = 5;
if (this->healthy() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PlantEntity::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:PlantEntity)
GOOGLE_DCHECK_NE(&from, this);
const PlantEntity* source =
::google::protobuf::internal::DynamicCastToGenerated<const PlantEntity>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PlantEntity)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:PlantEntity)
MergeFrom(*source);
}
}
void PlantEntity::MergeFrom(const PlantEntity& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:PlantEntity)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.state() != 0) {
set_state(from.state());
}
if (from.age() != 0) {
set_age(from.age());
}
if (from.genetics() != 0) {
set_genetics(from.genetics());
}
if (from.water() != 0) {
set_water(from.water());
}
if (from.healthy() != 0) {
set_healthy(from.healthy());
}
}
void PlantEntity::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:PlantEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PlantEntity::CopyFrom(const PlantEntity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PlantEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PlantEntity::IsInitialized() const {
return true;
}
void PlantEntity::Swap(PlantEntity* other) {
if (other == this) return;
InternalSwap(other);
}
void PlantEntity::InternalSwap(PlantEntity* other) {
std::swap(state_, other->state_);
std::swap(age_, other->age_);
std::swap(genetics_, other->genetics_);
std::swap(water_, other->water_);
std::swap(healthy_, other->healthy_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata PlantEntity::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[33];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// PlantEntity
// int32 state = 1;
void PlantEntity::clear_state() {
state_ = 0;
}
::google::protobuf::int32 PlantEntity::state() const {
// @@protoc_insertion_point(field_get:PlantEntity.state)
return state_;
}
void PlantEntity::set_state(::google::protobuf::int32 value) {
state_ = value;
// @@protoc_insertion_point(field_set:PlantEntity.state)
}
// float age = 2;
void PlantEntity::clear_age() {
age_ = 0;
}
float PlantEntity::age() const {
// @@protoc_insertion_point(field_get:PlantEntity.age)
return age_;
}
void PlantEntity::set_age(float value) {
age_ = value;
// @@protoc_insertion_point(field_set:PlantEntity.age)
}
// int32 genetics = 3;
void PlantEntity::clear_genetics() {
genetics_ = 0;
}
::google::protobuf::int32 PlantEntity::genetics() const {
// @@protoc_insertion_point(field_get:PlantEntity.genetics)
return genetics_;
}
void PlantEntity::set_genetics(::google::protobuf::int32 value) {
genetics_ = value;
// @@protoc_insertion_point(field_set:PlantEntity.genetics)
}
// int32 water = 4;
void PlantEntity::clear_water() {
water_ = 0;
}
::google::protobuf::int32 PlantEntity::water() const {
// @@protoc_insertion_point(field_get:PlantEntity.water)
return water_;
}
void PlantEntity::set_water(::google::protobuf::int32 value) {
water_ = value;
// @@protoc_insertion_point(field_set:PlantEntity.water)
}
// float healthy = 5;
void PlantEntity::clear_healthy() {
healthy_ = 0;
}
float PlantEntity::healthy() const {
// @@protoc_insertion_point(field_get:PlantEntity.healthy)
return healthy_;
}
void PlantEntity::set_healthy(float value) {
healthy_ = value;
// @@protoc_insertion_point(field_set:PlantEntity.healthy)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Landmine::kTriggeredIDFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Landmine::Landmine()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Landmine)
}
Landmine::Landmine(const Landmine& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
triggeredid_ = from.triggeredid_;
// @@protoc_insertion_point(copy_constructor:Landmine)
}
void Landmine::SharedCtor() {
triggeredid_ = GOOGLE_ULONGLONG(0);
_cached_size_ = 0;
}
Landmine::~Landmine() {
// @@protoc_insertion_point(destructor:Landmine)
SharedDtor();
}
void Landmine::SharedDtor() {
}
void Landmine::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Landmine::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[34].descriptor;
}
const Landmine& Landmine::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Landmine* Landmine::New(::google::protobuf::Arena* arena) const {
Landmine* n = new Landmine;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Landmine::Clear() {
// @@protoc_insertion_point(message_clear_start:Landmine)
triggeredid_ = GOOGLE_ULONGLONG(0);
}
bool Landmine::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Landmine)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint64 triggeredID = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &triggeredid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Landmine)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Landmine)
return false;
#undef DO_
}
void Landmine::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Landmine)
// uint64 triggeredID = 1;
if (this->triggeredid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->triggeredid(), output);
}
// @@protoc_insertion_point(serialize_end:Landmine)
}
::google::protobuf::uint8* Landmine::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Landmine)
// uint64 triggeredID = 1;
if (this->triggeredid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->triggeredid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Landmine)
return target;
}
size_t Landmine::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Landmine)
size_t total_size = 0;
// uint64 triggeredID = 1;
if (this->triggeredid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->triggeredid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Landmine::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Landmine)
GOOGLE_DCHECK_NE(&from, this);
const Landmine* source =
::google::protobuf::internal::DynamicCastToGenerated<const Landmine>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Landmine)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Landmine)
MergeFrom(*source);
}
}
void Landmine::MergeFrom(const Landmine& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Landmine)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.triggeredid() != 0) {
set_triggeredid(from.triggeredid());
}
}
void Landmine::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Landmine)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Landmine::CopyFrom(const Landmine& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Landmine)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Landmine::IsInitialized() const {
return true;
}
void Landmine::Swap(Landmine* other) {
if (other == this) return;
InternalSwap(other);
}
void Landmine::InternalSwap(Landmine* other) {
std::swap(triggeredid_, other->triggeredid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Landmine::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[34];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Landmine
// uint64 triggeredID = 1;
void Landmine::clear_triggeredid() {
triggeredid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 Landmine::triggeredid() const {
// @@protoc_insertion_point(field_get:Landmine.triggeredID)
return triggeredid_;
}
void Landmine::set_triggeredid(::google::protobuf::uint64 value) {
triggeredid_ = value;
// @@protoc_insertion_point(field_set:Landmine.triggeredID)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Helicopter::kTiltRotFieldNumber;
const int Helicopter::kLeftGunFieldNumber;
const int Helicopter::kRightGunFieldNumber;
const int Helicopter::kSpotlightVecFieldNumber;
const int Helicopter::kWeakspothealthsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Helicopter::Helicopter()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Helicopter)
}
Helicopter::Helicopter(const Helicopter& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
weakspothealths_(from.weakspothealths_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_tiltrot()) {
tiltrot_ = new ::Vector3Serialized(*from.tiltrot_);
} else {
tiltrot_ = NULL;
}
if (from.has_leftgun()) {
leftgun_ = new ::Vector3Serialized(*from.leftgun_);
} else {
leftgun_ = NULL;
}
if (from.has_rightgun()) {
rightgun_ = new ::Vector3Serialized(*from.rightgun_);
} else {
rightgun_ = NULL;
}
if (from.has_spotlightvec()) {
spotlightvec_ = new ::Vector3Serialized(*from.spotlightvec_);
} else {
spotlightvec_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:Helicopter)
}
void Helicopter::SharedCtor() {
::memset(&tiltrot_, 0, reinterpret_cast<char*>(&spotlightvec_) -
reinterpret_cast<char*>(&tiltrot_) + sizeof(spotlightvec_));
_cached_size_ = 0;
}
Helicopter::~Helicopter() {
// @@protoc_insertion_point(destructor:Helicopter)
SharedDtor();
}
void Helicopter::SharedDtor() {
if (this != internal_default_instance()) {
delete tiltrot_;
}
if (this != internal_default_instance()) {
delete leftgun_;
}
if (this != internal_default_instance()) {
delete rightgun_;
}
if (this != internal_default_instance()) {
delete spotlightvec_;
}
}
void Helicopter::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Helicopter::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[35].descriptor;
}
const Helicopter& Helicopter::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Helicopter* Helicopter::New(::google::protobuf::Arena* arena) const {
Helicopter* n = new Helicopter;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Helicopter::Clear() {
// @@protoc_insertion_point(message_clear_start:Helicopter)
weakspothealths_.Clear();
if (GetArenaNoVirtual() == NULL && tiltrot_ != NULL) {
delete tiltrot_;
}
tiltrot_ = NULL;
if (GetArenaNoVirtual() == NULL && leftgun_ != NULL) {
delete leftgun_;
}
leftgun_ = NULL;
if (GetArenaNoVirtual() == NULL && rightgun_ != NULL) {
delete rightgun_;
}
rightgun_ = NULL;
if (GetArenaNoVirtual() == NULL && spotlightvec_ != NULL) {
delete spotlightvec_;
}
spotlightvec_ = NULL;
}
bool Helicopter::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Helicopter)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .Vector3Serialized tiltRot = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_tiltrot()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized leftGun = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_leftgun()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized rightGun = 3;
case 3: {
if (tag == 26u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_rightgun()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized spotlightVec = 4;
case 4: {
if (tag == 34u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_spotlightvec()));
} else {
goto handle_unusual;
}
break;
}
// repeated float weakspothealths = 5;
case 5: {
if (tag == 42u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, this->mutable_weakspothealths())));
} else if (tag == 45u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1, 42u, input, this->mutable_weakspothealths())));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Helicopter)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Helicopter)
return false;
#undef DO_
}
void Helicopter::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Helicopter)
// .Vector3Serialized tiltRot = 1;
if (this->has_tiltrot()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->tiltrot_, output);
}
// .Vector3Serialized leftGun = 2;
if (this->has_leftgun()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->leftgun_, output);
}
// .Vector3Serialized rightGun = 3;
if (this->has_rightgun()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, *this->rightgun_, output);
}
// .Vector3Serialized spotlightVec = 4;
if (this->has_spotlightvec()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, *this->spotlightvec_, output);
}
// repeated float weakspothealths = 5;
if (this->weakspothealths_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_weakspothealths_cached_byte_size_);
::google::protobuf::internal::WireFormatLite::WriteFloatArray(
this->weakspothealths().data(), this->weakspothealths_size(), output);
}
// @@protoc_insertion_point(serialize_end:Helicopter)
}
::google::protobuf::uint8* Helicopter::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Helicopter)
// .Vector3Serialized tiltRot = 1;
if (this->has_tiltrot()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->tiltrot_, false, target);
}
// .Vector3Serialized leftGun = 2;
if (this->has_leftgun()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->leftgun_, false, target);
}
// .Vector3Serialized rightGun = 3;
if (this->has_rightgun()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
3, *this->rightgun_, false, target);
}
// .Vector3Serialized spotlightVec = 4;
if (this->has_spotlightvec()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
4, *this->spotlightvec_, false, target);
}
// repeated float weakspothealths = 5;
if (this->weakspothealths_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
5,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_weakspothealths_cached_byte_size_, target);
}
for (int i = 0; i < this->weakspothealths_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteFloatNoTagToArray(this->weakspothealths(i), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Helicopter)
return target;
}
size_t Helicopter::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Helicopter)
size_t total_size = 0;
// repeated float weakspothealths = 5;
{
unsigned int count = this->weakspothealths_size();
size_t data_size = 4UL * count;
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_weakspothealths_cached_byte_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
total_size += data_size;
}
// .Vector3Serialized tiltRot = 1;
if (this->has_tiltrot()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->tiltrot_);
}
// .Vector3Serialized leftGun = 2;
if (this->has_leftgun()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->leftgun_);
}
// .Vector3Serialized rightGun = 3;
if (this->has_rightgun()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->rightgun_);
}
// .Vector3Serialized spotlightVec = 4;
if (this->has_spotlightvec()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->spotlightvec_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Helicopter::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Helicopter)
GOOGLE_DCHECK_NE(&from, this);
const Helicopter* source =
::google::protobuf::internal::DynamicCastToGenerated<const Helicopter>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Helicopter)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Helicopter)
MergeFrom(*source);
}
}
void Helicopter::MergeFrom(const Helicopter& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Helicopter)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
weakspothealths_.MergeFrom(from.weakspothealths_);
if (from.has_tiltrot()) {
mutable_tiltrot()->::Vector3Serialized::MergeFrom(from.tiltrot());
}
if (from.has_leftgun()) {
mutable_leftgun()->::Vector3Serialized::MergeFrom(from.leftgun());
}
if (from.has_rightgun()) {
mutable_rightgun()->::Vector3Serialized::MergeFrom(from.rightgun());
}
if (from.has_spotlightvec()) {
mutable_spotlightvec()->::Vector3Serialized::MergeFrom(from.spotlightvec());
}
}
void Helicopter::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Helicopter)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Helicopter::CopyFrom(const Helicopter& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Helicopter)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Helicopter::IsInitialized() const {
return true;
}
void Helicopter::Swap(Helicopter* other) {
if (other == this) return;
InternalSwap(other);
}
void Helicopter::InternalSwap(Helicopter* other) {
weakspothealths_.UnsafeArenaSwap(&other->weakspothealths_);
std::swap(tiltrot_, other->tiltrot_);
std::swap(leftgun_, other->leftgun_);
std::swap(rightgun_, other->rightgun_);
std::swap(spotlightvec_, other->spotlightvec_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Helicopter::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[35];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Helicopter
// .Vector3Serialized tiltRot = 1;
bool Helicopter::has_tiltrot() const {
return this != internal_default_instance() && tiltrot_ != NULL;
}
void Helicopter::clear_tiltrot() {
if (GetArenaNoVirtual() == NULL && tiltrot_ != NULL) delete tiltrot_;
tiltrot_ = NULL;
}
const ::Vector3Serialized& Helicopter::tiltrot() const {
// @@protoc_insertion_point(field_get:Helicopter.tiltRot)
return tiltrot_ != NULL ? *tiltrot_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* Helicopter::mutable_tiltrot() {
if (tiltrot_ == NULL) {
tiltrot_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:Helicopter.tiltRot)
return tiltrot_;
}
::Vector3Serialized* Helicopter::release_tiltrot() {
// @@protoc_insertion_point(field_release:Helicopter.tiltRot)
::Vector3Serialized* temp = tiltrot_;
tiltrot_ = NULL;
return temp;
}
void Helicopter::set_allocated_tiltrot(::Vector3Serialized* tiltrot) {
delete tiltrot_;
tiltrot_ = tiltrot;
if (tiltrot) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Helicopter.tiltRot)
}
// .Vector3Serialized leftGun = 2;
bool Helicopter::has_leftgun() const {
return this != internal_default_instance() && leftgun_ != NULL;
}
void Helicopter::clear_leftgun() {
if (GetArenaNoVirtual() == NULL && leftgun_ != NULL) delete leftgun_;
leftgun_ = NULL;
}
const ::Vector3Serialized& Helicopter::leftgun() const {
// @@protoc_insertion_point(field_get:Helicopter.leftGun)
return leftgun_ != NULL ? *leftgun_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* Helicopter::mutable_leftgun() {
if (leftgun_ == NULL) {
leftgun_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:Helicopter.leftGun)
return leftgun_;
}
::Vector3Serialized* Helicopter::release_leftgun() {
// @@protoc_insertion_point(field_release:Helicopter.leftGun)
::Vector3Serialized* temp = leftgun_;
leftgun_ = NULL;
return temp;
}
void Helicopter::set_allocated_leftgun(::Vector3Serialized* leftgun) {
delete leftgun_;
leftgun_ = leftgun;
if (leftgun) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Helicopter.leftGun)
}
// .Vector3Serialized rightGun = 3;
bool Helicopter::has_rightgun() const {
return this != internal_default_instance() && rightgun_ != NULL;
}
void Helicopter::clear_rightgun() {
if (GetArenaNoVirtual() == NULL && rightgun_ != NULL) delete rightgun_;
rightgun_ = NULL;
}
const ::Vector3Serialized& Helicopter::rightgun() const {
// @@protoc_insertion_point(field_get:Helicopter.rightGun)
return rightgun_ != NULL ? *rightgun_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* Helicopter::mutable_rightgun() {
if (rightgun_ == NULL) {
rightgun_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:Helicopter.rightGun)
return rightgun_;
}
::Vector3Serialized* Helicopter::release_rightgun() {
// @@protoc_insertion_point(field_release:Helicopter.rightGun)
::Vector3Serialized* temp = rightgun_;
rightgun_ = NULL;
return temp;
}
void Helicopter::set_allocated_rightgun(::Vector3Serialized* rightgun) {
delete rightgun_;
rightgun_ = rightgun;
if (rightgun) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Helicopter.rightGun)
}
// .Vector3Serialized spotlightVec = 4;
bool Helicopter::has_spotlightvec() const {
return this != internal_default_instance() && spotlightvec_ != NULL;
}
void Helicopter::clear_spotlightvec() {
if (GetArenaNoVirtual() == NULL && spotlightvec_ != NULL) delete spotlightvec_;
spotlightvec_ = NULL;
}
const ::Vector3Serialized& Helicopter::spotlightvec() const {
// @@protoc_insertion_point(field_get:Helicopter.spotlightVec)
return spotlightvec_ != NULL ? *spotlightvec_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* Helicopter::mutable_spotlightvec() {
if (spotlightvec_ == NULL) {
spotlightvec_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:Helicopter.spotlightVec)
return spotlightvec_;
}
::Vector3Serialized* Helicopter::release_spotlightvec() {
// @@protoc_insertion_point(field_release:Helicopter.spotlightVec)
::Vector3Serialized* temp = spotlightvec_;
spotlightvec_ = NULL;
return temp;
}
void Helicopter::set_allocated_spotlightvec(::Vector3Serialized* spotlightvec) {
delete spotlightvec_;
spotlightvec_ = spotlightvec;
if (spotlightvec) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Helicopter.spotlightVec)
}
// repeated float weakspothealths = 5;
int Helicopter::weakspothealths_size() const {
return weakspothealths_.size();
}
void Helicopter::clear_weakspothealths() {
weakspothealths_.Clear();
}
float Helicopter::weakspothealths(int index) const {
// @@protoc_insertion_point(field_get:Helicopter.weakspothealths)
return weakspothealths_.Get(index);
}
void Helicopter::set_weakspothealths(int index, float value) {
weakspothealths_.Set(index, value);
// @@protoc_insertion_point(field_set:Helicopter.weakspothealths)
}
void Helicopter::add_weakspothealths(float value) {
weakspothealths_.Add(value);
// @@protoc_insertion_point(field_add:Helicopter.weakspothealths)
}
const ::google::protobuf::RepeatedField< float >&
Helicopter::weakspothealths() const {
// @@protoc_insertion_point(field_list:Helicopter.weakspothealths)
return weakspothealths_;
}
::google::protobuf::RepeatedField< float >*
Helicopter::mutable_weakspothealths() {
// @@protoc_insertion_point(field_mutable_list:Helicopter.weakspothealths)
return &weakspothealths_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ServerGib::kGibNameFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ServerGib::ServerGib()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:ServerGib)
}
ServerGib::ServerGib(const ServerGib& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
gibname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.gibname().size() > 0) {
gibname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gibname_);
}
// @@protoc_insertion_point(copy_constructor:ServerGib)
}
void ServerGib::SharedCtor() {
gibname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
_cached_size_ = 0;
}
ServerGib::~ServerGib() {
// @@protoc_insertion_point(destructor:ServerGib)
SharedDtor();
}
void ServerGib::SharedDtor() {
gibname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ServerGib::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ServerGib::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[36].descriptor;
}
const ServerGib& ServerGib::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
ServerGib* ServerGib::New(::google::protobuf::Arena* arena) const {
ServerGib* n = new ServerGib;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void ServerGib::Clear() {
// @@protoc_insertion_point(message_clear_start:ServerGib)
gibname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
bool ServerGib::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:ServerGib)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string gibName = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_gibname()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->gibname().data(), this->gibname().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"ServerGib.gibName"));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:ServerGib)
return true;
failure:
// @@protoc_insertion_point(parse_failure:ServerGib)
return false;
#undef DO_
}
void ServerGib::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:ServerGib)
// string gibName = 1;
if (this->gibname().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->gibname().data(), this->gibname().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"ServerGib.gibName");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->gibname(), output);
}
// @@protoc_insertion_point(serialize_end:ServerGib)
}
::google::protobuf::uint8* ServerGib::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:ServerGib)
// string gibName = 1;
if (this->gibname().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->gibname().data(), this->gibname().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"ServerGib.gibName");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->gibname(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:ServerGib)
return target;
}
size_t ServerGib::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ServerGib)
size_t total_size = 0;
// string gibName = 1;
if (this->gibname().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->gibname());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ServerGib::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ServerGib)
GOOGLE_DCHECK_NE(&from, this);
const ServerGib* source =
::google::protobuf::internal::DynamicCastToGenerated<const ServerGib>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ServerGib)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:ServerGib)
MergeFrom(*source);
}
}
void ServerGib::MergeFrom(const ServerGib& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ServerGib)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.gibname().size() > 0) {
gibname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gibname_);
}
}
void ServerGib::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ServerGib)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ServerGib::CopyFrom(const ServerGib& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ServerGib)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ServerGib::IsInitialized() const {
return true;
}
void ServerGib::Swap(ServerGib* other) {
if (other == this) return;
InternalSwap(other);
}
void ServerGib::InternalSwap(ServerGib* other) {
gibname_.Swap(&other->gibname_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata ServerGib::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[36];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// ServerGib
// string gibName = 1;
void ServerGib::clear_gibname() {
gibname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& ServerGib::gibname() const {
// @@protoc_insertion_point(field_get:ServerGib.gibName)
return gibname_.GetNoArena();
}
void ServerGib::set_gibname(const ::std::string& value) {
gibname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:ServerGib.gibName)
}
#if LANG_CXX11
void ServerGib::set_gibname(::std::string&& value) {
gibname_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:ServerGib.gibName)
}
#endif
void ServerGib::set_gibname(const char* value) {
gibname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:ServerGib.gibName)
}
void ServerGib::set_gibname(const char* value, size_t size) {
gibname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:ServerGib.gibName)
}
::std::string* ServerGib::mutable_gibname() {
// @@protoc_insertion_point(field_mutable:ServerGib.gibName)
return gibname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* ServerGib::release_gibname() {
// @@protoc_insertion_point(field_release:ServerGib.gibName)
return gibname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ServerGib::set_allocated_gibname(::std::string* gibname) {
if (gibname != NULL) {
} else {
}
gibname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gibname);
// @@protoc_insertion_point(field_set_allocated:ServerGib.gibName)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int AutoTurret::kAimPosFieldNumber;
const int AutoTurret::kAimDirFieldNumber;
const int AutoTurret::kTargetIDFieldNumber;
const int AutoTurret::kUsersFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
AutoTurret::AutoTurret()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:AutoTurret)
}
AutoTurret::AutoTurret(const AutoTurret& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
users_(from.users_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_aimpos()) {
aimpos_ = new ::Vector3Serialized(*from.aimpos_);
} else {
aimpos_ = NULL;
}
if (from.has_aimdir()) {
aimdir_ = new ::Vector3Serialized(*from.aimdir_);
} else {
aimdir_ = NULL;
}
targetid_ = from.targetid_;
// @@protoc_insertion_point(copy_constructor:AutoTurret)
}
void AutoTurret::SharedCtor() {
::memset(&aimpos_, 0, reinterpret_cast<char*>(&targetid_) -
reinterpret_cast<char*>(&aimpos_) + sizeof(targetid_));
_cached_size_ = 0;
}
AutoTurret::~AutoTurret() {
// @@protoc_insertion_point(destructor:AutoTurret)
SharedDtor();
}
void AutoTurret::SharedDtor() {
if (this != internal_default_instance()) {
delete aimpos_;
}
if (this != internal_default_instance()) {
delete aimdir_;
}
}
void AutoTurret::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* AutoTurret::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[37].descriptor;
}
const AutoTurret& AutoTurret::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
AutoTurret* AutoTurret::New(::google::protobuf::Arena* arena) const {
AutoTurret* n = new AutoTurret;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void AutoTurret::Clear() {
// @@protoc_insertion_point(message_clear_start:AutoTurret)
users_.Clear();
if (GetArenaNoVirtual() == NULL && aimpos_ != NULL) {
delete aimpos_;
}
aimpos_ = NULL;
if (GetArenaNoVirtual() == NULL && aimdir_ != NULL) {
delete aimdir_;
}
aimdir_ = NULL;
targetid_ = 0u;
}
bool AutoTurret::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:AutoTurret)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .Vector3Serialized aimPos = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_aimpos()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized aimDir = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_aimdir()));
} else {
goto handle_unusual;
}
break;
}
// uint32 targetID = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &targetid_)));
} else {
goto handle_unusual;
}
break;
}
// repeated .PlayerNameID users = 4;
case 4: {
if (tag == 34u) {
DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_users()));
} else {
goto handle_unusual;
}
input->UnsafeDecrementRecursionDepth();
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:AutoTurret)
return true;
failure:
// @@protoc_insertion_point(parse_failure:AutoTurret)
return false;
#undef DO_
}
void AutoTurret::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:AutoTurret)
// .Vector3Serialized aimPos = 1;
if (this->has_aimpos()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->aimpos_, output);
}
// .Vector3Serialized aimDir = 2;
if (this->has_aimdir()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->aimdir_, output);
}
// uint32 targetID = 3;
if (this->targetid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->targetid(), output);
}
// repeated .PlayerNameID users = 4;
for (unsigned int i = 0, n = this->users_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->users(i), output);
}
// @@protoc_insertion_point(serialize_end:AutoTurret)
}
::google::protobuf::uint8* AutoTurret::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:AutoTurret)
// .Vector3Serialized aimPos = 1;
if (this->has_aimpos()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->aimpos_, false, target);
}
// .Vector3Serialized aimDir = 2;
if (this->has_aimdir()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->aimdir_, false, target);
}
// uint32 targetID = 3;
if (this->targetid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->targetid(), target);
}
// repeated .PlayerNameID users = 4;
for (unsigned int i = 0, n = this->users_size(); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
4, this->users(i), false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:AutoTurret)
return target;
}
size_t AutoTurret::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:AutoTurret)
size_t total_size = 0;
// repeated .PlayerNameID users = 4;
{
unsigned int count = this->users_size();
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->users(i));
}
}
// .Vector3Serialized aimPos = 1;
if (this->has_aimpos()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->aimpos_);
}
// .Vector3Serialized aimDir = 2;
if (this->has_aimdir()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->aimdir_);
}
// uint32 targetID = 3;
if (this->targetid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->targetid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void AutoTurret::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:AutoTurret)
GOOGLE_DCHECK_NE(&from, this);
const AutoTurret* source =
::google::protobuf::internal::DynamicCastToGenerated<const AutoTurret>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:AutoTurret)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:AutoTurret)
MergeFrom(*source);
}
}
void AutoTurret::MergeFrom(const AutoTurret& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:AutoTurret)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
users_.MergeFrom(from.users_);
if (from.has_aimpos()) {
mutable_aimpos()->::Vector3Serialized::MergeFrom(from.aimpos());
}
if (from.has_aimdir()) {
mutable_aimdir()->::Vector3Serialized::MergeFrom(from.aimdir());
}
if (from.targetid() != 0) {
set_targetid(from.targetid());
}
}
void AutoTurret::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:AutoTurret)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void AutoTurret::CopyFrom(const AutoTurret& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:AutoTurret)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool AutoTurret::IsInitialized() const {
return true;
}
void AutoTurret::Swap(AutoTurret* other) {
if (other == this) return;
InternalSwap(other);
}
void AutoTurret::InternalSwap(AutoTurret* other) {
users_.UnsafeArenaSwap(&other->users_);
std::swap(aimpos_, other->aimpos_);
std::swap(aimdir_, other->aimdir_);
std::swap(targetid_, other->targetid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata AutoTurret::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[37];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// AutoTurret
// .Vector3Serialized aimPos = 1;
bool AutoTurret::has_aimpos() const {
return this != internal_default_instance() && aimpos_ != NULL;
}
void AutoTurret::clear_aimpos() {
if (GetArenaNoVirtual() == NULL && aimpos_ != NULL) delete aimpos_;
aimpos_ = NULL;
}
const ::Vector3Serialized& AutoTurret::aimpos() const {
// @@protoc_insertion_point(field_get:AutoTurret.aimPos)
return aimpos_ != NULL ? *aimpos_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* AutoTurret::mutable_aimpos() {
if (aimpos_ == NULL) {
aimpos_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:AutoTurret.aimPos)
return aimpos_;
}
::Vector3Serialized* AutoTurret::release_aimpos() {
// @@protoc_insertion_point(field_release:AutoTurret.aimPos)
::Vector3Serialized* temp = aimpos_;
aimpos_ = NULL;
return temp;
}
void AutoTurret::set_allocated_aimpos(::Vector3Serialized* aimpos) {
delete aimpos_;
aimpos_ = aimpos;
if (aimpos) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:AutoTurret.aimPos)
}
// .Vector3Serialized aimDir = 2;
bool AutoTurret::has_aimdir() const {
return this != internal_default_instance() && aimdir_ != NULL;
}
void AutoTurret::clear_aimdir() {
if (GetArenaNoVirtual() == NULL && aimdir_ != NULL) delete aimdir_;
aimdir_ = NULL;
}
const ::Vector3Serialized& AutoTurret::aimdir() const {
// @@protoc_insertion_point(field_get:AutoTurret.aimDir)
return aimdir_ != NULL ? *aimdir_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* AutoTurret::mutable_aimdir() {
if (aimdir_ == NULL) {
aimdir_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:AutoTurret.aimDir)
return aimdir_;
}
::Vector3Serialized* AutoTurret::release_aimdir() {
// @@protoc_insertion_point(field_release:AutoTurret.aimDir)
::Vector3Serialized* temp = aimdir_;
aimdir_ = NULL;
return temp;
}
void AutoTurret::set_allocated_aimdir(::Vector3Serialized* aimdir) {
delete aimdir_;
aimdir_ = aimdir;
if (aimdir) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:AutoTurret.aimDir)
}
// uint32 targetID = 3;
void AutoTurret::clear_targetid() {
targetid_ = 0u;
}
::google::protobuf::uint32 AutoTurret::targetid() const {
// @@protoc_insertion_point(field_get:AutoTurret.targetID)
return targetid_;
}
void AutoTurret::set_targetid(::google::protobuf::uint32 value) {
targetid_ = value;
// @@protoc_insertion_point(field_set:AutoTurret.targetID)
}
// repeated .PlayerNameID users = 4;
int AutoTurret::users_size() const {
return users_.size();
}
void AutoTurret::clear_users() {
users_.Clear();
}
const ::PlayerNameID& AutoTurret::users(int index) const {
// @@protoc_insertion_point(field_get:AutoTurret.users)
return users_.Get(index);
}
::PlayerNameID* AutoTurret::mutable_users(int index) {
// @@protoc_insertion_point(field_mutable:AutoTurret.users)
return users_.Mutable(index);
}
::PlayerNameID* AutoTurret::add_users() {
// @@protoc_insertion_point(field_add:AutoTurret.users)
return users_.Add();
}
::google::protobuf::RepeatedPtrField< ::PlayerNameID >*
AutoTurret::mutable_users() {
// @@protoc_insertion_point(field_mutable_list:AutoTurret.users)
return &users_;
}
const ::google::protobuf::RepeatedPtrField< ::PlayerNameID >&
AutoTurret::users() const {
// @@protoc_insertion_point(field_list:AutoTurret.users)
return users_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int SphereEntity::kRadiusFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
SphereEntity::SphereEntity()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:SphereEntity)
}
SphereEntity::SphereEntity(const SphereEntity& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
radius_ = from.radius_;
// @@protoc_insertion_point(copy_constructor:SphereEntity)
}
void SphereEntity::SharedCtor() {
radius_ = 0;
_cached_size_ = 0;
}
SphereEntity::~SphereEntity() {
// @@protoc_insertion_point(destructor:SphereEntity)
SharedDtor();
}
void SphereEntity::SharedDtor() {
}
void SphereEntity::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* SphereEntity::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[38].descriptor;
}
const SphereEntity& SphereEntity::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
SphereEntity* SphereEntity::New(::google::protobuf::Arena* arena) const {
SphereEntity* n = new SphereEntity;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void SphereEntity::Clear() {
// @@protoc_insertion_point(message_clear_start:SphereEntity)
radius_ = 0;
}
bool SphereEntity::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:SphereEntity)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float radius = 1;
case 1: {
if (tag == 13u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &radius_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:SphereEntity)
return true;
failure:
// @@protoc_insertion_point(parse_failure:SphereEntity)
return false;
#undef DO_
}
void SphereEntity::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:SphereEntity)
// float radius = 1;
if (this->radius() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->radius(), output);
}
// @@protoc_insertion_point(serialize_end:SphereEntity)
}
::google::protobuf::uint8* SphereEntity::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:SphereEntity)
// float radius = 1;
if (this->radius() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->radius(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:SphereEntity)
return target;
}
size_t SphereEntity::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:SphereEntity)
size_t total_size = 0;
// float radius = 1;
if (this->radius() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void SphereEntity::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:SphereEntity)
GOOGLE_DCHECK_NE(&from, this);
const SphereEntity* source =
::google::protobuf::internal::DynamicCastToGenerated<const SphereEntity>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:SphereEntity)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:SphereEntity)
MergeFrom(*source);
}
}
void SphereEntity::MergeFrom(const SphereEntity& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:SphereEntity)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.radius() != 0) {
set_radius(from.radius());
}
}
void SphereEntity::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:SphereEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SphereEntity::CopyFrom(const SphereEntity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:SphereEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SphereEntity::IsInitialized() const {
return true;
}
void SphereEntity::Swap(SphereEntity* other) {
if (other == this) return;
InternalSwap(other);
}
void SphereEntity::InternalSwap(SphereEntity* other) {
std::swap(radius_, other->radius_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata SphereEntity::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[38];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// SphereEntity
// float radius = 1;
void SphereEntity::clear_radius() {
radius_ = 0;
}
float SphereEntity::radius() const {
// @@protoc_insertion_point(field_get:SphereEntity.radius)
return radius_;
}
void SphereEntity::set_radius(float value) {
radius_ = value;
// @@protoc_insertion_point(field_set:SphereEntity.radius)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StabilityEntity::kStabilityFieldNumber;
const int StabilityEntity::kDistanceFromGroundFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
StabilityEntity::StabilityEntity()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:StabilityEntity)
}
StabilityEntity::StabilityEntity(const StabilityEntity& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&stability_, &from.stability_,
reinterpret_cast<char*>(&distancefromground_) -
reinterpret_cast<char*>(&stability_) + sizeof(distancefromground_));
// @@protoc_insertion_point(copy_constructor:StabilityEntity)
}
void StabilityEntity::SharedCtor() {
::memset(&stability_, 0, reinterpret_cast<char*>(&distancefromground_) -
reinterpret_cast<char*>(&stability_) + sizeof(distancefromground_));
_cached_size_ = 0;
}
StabilityEntity::~StabilityEntity() {
// @@protoc_insertion_point(destructor:StabilityEntity)
SharedDtor();
}
void StabilityEntity::SharedDtor() {
}
void StabilityEntity::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* StabilityEntity::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[39].descriptor;
}
const StabilityEntity& StabilityEntity::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
StabilityEntity* StabilityEntity::New(::google::protobuf::Arena* arena) const {
StabilityEntity* n = new StabilityEntity;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void StabilityEntity::Clear() {
// @@protoc_insertion_point(message_clear_start:StabilityEntity)
::memset(&stability_, 0, reinterpret_cast<char*>(&distancefromground_) -
reinterpret_cast<char*>(&stability_) + sizeof(distancefromground_));
}
bool StabilityEntity::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:StabilityEntity)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float stability = 1;
case 1: {
if (tag == 13u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &stability_)));
} else {
goto handle_unusual;
}
break;
}
// int32 distanceFromGround = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &distancefromground_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:StabilityEntity)
return true;
failure:
// @@protoc_insertion_point(parse_failure:StabilityEntity)
return false;
#undef DO_
}
void StabilityEntity::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:StabilityEntity)
// float stability = 1;
if (this->stability() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->stability(), output);
}
// int32 distanceFromGround = 2;
if (this->distancefromground() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->distancefromground(), output);
}
// @@protoc_insertion_point(serialize_end:StabilityEntity)
}
::google::protobuf::uint8* StabilityEntity::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:StabilityEntity)
// float stability = 1;
if (this->stability() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->stability(), target);
}
// int32 distanceFromGround = 2;
if (this->distancefromground() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->distancefromground(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:StabilityEntity)
return target;
}
size_t StabilityEntity::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:StabilityEntity)
size_t total_size = 0;
// float stability = 1;
if (this->stability() != 0) {
total_size += 1 + 4;
}
// int32 distanceFromGround = 2;
if (this->distancefromground() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->distancefromground());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void StabilityEntity::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:StabilityEntity)
GOOGLE_DCHECK_NE(&from, this);
const StabilityEntity* source =
::google::protobuf::internal::DynamicCastToGenerated<const StabilityEntity>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:StabilityEntity)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:StabilityEntity)
MergeFrom(*source);
}
}
void StabilityEntity::MergeFrom(const StabilityEntity& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:StabilityEntity)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.stability() != 0) {
set_stability(from.stability());
}
if (from.distancefromground() != 0) {
set_distancefromground(from.distancefromground());
}
}
void StabilityEntity::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:StabilityEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StabilityEntity::CopyFrom(const StabilityEntity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:StabilityEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StabilityEntity::IsInitialized() const {
return true;
}
void StabilityEntity::Swap(StabilityEntity* other) {
if (other == this) return;
InternalSwap(other);
}
void StabilityEntity::InternalSwap(StabilityEntity* other) {
std::swap(stability_, other->stability_);
std::swap(distancefromground_, other->distancefromground_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata StabilityEntity::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[39];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// StabilityEntity
// float stability = 1;
void StabilityEntity::clear_stability() {
stability_ = 0;
}
float StabilityEntity::stability() const {
// @@protoc_insertion_point(field_get:StabilityEntity.stability)
return stability_;
}
void StabilityEntity::set_stability(float value) {
stability_ = value;
// @@protoc_insertion_point(field_set:StabilityEntity.stability)
}
// int32 distanceFromGround = 2;
void StabilityEntity::clear_distancefromground() {
distancefromground_ = 0;
}
::google::protobuf::int32 StabilityEntity::distancefromground() const {
// @@protoc_insertion_point(field_get:StabilityEntity.distanceFromGround)
return distancefromground_;
}
void StabilityEntity::set_distancefromground(::google::protobuf::int32 value) {
distancefromground_ = value;
// @@protoc_insertion_point(field_set:StabilityEntity.distanceFromGround)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int OwnerInfo::kSteamidFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
OwnerInfo::OwnerInfo()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:OwnerInfo)
}
OwnerInfo::OwnerInfo(const OwnerInfo& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
steamid_ = from.steamid_;
// @@protoc_insertion_point(copy_constructor:OwnerInfo)
}
void OwnerInfo::SharedCtor() {
steamid_ = GOOGLE_ULONGLONG(0);
_cached_size_ = 0;
}
OwnerInfo::~OwnerInfo() {
// @@protoc_insertion_point(destructor:OwnerInfo)
SharedDtor();
}
void OwnerInfo::SharedDtor() {
}
void OwnerInfo::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* OwnerInfo::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[40].descriptor;
}
const OwnerInfo& OwnerInfo::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
OwnerInfo* OwnerInfo::New(::google::protobuf::Arena* arena) const {
OwnerInfo* n = new OwnerInfo;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void OwnerInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:OwnerInfo)
steamid_ = GOOGLE_ULONGLONG(0);
}
bool OwnerInfo::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:OwnerInfo)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint64 steamid = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &steamid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:OwnerInfo)
return true;
failure:
// @@protoc_insertion_point(parse_failure:OwnerInfo)
return false;
#undef DO_
}
void OwnerInfo::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:OwnerInfo)
// uint64 steamid = 1;
if (this->steamid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->steamid(), output);
}
// @@protoc_insertion_point(serialize_end:OwnerInfo)
}
::google::protobuf::uint8* OwnerInfo::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:OwnerInfo)
// uint64 steamid = 1;
if (this->steamid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->steamid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:OwnerInfo)
return target;
}
size_t OwnerInfo::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:OwnerInfo)
size_t total_size = 0;
// uint64 steamid = 1;
if (this->steamid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->steamid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void OwnerInfo::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:OwnerInfo)
GOOGLE_DCHECK_NE(&from, this);
const OwnerInfo* source =
::google::protobuf::internal::DynamicCastToGenerated<const OwnerInfo>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:OwnerInfo)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:OwnerInfo)
MergeFrom(*source);
}
}
void OwnerInfo::MergeFrom(const OwnerInfo& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:OwnerInfo)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.steamid() != 0) {
set_steamid(from.steamid());
}
}
void OwnerInfo::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:OwnerInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void OwnerInfo::CopyFrom(const OwnerInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:OwnerInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool OwnerInfo::IsInitialized() const {
return true;
}
void OwnerInfo::Swap(OwnerInfo* other) {
if (other == this) return;
InternalSwap(other);
}
void OwnerInfo::InternalSwap(OwnerInfo* other) {
std::swap(steamid_, other->steamid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata OwnerInfo::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[40];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// OwnerInfo
// uint64 steamid = 1;
void OwnerInfo::clear_steamid() {
steamid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 OwnerInfo::steamid() const {
// @@protoc_insertion_point(field_get:OwnerInfo.steamid)
return steamid_;
}
void OwnerInfo::set_steamid(::google::protobuf::uint64 value) {
steamid_ = value;
// @@protoc_insertion_point(field_set:OwnerInfo.steamid)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int DecayEntity::kDecayTimerFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
DecayEntity::DecayEntity()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:DecayEntity)
}
DecayEntity::DecayEntity(const DecayEntity& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
decaytimer_ = from.decaytimer_;
// @@protoc_insertion_point(copy_constructor:DecayEntity)
}
void DecayEntity::SharedCtor() {
decaytimer_ = 0;
_cached_size_ = 0;
}
DecayEntity::~DecayEntity() {
// @@protoc_insertion_point(destructor:DecayEntity)
SharedDtor();
}
void DecayEntity::SharedDtor() {
}
void DecayEntity::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DecayEntity::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[41].descriptor;
}
const DecayEntity& DecayEntity::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
DecayEntity* DecayEntity::New(::google::protobuf::Arena* arena) const {
DecayEntity* n = new DecayEntity;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void DecayEntity::Clear() {
// @@protoc_insertion_point(message_clear_start:DecayEntity)
decaytimer_ = 0;
}
bool DecayEntity::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:DecayEntity)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float decayTimer = 1;
case 1: {
if (tag == 13u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &decaytimer_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:DecayEntity)
return true;
failure:
// @@protoc_insertion_point(parse_failure:DecayEntity)
return false;
#undef DO_
}
void DecayEntity::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:DecayEntity)
// float decayTimer = 1;
if (this->decaytimer() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->decaytimer(), output);
}
// @@protoc_insertion_point(serialize_end:DecayEntity)
}
::google::protobuf::uint8* DecayEntity::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:DecayEntity)
// float decayTimer = 1;
if (this->decaytimer() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->decaytimer(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:DecayEntity)
return target;
}
size_t DecayEntity::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:DecayEntity)
size_t total_size = 0;
// float decayTimer = 1;
if (this->decaytimer() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DecayEntity::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:DecayEntity)
GOOGLE_DCHECK_NE(&from, this);
const DecayEntity* source =
::google::protobuf::internal::DynamicCastToGenerated<const DecayEntity>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:DecayEntity)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:DecayEntity)
MergeFrom(*source);
}
}
void DecayEntity::MergeFrom(const DecayEntity& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:DecayEntity)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.decaytimer() != 0) {
set_decaytimer(from.decaytimer());
}
}
void DecayEntity::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:DecayEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DecayEntity::CopyFrom(const DecayEntity& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:DecayEntity)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DecayEntity::IsInitialized() const {
return true;
}
void DecayEntity::Swap(DecayEntity* other) {
if (other == this) return;
InternalSwap(other);
}
void DecayEntity::InternalSwap(DecayEntity* other) {
std::swap(decaytimer_, other->decaytimer_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata DecayEntity::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[41];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// DecayEntity
// float decayTimer = 1;
void DecayEntity::clear_decaytimer() {
decaytimer_ = 0;
}
float DecayEntity::decaytimer() const {
// @@protoc_insertion_point(field_get:DecayEntity.decayTimer)
return decaytimer_;
}
void DecayEntity::set_decaytimer(float value) {
decaytimer_ = value;
// @@protoc_insertion_point(field_set:DecayEntity.decayTimer)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Spawnable::kPopulationFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Spawnable::Spawnable()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Spawnable)
}
Spawnable::Spawnable(const Spawnable& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
population_ = from.population_;
// @@protoc_insertion_point(copy_constructor:Spawnable)
}
void Spawnable::SharedCtor() {
population_ = 0u;
_cached_size_ = 0;
}
Spawnable::~Spawnable() {
// @@protoc_insertion_point(destructor:Spawnable)
SharedDtor();
}
void Spawnable::SharedDtor() {
}
void Spawnable::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Spawnable::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[42].descriptor;
}
const Spawnable& Spawnable::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Spawnable* Spawnable::New(::google::protobuf::Arena* arena) const {
Spawnable* n = new Spawnable;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Spawnable::Clear() {
// @@protoc_insertion_point(message_clear_start:Spawnable)
population_ = 0u;
}
bool Spawnable::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Spawnable)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 population = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &population_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Spawnable)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Spawnable)
return false;
#undef DO_
}
void Spawnable::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Spawnable)
// uint32 population = 1;
if (this->population() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->population(), output);
}
// @@protoc_insertion_point(serialize_end:Spawnable)
}
::google::protobuf::uint8* Spawnable::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Spawnable)
// uint32 population = 1;
if (this->population() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->population(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Spawnable)
return target;
}
size_t Spawnable::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Spawnable)
size_t total_size = 0;
// uint32 population = 1;
if (this->population() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->population());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Spawnable::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Spawnable)
GOOGLE_DCHECK_NE(&from, this);
const Spawnable* source =
::google::protobuf::internal::DynamicCastToGenerated<const Spawnable>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Spawnable)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Spawnable)
MergeFrom(*source);
}
}
void Spawnable::MergeFrom(const Spawnable& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Spawnable)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.population() != 0) {
set_population(from.population());
}
}
void Spawnable::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Spawnable)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Spawnable::CopyFrom(const Spawnable& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Spawnable)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Spawnable::IsInitialized() const {
return true;
}
void Spawnable::Swap(Spawnable* other) {
if (other == this) return;
InternalSwap(other);
}
void Spawnable::InternalSwap(Spawnable* other) {
std::swap(population_, other->population_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Spawnable::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[42];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Spawnable
// uint32 population = 1;
void Spawnable::clear_population() {
population_ = 0u;
}
::google::protobuf::uint32 Spawnable::population() const {
// @@protoc_insertion_point(field_get:Spawnable.population)
return population_;
}
void Spawnable::set_population(::google::protobuf::uint32 value) {
population_ = value;
// @@protoc_insertion_point(field_set:Spawnable.population)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int VendingMachine::kSellOrderContainerFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
VendingMachine::VendingMachine()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:VendingMachine)
}
VendingMachine::VendingMachine(const VendingMachine& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_sellordercontainer()) {
sellordercontainer_ = new ::SellOrderContainer(*from.sellordercontainer_);
} else {
sellordercontainer_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:VendingMachine)
}
void VendingMachine::SharedCtor() {
sellordercontainer_ = NULL;
_cached_size_ = 0;
}
VendingMachine::~VendingMachine() {
// @@protoc_insertion_point(destructor:VendingMachine)
SharedDtor();
}
void VendingMachine::SharedDtor() {
if (this != internal_default_instance()) {
delete sellordercontainer_;
}
}
void VendingMachine::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* VendingMachine::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[43].descriptor;
}
const VendingMachine& VendingMachine::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
VendingMachine* VendingMachine::New(::google::protobuf::Arena* arena) const {
VendingMachine* n = new VendingMachine;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void VendingMachine::Clear() {
// @@protoc_insertion_point(message_clear_start:VendingMachine)
if (GetArenaNoVirtual() == NULL && sellordercontainer_ != NULL) {
delete sellordercontainer_;
}
sellordercontainer_ = NULL;
}
bool VendingMachine::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:VendingMachine)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .SellOrderContainer sellOrderContainer = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_sellordercontainer()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:VendingMachine)
return true;
failure:
// @@protoc_insertion_point(parse_failure:VendingMachine)
return false;
#undef DO_
}
void VendingMachine::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:VendingMachine)
// .SellOrderContainer sellOrderContainer = 1;
if (this->has_sellordercontainer()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->sellordercontainer_, output);
}
// @@protoc_insertion_point(serialize_end:VendingMachine)
}
::google::protobuf::uint8* VendingMachine::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:VendingMachine)
// .SellOrderContainer sellOrderContainer = 1;
if (this->has_sellordercontainer()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->sellordercontainer_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:VendingMachine)
return target;
}
size_t VendingMachine::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:VendingMachine)
size_t total_size = 0;
// .SellOrderContainer sellOrderContainer = 1;
if (this->has_sellordercontainer()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->sellordercontainer_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void VendingMachine::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:VendingMachine)
GOOGLE_DCHECK_NE(&from, this);
const VendingMachine* source =
::google::protobuf::internal::DynamicCastToGenerated<const VendingMachine>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:VendingMachine)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:VendingMachine)
MergeFrom(*source);
}
}
void VendingMachine::MergeFrom(const VendingMachine& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:VendingMachine)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_sellordercontainer()) {
mutable_sellordercontainer()->::SellOrderContainer::MergeFrom(from.sellordercontainer());
}
}
void VendingMachine::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:VendingMachine)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void VendingMachine::CopyFrom(const VendingMachine& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:VendingMachine)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool VendingMachine::IsInitialized() const {
return true;
}
void VendingMachine::Swap(VendingMachine* other) {
if (other == this) return;
InternalSwap(other);
}
void VendingMachine::InternalSwap(VendingMachine* other) {
std::swap(sellordercontainer_, other->sellordercontainer_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata VendingMachine::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[43];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// VendingMachine
// .SellOrderContainer sellOrderContainer = 1;
bool VendingMachine::has_sellordercontainer() const {
return this != internal_default_instance() && sellordercontainer_ != NULL;
}
void VendingMachine::clear_sellordercontainer() {
if (GetArenaNoVirtual() == NULL && sellordercontainer_ != NULL) delete sellordercontainer_;
sellordercontainer_ = NULL;
}
const ::SellOrderContainer& VendingMachine::sellordercontainer() const {
// @@protoc_insertion_point(field_get:VendingMachine.sellOrderContainer)
return sellordercontainer_ != NULL ? *sellordercontainer_
: *::SellOrderContainer::internal_default_instance();
}
::SellOrderContainer* VendingMachine::mutable_sellordercontainer() {
if (sellordercontainer_ == NULL) {
sellordercontainer_ = new ::SellOrderContainer;
}
// @@protoc_insertion_point(field_mutable:VendingMachine.sellOrderContainer)
return sellordercontainer_;
}
::SellOrderContainer* VendingMachine::release_sellordercontainer() {
// @@protoc_insertion_point(field_release:VendingMachine.sellOrderContainer)
::SellOrderContainer* temp = sellordercontainer_;
sellordercontainer_ = NULL;
return temp;
}
void VendingMachine::set_allocated_sellordercontainer(::SellOrderContainer* sellordercontainer) {
delete sellordercontainer_;
sellordercontainer_ = sellordercontainer;
if (sellordercontainer) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:VendingMachine.sellOrderContainer)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ItemContainer::kUIDFieldNumber;
const int ItemContainer::kSlotsFieldNumber;
const int ItemContainer::kTemperatureFieldNumber;
const int ItemContainer::kFlagsFieldNumber;
const int ItemContainer::kAllowedContentsFieldNumber;
const int ItemContainer::kMaxStackSizeFieldNumber;
const int ItemContainer::kAllowedItemFieldNumber;
const int ItemContainer::kAvailableSlotsFieldNumber;
const int ItemContainer::kContentsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ItemContainer::ItemContainer()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:ItemContainer)
}
ItemContainer::ItemContainer(const ItemContainer& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
availableslots_(from.availableslots_),
contents_(from.contents_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&uid_, &from.uid_,
reinterpret_cast<char*>(&alloweditem_) -
reinterpret_cast<char*>(&uid_) + sizeof(alloweditem_));
// @@protoc_insertion_point(copy_constructor:ItemContainer)
}
void ItemContainer::SharedCtor() {
::memset(&uid_, 0, reinterpret_cast<char*>(&alloweditem_) -
reinterpret_cast<char*>(&uid_) + sizeof(alloweditem_));
_cached_size_ = 0;
}
ItemContainer::~ItemContainer() {
// @@protoc_insertion_point(destructor:ItemContainer)
SharedDtor();
}
void ItemContainer::SharedDtor() {
}
void ItemContainer::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ItemContainer::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[44].descriptor;
}
const ItemContainer& ItemContainer::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
ItemContainer* ItemContainer::New(::google::protobuf::Arena* arena) const {
ItemContainer* n = new ItemContainer;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void ItemContainer::Clear() {
// @@protoc_insertion_point(message_clear_start:ItemContainer)
availableslots_.Clear();
contents_.Clear();
::memset(&uid_, 0, reinterpret_cast<char*>(&alloweditem_) -
reinterpret_cast<char*>(&uid_) + sizeof(alloweditem_));
}
bool ItemContainer::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:ItemContainer)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 UID = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &uid_)));
} else {
goto handle_unusual;
}
break;
}
// int32 slots = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &slots_)));
} else {
goto handle_unusual;
}
break;
}
// float temperature = 3;
case 3: {
if (tag == 29u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &temperature_)));
} else {
goto handle_unusual;
}
break;
}
// int32 flags = 4;
case 4: {
if (tag == 32u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &flags_)));
} else {
goto handle_unusual;
}
break;
}
// int32 allowedContents = 5;
case 5: {
if (tag == 40u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &allowedcontents_)));
} else {
goto handle_unusual;
}
break;
}
// int32 maxStackSize = 6;
case 6: {
if (tag == 48u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &maxstacksize_)));
} else {
goto handle_unusual;
}
break;
}
// int32 allowedItem = 7;
case 7: {
if (tag == 56u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &alloweditem_)));
} else {
goto handle_unusual;
}
break;
}
// repeated int32 availableSlots = 8;
case 8: {
if (tag == 66u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_availableslots())));
} else if (tag == 64u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1, 66u, input, this->mutable_availableslots())));
} else {
goto handle_unusual;
}
break;
}
// repeated .Item contents = 100;
case 100: {
if (tag == 802u) {
DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_contents()));
} else {
goto handle_unusual;
}
input->UnsafeDecrementRecursionDepth();
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:ItemContainer)
return true;
failure:
// @@protoc_insertion_point(parse_failure:ItemContainer)
return false;
#undef DO_
}
void ItemContainer::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:ItemContainer)
// uint32 UID = 1;
if (this->uid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->uid(), output);
}
// int32 slots = 2;
if (this->slots() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->slots(), output);
}
// float temperature = 3;
if (this->temperature() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->temperature(), output);
}
// int32 flags = 4;
if (this->flags() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->flags(), output);
}
// int32 allowedContents = 5;
if (this->allowedcontents() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->allowedcontents(), output);
}
// int32 maxStackSize = 6;
if (this->maxstacksize() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->maxstacksize(), output);
}
// int32 allowedItem = 7;
if (this->alloweditem() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->alloweditem(), output);
}
// repeated int32 availableSlots = 8;
if (this->availableslots_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_availableslots_cached_byte_size_);
}
for (int i = 0; i < this->availableslots_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
this->availableslots(i), output);
}
// repeated .Item contents = 100;
for (unsigned int i = 0, n = this->contents_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
100, this->contents(i), output);
}
// @@protoc_insertion_point(serialize_end:ItemContainer)
}
::google::protobuf::uint8* ItemContainer::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:ItemContainer)
// uint32 UID = 1;
if (this->uid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->uid(), target);
}
// int32 slots = 2;
if (this->slots() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->slots(), target);
}
// float temperature = 3;
if (this->temperature() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->temperature(), target);
}
// int32 flags = 4;
if (this->flags() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->flags(), target);
}
// int32 allowedContents = 5;
if (this->allowedcontents() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->allowedcontents(), target);
}
// int32 maxStackSize = 6;
if (this->maxstacksize() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->maxstacksize(), target);
}
// int32 allowedItem = 7;
if (this->alloweditem() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->alloweditem(), target);
}
// repeated int32 availableSlots = 8;
if (this->availableslots_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_availableslots_cached_byte_size_, target);
}
for (int i = 0; i < this->availableslots_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32NoTagToArray(this->availableslots(i), target);
}
// repeated .Item contents = 100;
for (unsigned int i = 0, n = this->contents_size(); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
100, this->contents(i), false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:ItemContainer)
return target;
}
size_t ItemContainer::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ItemContainer)
size_t total_size = 0;
// repeated int32 availableSlots = 8;
{
size_t data_size = ::google::protobuf::internal::WireFormatLite::
Int32Size(this->availableslots_);
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_availableslots_cached_byte_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
total_size += data_size;
}
// repeated .Item contents = 100;
{
unsigned int count = this->contents_size();
total_size += 2UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->contents(i));
}
}
// uint32 UID = 1;
if (this->uid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->uid());
}
// int32 slots = 2;
if (this->slots() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->slots());
}
// float temperature = 3;
if (this->temperature() != 0) {
total_size += 1 + 4;
}
// int32 flags = 4;
if (this->flags() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->flags());
}
// int32 allowedContents = 5;
if (this->allowedcontents() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->allowedcontents());
}
// int32 maxStackSize = 6;
if (this->maxstacksize() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->maxstacksize());
}
// int32 allowedItem = 7;
if (this->alloweditem() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->alloweditem());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ItemContainer::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ItemContainer)
GOOGLE_DCHECK_NE(&from, this);
const ItemContainer* source =
::google::protobuf::internal::DynamicCastToGenerated<const ItemContainer>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ItemContainer)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:ItemContainer)
MergeFrom(*source);
}
}
void ItemContainer::MergeFrom(const ItemContainer& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ItemContainer)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
availableslots_.MergeFrom(from.availableslots_);
contents_.MergeFrom(from.contents_);
if (from.uid() != 0) {
set_uid(from.uid());
}
if (from.slots() != 0) {
set_slots(from.slots());
}
if (from.temperature() != 0) {
set_temperature(from.temperature());
}
if (from.flags() != 0) {
set_flags(from.flags());
}
if (from.allowedcontents() != 0) {
set_allowedcontents(from.allowedcontents());
}
if (from.maxstacksize() != 0) {
set_maxstacksize(from.maxstacksize());
}
if (from.alloweditem() != 0) {
set_alloweditem(from.alloweditem());
}
}
void ItemContainer::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ItemContainer)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ItemContainer::CopyFrom(const ItemContainer& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ItemContainer)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ItemContainer::IsInitialized() const {
return true;
}
void ItemContainer::Swap(ItemContainer* other) {
if (other == this) return;
InternalSwap(other);
}
void ItemContainer::InternalSwap(ItemContainer* other) {
availableslots_.UnsafeArenaSwap(&other->availableslots_);
contents_.UnsafeArenaSwap(&other->contents_);
std::swap(uid_, other->uid_);
std::swap(slots_, other->slots_);
std::swap(temperature_, other->temperature_);
std::swap(flags_, other->flags_);
std::swap(allowedcontents_, other->allowedcontents_);
std::swap(maxstacksize_, other->maxstacksize_);
std::swap(alloweditem_, other->alloweditem_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata ItemContainer::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[44];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// ItemContainer
// uint32 UID = 1;
void ItemContainer::clear_uid() {
uid_ = 0u;
}
::google::protobuf::uint32 ItemContainer::uid() const {
// @@protoc_insertion_point(field_get:ItemContainer.UID)
return uid_;
}
void ItemContainer::set_uid(::google::protobuf::uint32 value) {
uid_ = value;
// @@protoc_insertion_point(field_set:ItemContainer.UID)
}
// int32 slots = 2;
void ItemContainer::clear_slots() {
slots_ = 0;
}
::google::protobuf::int32 ItemContainer::slots() const {
// @@protoc_insertion_point(field_get:ItemContainer.slots)
return slots_;
}
void ItemContainer::set_slots(::google::protobuf::int32 value) {
slots_ = value;
// @@protoc_insertion_point(field_set:ItemContainer.slots)
}
// float temperature = 3;
void ItemContainer::clear_temperature() {
temperature_ = 0;
}
float ItemContainer::temperature() const {
// @@protoc_insertion_point(field_get:ItemContainer.temperature)
return temperature_;
}
void ItemContainer::set_temperature(float value) {
temperature_ = value;
// @@protoc_insertion_point(field_set:ItemContainer.temperature)
}
// int32 flags = 4;
void ItemContainer::clear_flags() {
flags_ = 0;
}
::google::protobuf::int32 ItemContainer::flags() const {
// @@protoc_insertion_point(field_get:ItemContainer.flags)
return flags_;
}
void ItemContainer::set_flags(::google::protobuf::int32 value) {
flags_ = value;
// @@protoc_insertion_point(field_set:ItemContainer.flags)
}
// int32 allowedContents = 5;
void ItemContainer::clear_allowedcontents() {
allowedcontents_ = 0;
}
::google::protobuf::int32 ItemContainer::allowedcontents() const {
// @@protoc_insertion_point(field_get:ItemContainer.allowedContents)
return allowedcontents_;
}
void ItemContainer::set_allowedcontents(::google::protobuf::int32 value) {
allowedcontents_ = value;
// @@protoc_insertion_point(field_set:ItemContainer.allowedContents)
}
// int32 maxStackSize = 6;
void ItemContainer::clear_maxstacksize() {
maxstacksize_ = 0;
}
::google::protobuf::int32 ItemContainer::maxstacksize() const {
// @@protoc_insertion_point(field_get:ItemContainer.maxStackSize)
return maxstacksize_;
}
void ItemContainer::set_maxstacksize(::google::protobuf::int32 value) {
maxstacksize_ = value;
// @@protoc_insertion_point(field_set:ItemContainer.maxStackSize)
}
// int32 allowedItem = 7;
void ItemContainer::clear_alloweditem() {
alloweditem_ = 0;
}
::google::protobuf::int32 ItemContainer::alloweditem() const {
// @@protoc_insertion_point(field_get:ItemContainer.allowedItem)
return alloweditem_;
}
void ItemContainer::set_alloweditem(::google::protobuf::int32 value) {
alloweditem_ = value;
// @@protoc_insertion_point(field_set:ItemContainer.allowedItem)
}
// repeated int32 availableSlots = 8;
int ItemContainer::availableslots_size() const {
return availableslots_.size();
}
void ItemContainer::clear_availableslots() {
availableslots_.Clear();
}
::google::protobuf::int32 ItemContainer::availableslots(int index) const {
// @@protoc_insertion_point(field_get:ItemContainer.availableSlots)
return availableslots_.Get(index);
}
void ItemContainer::set_availableslots(int index, ::google::protobuf::int32 value) {
availableslots_.Set(index, value);
// @@protoc_insertion_point(field_set:ItemContainer.availableSlots)
}
void ItemContainer::add_availableslots(::google::protobuf::int32 value) {
availableslots_.Add(value);
// @@protoc_insertion_point(field_add:ItemContainer.availableSlots)
}
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
ItemContainer::availableslots() const {
// @@protoc_insertion_point(field_list:ItemContainer.availableSlots)
return availableslots_;
}
::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
ItemContainer::mutable_availableslots() {
// @@protoc_insertion_point(field_mutable_list:ItemContainer.availableSlots)
return &availableslots_;
}
// repeated .Item contents = 100;
int ItemContainer::contents_size() const {
return contents_.size();
}
void ItemContainer::clear_contents() {
contents_.Clear();
}
const ::Item& ItemContainer::contents(int index) const {
// @@protoc_insertion_point(field_get:ItemContainer.contents)
return contents_.Get(index);
}
::Item* ItemContainer::mutable_contents(int index) {
// @@protoc_insertion_point(field_mutable:ItemContainer.contents)
return contents_.Mutable(index);
}
::Item* ItemContainer::add_contents() {
// @@protoc_insertion_point(field_add:ItemContainer.contents)
return contents_.Add();
}
::google::protobuf::RepeatedPtrField< ::Item >*
ItemContainer::mutable_contents() {
// @@protoc_insertion_point(field_mutable_list:ItemContainer.contents)
return &contents_;
}
const ::google::protobuf::RepeatedPtrField< ::Item >&
ItemContainer::contents() const {
// @@protoc_insertion_point(field_list:ItemContainer.contents)
return contents_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Item::kUIDFieldNumber;
const int Item::kItemidFieldNumber;
const int Item::kSlotFieldNumber;
const int Item::kAmountFieldNumber;
const int Item::kFlagsFieldNumber;
const int Item::kRemovetimeFieldNumber;
const int Item::kLocktimeFieldNumber;
const int Item::kWorldEntityFieldNumber;
const int Item::kInstanceDataFieldNumber;
const int Item::kHeldEntityFieldNumber;
const int Item::kConditionDataFieldNumber;
const int Item::kNameFieldNumber;
const int Item::kTextFieldNumber;
const int Item::kSkinidFieldNumber;
const int Item::kContentsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Item::Item()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Item)
}
Item::Item(const Item& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.text().size() > 0) {
text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.text_);
}
if (from.has_instancedata()) {
instancedata_ = new ::InstanceData(*from.instancedata_);
} else {
instancedata_ = NULL;
}
if (from.has_conditiondata()) {
conditiondata_ = new ::ConditionData(*from.conditiondata_);
} else {
conditiondata_ = NULL;
}
if (from.has_contents()) {
contents_ = new ::ItemContainer(*from.contents_);
} else {
contents_ = NULL;
}
::memcpy(&uid_, &from.uid_,
reinterpret_cast<char*>(&heldentity_) -
reinterpret_cast<char*>(&uid_) + sizeof(heldentity_));
// @@protoc_insertion_point(copy_constructor:Item)
}
void Item::SharedCtor() {
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&instancedata_, 0, reinterpret_cast<char*>(&heldentity_) -
reinterpret_cast<char*>(&instancedata_) + sizeof(heldentity_));
_cached_size_ = 0;
}
Item::~Item() {
// @@protoc_insertion_point(destructor:Item)
SharedDtor();
}
void Item::SharedDtor() {
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
text_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) {
delete instancedata_;
}
if (this != internal_default_instance()) {
delete conditiondata_;
}
if (this != internal_default_instance()) {
delete contents_;
}
}
void Item::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Item::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[45].descriptor;
}
const Item& Item::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Item* Item::New(::google::protobuf::Arena* arena) const {
Item* n = new Item;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Item::Clear() {
// @@protoc_insertion_point(message_clear_start:Item)
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == NULL && instancedata_ != NULL) {
delete instancedata_;
}
instancedata_ = NULL;
if (GetArenaNoVirtual() == NULL && conditiondata_ != NULL) {
delete conditiondata_;
}
conditiondata_ = NULL;
if (GetArenaNoVirtual() == NULL && contents_ != NULL) {
delete contents_;
}
contents_ = NULL;
::memset(&uid_, 0, reinterpret_cast<char*>(&heldentity_) -
reinterpret_cast<char*>(&uid_) + sizeof(heldentity_));
}
bool Item::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Item)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 UID = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &uid_)));
} else {
goto handle_unusual;
}
break;
}
// int32 itemid = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &itemid_)));
} else {
goto handle_unusual;
}
break;
}
// int32 slot = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &slot_)));
} else {
goto handle_unusual;
}
break;
}
// int32 amount = 4;
case 4: {
if (tag == 32u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &amount_)));
} else {
goto handle_unusual;
}
break;
}
// int32 flags = 5;
case 5: {
if (tag == 40u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &flags_)));
} else {
goto handle_unusual;
}
break;
}
// float removetime = 6;
case 6: {
if (tag == 53u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &removetime_)));
} else {
goto handle_unusual;
}
break;
}
// float locktime = 7;
case 7: {
if (tag == 61u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &locktime_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 worldEntity = 8;
case 8: {
if (tag == 64u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &worldentity_)));
} else {
goto handle_unusual;
}
break;
}
// .InstanceData instanceData = 9;
case 9: {
if (tag == 74u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_instancedata()));
} else {
goto handle_unusual;
}
break;
}
// uint32 heldEntity = 10;
case 10: {
if (tag == 80u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &heldentity_)));
} else {
goto handle_unusual;
}
break;
}
// .ConditionData conditionData = 11;
case 11: {
if (tag == 90u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_conditiondata()));
} else {
goto handle_unusual;
}
break;
}
// string name = 14;
case 14: {
if (tag == 114u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"Item.name"));
} else {
goto handle_unusual;
}
break;
}
// string text = 15;
case 15: {
if (tag == 122u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_text()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"Item.text"));
} else {
goto handle_unusual;
}
break;
}
// uint64 skinid = 16;
case 16: {
if (tag == 128u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &skinid_)));
} else {
goto handle_unusual;
}
break;
}
// .ItemContainer contents = 100;
case 100: {
if (tag == 802u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_contents()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Item)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Item)
return false;
#undef DO_
}
void Item::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Item)
// uint32 UID = 1;
if (this->uid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->uid(), output);
}
// int32 itemid = 2;
if (this->itemid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->itemid(), output);
}
// int32 slot = 3;
if (this->slot() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->slot(), output);
}
// int32 amount = 4;
if (this->amount() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->amount(), output);
}
// int32 flags = 5;
if (this->flags() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->flags(), output);
}
// float removetime = 6;
if (this->removetime() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->removetime(), output);
}
// float locktime = 7;
if (this->locktime() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->locktime(), output);
}
// uint32 worldEntity = 8;
if (this->worldentity() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->worldentity(), output);
}
// .InstanceData instanceData = 9;
if (this->has_instancedata()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9, *this->instancedata_, output);
}
// uint32 heldEntity = 10;
if (this->heldentity() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->heldentity(), output);
}
// .ConditionData conditionData = 11;
if (this->has_conditiondata()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, *this->conditiondata_, output);
}
// string name = 14;
if (this->name().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Item.name");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14, this->name(), output);
}
// string text = 15;
if (this->text().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Item.text");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15, this->text(), output);
}
// uint64 skinid = 16;
if (this->skinid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(16, this->skinid(), output);
}
// .ItemContainer contents = 100;
if (this->has_contents()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
100, *this->contents_, output);
}
// @@protoc_insertion_point(serialize_end:Item)
}
::google::protobuf::uint8* Item::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Item)
// uint32 UID = 1;
if (this->uid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->uid(), target);
}
// int32 itemid = 2;
if (this->itemid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->itemid(), target);
}
// int32 slot = 3;
if (this->slot() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->slot(), target);
}
// int32 amount = 4;
if (this->amount() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->amount(), target);
}
// int32 flags = 5;
if (this->flags() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->flags(), target);
}
// float removetime = 6;
if (this->removetime() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->removetime(), target);
}
// float locktime = 7;
if (this->locktime() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->locktime(), target);
}
// uint32 worldEntity = 8;
if (this->worldentity() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->worldentity(), target);
}
// .InstanceData instanceData = 9;
if (this->has_instancedata()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
9, *this->instancedata_, false, target);
}
// uint32 heldEntity = 10;
if (this->heldentity() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->heldentity(), target);
}
// .ConditionData conditionData = 11;
if (this->has_conditiondata()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
11, *this->conditiondata_, false, target);
}
// string name = 14;
if (this->name().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Item.name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14, this->name(), target);
}
// string text = 15;
if (this->text().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Item.text");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
15, this->text(), target);
}
// uint64 skinid = 16;
if (this->skinid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(16, this->skinid(), target);
}
// .ItemContainer contents = 100;
if (this->has_contents()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
100, *this->contents_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:Item)
return target;
}
size_t Item::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Item)
size_t total_size = 0;
// string name = 14;
if (this->name().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->name());
}
// string text = 15;
if (this->text().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->text());
}
// .InstanceData instanceData = 9;
if (this->has_instancedata()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->instancedata_);
}
// .ConditionData conditionData = 11;
if (this->has_conditiondata()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->conditiondata_);
}
// .ItemContainer contents = 100;
if (this->has_contents()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->contents_);
}
// uint32 UID = 1;
if (this->uid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->uid());
}
// int32 itemid = 2;
if (this->itemid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->itemid());
}
// int32 slot = 3;
if (this->slot() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->slot());
}
// int32 amount = 4;
if (this->amount() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->amount());
}
// int32 flags = 5;
if (this->flags() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->flags());
}
// float removetime = 6;
if (this->removetime() != 0) {
total_size += 1 + 4;
}
// float locktime = 7;
if (this->locktime() != 0) {
total_size += 1 + 4;
}
// uint32 worldEntity = 8;
if (this->worldentity() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->worldentity());
}
// uint64 skinid = 16;
if (this->skinid() != 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->skinid());
}
// uint32 heldEntity = 10;
if (this->heldentity() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->heldentity());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Item::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Item)
GOOGLE_DCHECK_NE(&from, this);
const Item* source =
::google::protobuf::internal::DynamicCastToGenerated<const Item>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Item)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Item)
MergeFrom(*source);
}
}
void Item::MergeFrom(const Item& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Item)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.text().size() > 0) {
text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.text_);
}
if (from.has_instancedata()) {
mutable_instancedata()->::InstanceData::MergeFrom(from.instancedata());
}
if (from.has_conditiondata()) {
mutable_conditiondata()->::ConditionData::MergeFrom(from.conditiondata());
}
if (from.has_contents()) {
mutable_contents()->::ItemContainer::MergeFrom(from.contents());
}
if (from.uid() != 0) {
set_uid(from.uid());
}
if (from.itemid() != 0) {
set_itemid(from.itemid());
}
if (from.slot() != 0) {
set_slot(from.slot());
}
if (from.amount() != 0) {
set_amount(from.amount());
}
if (from.flags() != 0) {
set_flags(from.flags());
}
if (from.removetime() != 0) {
set_removetime(from.removetime());
}
if (from.locktime() != 0) {
set_locktime(from.locktime());
}
if (from.worldentity() != 0) {
set_worldentity(from.worldentity());
}
if (from.skinid() != 0) {
set_skinid(from.skinid());
}
if (from.heldentity() != 0) {
set_heldentity(from.heldentity());
}
}
void Item::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Item)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Item::CopyFrom(const Item& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Item)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Item::IsInitialized() const {
return true;
}
void Item::Swap(Item* other) {
if (other == this) return;
InternalSwap(other);
}
void Item::InternalSwap(Item* other) {
name_.Swap(&other->name_);
text_.Swap(&other->text_);
std::swap(instancedata_, other->instancedata_);
std::swap(conditiondata_, other->conditiondata_);
std::swap(contents_, other->contents_);
std::swap(uid_, other->uid_);
std::swap(itemid_, other->itemid_);
std::swap(slot_, other->slot_);
std::swap(amount_, other->amount_);
std::swap(flags_, other->flags_);
std::swap(removetime_, other->removetime_);
std::swap(locktime_, other->locktime_);
std::swap(worldentity_, other->worldentity_);
std::swap(skinid_, other->skinid_);
std::swap(heldentity_, other->heldentity_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Item::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[45];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Item
// uint32 UID = 1;
void Item::clear_uid() {
uid_ = 0u;
}
::google::protobuf::uint32 Item::uid() const {
// @@protoc_insertion_point(field_get:Item.UID)
return uid_;
}
void Item::set_uid(::google::protobuf::uint32 value) {
uid_ = value;
// @@protoc_insertion_point(field_set:Item.UID)
}
// int32 itemid = 2;
void Item::clear_itemid() {
itemid_ = 0;
}
::google::protobuf::int32 Item::itemid() const {
// @@protoc_insertion_point(field_get:Item.itemid)
return itemid_;
}
void Item::set_itemid(::google::protobuf::int32 value) {
itemid_ = value;
// @@protoc_insertion_point(field_set:Item.itemid)
}
// int32 slot = 3;
void Item::clear_slot() {
slot_ = 0;
}
::google::protobuf::int32 Item::slot() const {
// @@protoc_insertion_point(field_get:Item.slot)
return slot_;
}
void Item::set_slot(::google::protobuf::int32 value) {
slot_ = value;
// @@protoc_insertion_point(field_set:Item.slot)
}
// int32 amount = 4;
void Item::clear_amount() {
amount_ = 0;
}
::google::protobuf::int32 Item::amount() const {
// @@protoc_insertion_point(field_get:Item.amount)
return amount_;
}
void Item::set_amount(::google::protobuf::int32 value) {
amount_ = value;
// @@protoc_insertion_point(field_set:Item.amount)
}
// int32 flags = 5;
void Item::clear_flags() {
flags_ = 0;
}
::google::protobuf::int32 Item::flags() const {
// @@protoc_insertion_point(field_get:Item.flags)
return flags_;
}
void Item::set_flags(::google::protobuf::int32 value) {
flags_ = value;
// @@protoc_insertion_point(field_set:Item.flags)
}
// float removetime = 6;
void Item::clear_removetime() {
removetime_ = 0;
}
float Item::removetime() const {
// @@protoc_insertion_point(field_get:Item.removetime)
return removetime_;
}
void Item::set_removetime(float value) {
removetime_ = value;
// @@protoc_insertion_point(field_set:Item.removetime)
}
// float locktime = 7;
void Item::clear_locktime() {
locktime_ = 0;
}
float Item::locktime() const {
// @@protoc_insertion_point(field_get:Item.locktime)
return locktime_;
}
void Item::set_locktime(float value) {
locktime_ = value;
// @@protoc_insertion_point(field_set:Item.locktime)
}
// uint32 worldEntity = 8;
void Item::clear_worldentity() {
worldentity_ = 0u;
}
::google::protobuf::uint32 Item::worldentity() const {
// @@protoc_insertion_point(field_get:Item.worldEntity)
return worldentity_;
}
void Item::set_worldentity(::google::protobuf::uint32 value) {
worldentity_ = value;
// @@protoc_insertion_point(field_set:Item.worldEntity)
}
// .InstanceData instanceData = 9;
bool Item::has_instancedata() const {
return this != internal_default_instance() && instancedata_ != NULL;
}
void Item::clear_instancedata() {
if (GetArenaNoVirtual() == NULL && instancedata_ != NULL) delete instancedata_;
instancedata_ = NULL;
}
const ::InstanceData& Item::instancedata() const {
// @@protoc_insertion_point(field_get:Item.instanceData)
return instancedata_ != NULL ? *instancedata_
: *::InstanceData::internal_default_instance();
}
::InstanceData* Item::mutable_instancedata() {
if (instancedata_ == NULL) {
instancedata_ = new ::InstanceData;
}
// @@protoc_insertion_point(field_mutable:Item.instanceData)
return instancedata_;
}
::InstanceData* Item::release_instancedata() {
// @@protoc_insertion_point(field_release:Item.instanceData)
::InstanceData* temp = instancedata_;
instancedata_ = NULL;
return temp;
}
void Item::set_allocated_instancedata(::InstanceData* instancedata) {
delete instancedata_;
instancedata_ = instancedata;
if (instancedata) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Item.instanceData)
}
// uint32 heldEntity = 10;
void Item::clear_heldentity() {
heldentity_ = 0u;
}
::google::protobuf::uint32 Item::heldentity() const {
// @@protoc_insertion_point(field_get:Item.heldEntity)
return heldentity_;
}
void Item::set_heldentity(::google::protobuf::uint32 value) {
heldentity_ = value;
// @@protoc_insertion_point(field_set:Item.heldEntity)
}
// .ConditionData conditionData = 11;
bool Item::has_conditiondata() const {
return this != internal_default_instance() && conditiondata_ != NULL;
}
void Item::clear_conditiondata() {
if (GetArenaNoVirtual() == NULL && conditiondata_ != NULL) delete conditiondata_;
conditiondata_ = NULL;
}
const ::ConditionData& Item::conditiondata() const {
// @@protoc_insertion_point(field_get:Item.conditionData)
return conditiondata_ != NULL ? *conditiondata_
: *::ConditionData::internal_default_instance();
}
::ConditionData* Item::mutable_conditiondata() {
if (conditiondata_ == NULL) {
conditiondata_ = new ::ConditionData;
}
// @@protoc_insertion_point(field_mutable:Item.conditionData)
return conditiondata_;
}
::ConditionData* Item::release_conditiondata() {
// @@protoc_insertion_point(field_release:Item.conditionData)
::ConditionData* temp = conditiondata_;
conditiondata_ = NULL;
return temp;
}
void Item::set_allocated_conditiondata(::ConditionData* conditiondata) {
delete conditiondata_;
conditiondata_ = conditiondata;
if (conditiondata) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Item.conditionData)
}
// string name = 14;
void Item::clear_name() {
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& Item::name() const {
// @@protoc_insertion_point(field_get:Item.name)
return name_.GetNoArena();
}
void Item::set_name(const ::std::string& value) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Item.name)
}
#if LANG_CXX11
void Item::set_name(::std::string&& value) {
name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Item.name)
}
#endif
void Item::set_name(const char* value) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Item.name)
}
void Item::set_name(const char* value, size_t size) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Item.name)
}
::std::string* Item::mutable_name() {
// @@protoc_insertion_point(field_mutable:Item.name)
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Item::release_name() {
// @@protoc_insertion_point(field_release:Item.name)
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Item::set_allocated_name(::std::string* name) {
if (name != NULL) {
} else {
}
name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
// @@protoc_insertion_point(field_set_allocated:Item.name)
}
// string text = 15;
void Item::clear_text() {
text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& Item::text() const {
// @@protoc_insertion_point(field_get:Item.text)
return text_.GetNoArena();
}
void Item::set_text(const ::std::string& value) {
text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Item.text)
}
#if LANG_CXX11
void Item::set_text(::std::string&& value) {
text_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Item.text)
}
#endif
void Item::set_text(const char* value) {
text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Item.text)
}
void Item::set_text(const char* value, size_t size) {
text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Item.text)
}
::std::string* Item::mutable_text() {
// @@protoc_insertion_point(field_mutable:Item.text)
return text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Item::release_text() {
// @@protoc_insertion_point(field_release:Item.text)
return text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Item::set_allocated_text(::std::string* text) {
if (text != NULL) {
} else {
}
text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), text);
// @@protoc_insertion_point(field_set_allocated:Item.text)
}
// uint64 skinid = 16;
void Item::clear_skinid() {
skinid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 Item::skinid() const {
// @@protoc_insertion_point(field_get:Item.skinid)
return skinid_;
}
void Item::set_skinid(::google::protobuf::uint64 value) {
skinid_ = value;
// @@protoc_insertion_point(field_set:Item.skinid)
}
// .ItemContainer contents = 100;
bool Item::has_contents() const {
return this != internal_default_instance() && contents_ != NULL;
}
void Item::clear_contents() {
if (GetArenaNoVirtual() == NULL && contents_ != NULL) delete contents_;
contents_ = NULL;
}
const ::ItemContainer& Item::contents() const {
// @@protoc_insertion_point(field_get:Item.contents)
return contents_ != NULL ? *contents_
: *::ItemContainer::internal_default_instance();
}
::ItemContainer* Item::mutable_contents() {
if (contents_ == NULL) {
contents_ = new ::ItemContainer;
}
// @@protoc_insertion_point(field_mutable:Item.contents)
return contents_;
}
::ItemContainer* Item::release_contents() {
// @@protoc_insertion_point(field_release:Item.contents)
::ItemContainer* temp = contents_;
contents_ = NULL;
return temp;
}
void Item::set_allocated_contents(::ItemContainer* contents) {
delete contents_;
contents_ = contents;
if (contents) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:Item.contents)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BasePlayer::kNameFieldNumber;
const int BasePlayer::kUseridFieldNumber;
const int BasePlayer::kInventoryFieldNumber;
const int BasePlayer::kMetabolismFieldNumber;
const int BasePlayer::kModelStateFieldNumber;
const int BasePlayer::kPlayerFlagsFieldNumber;
const int BasePlayer::kHeldEntityFieldNumber;
const int BasePlayer::kHealthFieldNumber;
const int BasePlayer::kPersistantDataFieldNumber;
const int BasePlayer::kSkinColFieldNumber;
const int BasePlayer::kSkinTexFieldNumber;
const int BasePlayer::kSkinMeshFieldNumber;
const int BasePlayer::kCurrentLifeFieldNumber;
const int BasePlayer::kPreviousLifeFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BasePlayer::BasePlayer()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:BasePlayer)
}
BasePlayer::BasePlayer(const BasePlayer& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.has_inventory()) {
inventory_ = new ::PlayerInventory(*from.inventory_);
} else {
inventory_ = NULL;
}
if (from.has_metabolism()) {
metabolism_ = new ::PlayerMetabolism(*from.metabolism_);
} else {
metabolism_ = NULL;
}
if (from.has_modelstate()) {
modelstate_ = new ::ModelState(*from.modelstate_);
} else {
modelstate_ = NULL;
}
if (from.has_persistantdata()) {
persistantdata_ = new ::PersistantPlayer(*from.persistantdata_);
} else {
persistantdata_ = NULL;
}
if (from.has_currentlife()) {
currentlife_ = new ::PlayerLifeStory(*from.currentlife_);
} else {
currentlife_ = NULL;
}
if (from.has_previouslife()) {
previouslife_ = new ::PlayerLifeStory(*from.previouslife_);
} else {
previouslife_ = NULL;
}
::memcpy(&userid_, &from.userid_,
reinterpret_cast<char*>(&skinmesh_) -
reinterpret_cast<char*>(&userid_) + sizeof(skinmesh_));
// @@protoc_insertion_point(copy_constructor:BasePlayer)
}
void BasePlayer::SharedCtor() {
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&inventory_, 0, reinterpret_cast<char*>(&skinmesh_) -
reinterpret_cast<char*>(&inventory_) + sizeof(skinmesh_));
_cached_size_ = 0;
}
BasePlayer::~BasePlayer() {
// @@protoc_insertion_point(destructor:BasePlayer)
SharedDtor();
}
void BasePlayer::SharedDtor() {
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) {
delete inventory_;
}
if (this != internal_default_instance()) {
delete metabolism_;
}
if (this != internal_default_instance()) {
delete modelstate_;
}
if (this != internal_default_instance()) {
delete persistantdata_;
}
if (this != internal_default_instance()) {
delete currentlife_;
}
if (this != internal_default_instance()) {
delete previouslife_;
}
}
void BasePlayer::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BasePlayer::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[46].descriptor;
}
const BasePlayer& BasePlayer::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
BasePlayer* BasePlayer::New(::google::protobuf::Arena* arena) const {
BasePlayer* n = new BasePlayer;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BasePlayer::Clear() {
// @@protoc_insertion_point(message_clear_start:BasePlayer)
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == NULL && inventory_ != NULL) {
delete inventory_;
}
inventory_ = NULL;
if (GetArenaNoVirtual() == NULL && metabolism_ != NULL) {
delete metabolism_;
}
metabolism_ = NULL;
if (GetArenaNoVirtual() == NULL && modelstate_ != NULL) {
delete modelstate_;
}
modelstate_ = NULL;
if (GetArenaNoVirtual() == NULL && persistantdata_ != NULL) {
delete persistantdata_;
}
persistantdata_ = NULL;
if (GetArenaNoVirtual() == NULL && currentlife_ != NULL) {
delete currentlife_;
}
currentlife_ = NULL;
if (GetArenaNoVirtual() == NULL && previouslife_ != NULL) {
delete previouslife_;
}
previouslife_ = NULL;
::memset(&userid_, 0, reinterpret_cast<char*>(&skinmesh_) -
reinterpret_cast<char*>(&userid_) + sizeof(skinmesh_));
}
bool BasePlayer::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:BasePlayer)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"BasePlayer.name"));
} else {
goto handle_unusual;
}
break;
}
// uint64 userid = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &userid_)));
} else {
goto handle_unusual;
}
break;
}
// .PlayerInventory inventory = 3;
case 3: {
if (tag == 26u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_inventory()));
} else {
goto handle_unusual;
}
break;
}
// .PlayerMetabolism metabolism = 4;
case 4: {
if (tag == 34u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_metabolism()));
} else {
goto handle_unusual;
}
break;
}
// .ModelState modelState = 6;
case 6: {
if (tag == 50u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_modelstate()));
} else {
goto handle_unusual;
}
break;
}
// int32 playerFlags = 7;
case 7: {
if (tag == 56u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &playerflags_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 heldEntity = 8;
case 8: {
if (tag == 64u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &heldentity_)));
} else {
goto handle_unusual;
}
break;
}
// float health = 9;
case 9: {
if (tag == 77u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &health_)));
} else {
goto handle_unusual;
}
break;
}
// .PersistantPlayer persistantData = 10;
case 10: {
if (tag == 82u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_persistantdata()));
} else {
goto handle_unusual;
}
break;
}
// float skinCol = 15;
case 15: {
if (tag == 125u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &skincol_)));
} else {
goto handle_unusual;
}
break;
}
// float skinTex = 16;
case 16: {
if (tag == 133u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &skintex_)));
} else {
goto handle_unusual;
}
break;
}
// float skinMesh = 17;
case 17: {
if (tag == 141u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &skinmesh_)));
} else {
goto handle_unusual;
}
break;
}
// .PlayerLifeStory currentLife = 20;
case 20: {
if (tag == 162u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_currentlife()));
} else {
goto handle_unusual;
}
break;
}
// .PlayerLifeStory previousLife = 21;
case 21: {
if (tag == 170u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_previouslife()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:BasePlayer)
return true;
failure:
// @@protoc_insertion_point(parse_failure:BasePlayer)
return false;
#undef DO_
}
void BasePlayer::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:BasePlayer)
// string name = 1;
if (this->name().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"BasePlayer.name");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->name(), output);
}
// uint64 userid = 2;
if (this->userid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->userid(), output);
}
// .PlayerInventory inventory = 3;
if (this->has_inventory()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, *this->inventory_, output);
}
// .PlayerMetabolism metabolism = 4;
if (this->has_metabolism()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, *this->metabolism_, output);
}
// .ModelState modelState = 6;
if (this->has_modelstate()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, *this->modelstate_, output);
}
// int32 playerFlags = 7;
if (this->playerflags() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->playerflags(), output);
}
// uint32 heldEntity = 8;
if (this->heldentity() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->heldentity(), output);
}
// float health = 9;
if (this->health() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->health(), output);
}
// .PersistantPlayer persistantData = 10;
if (this->has_persistantdata()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, *this->persistantdata_, output);
}
// float skinCol = 15;
if (this->skincol() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->skincol(), output);
}
// float skinTex = 16;
if (this->skintex() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(16, this->skintex(), output);
}
// float skinMesh = 17;
if (this->skinmesh() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(17, this->skinmesh(), output);
}
// .PlayerLifeStory currentLife = 20;
if (this->has_currentlife()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
20, *this->currentlife_, output);
}
// .PlayerLifeStory previousLife = 21;
if (this->has_previouslife()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
21, *this->previouslife_, output);
}
// @@protoc_insertion_point(serialize_end:BasePlayer)
}
::google::protobuf::uint8* BasePlayer::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:BasePlayer)
// string name = 1;
if (this->name().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"BasePlayer.name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->name(), target);
}
// uint64 userid = 2;
if (this->userid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->userid(), target);
}
// .PlayerInventory inventory = 3;
if (this->has_inventory()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
3, *this->inventory_, false, target);
}
// .PlayerMetabolism metabolism = 4;
if (this->has_metabolism()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
4, *this->metabolism_, false, target);
}
// .ModelState modelState = 6;
if (this->has_modelstate()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
6, *this->modelstate_, false, target);
}
// int32 playerFlags = 7;
if (this->playerflags() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->playerflags(), target);
}
// uint32 heldEntity = 8;
if (this->heldentity() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->heldentity(), target);
}
// float health = 9;
if (this->health() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->health(), target);
}
// .PersistantPlayer persistantData = 10;
if (this->has_persistantdata()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
10, *this->persistantdata_, false, target);
}
// float skinCol = 15;
if (this->skincol() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->skincol(), target);
}
// float skinTex = 16;
if (this->skintex() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(16, this->skintex(), target);
}
// float skinMesh = 17;
if (this->skinmesh() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(17, this->skinmesh(), target);
}
// .PlayerLifeStory currentLife = 20;
if (this->has_currentlife()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
20, *this->currentlife_, false, target);
}
// .PlayerLifeStory previousLife = 21;
if (this->has_previouslife()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
21, *this->previouslife_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:BasePlayer)
return target;
}
size_t BasePlayer::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BasePlayer)
size_t total_size = 0;
// string name = 1;
if (this->name().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->name());
}
// .PlayerInventory inventory = 3;
if (this->has_inventory()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->inventory_);
}
// .PlayerMetabolism metabolism = 4;
if (this->has_metabolism()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->metabolism_);
}
// .ModelState modelState = 6;
if (this->has_modelstate()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->modelstate_);
}
// .PersistantPlayer persistantData = 10;
if (this->has_persistantdata()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->persistantdata_);
}
// .PlayerLifeStory currentLife = 20;
if (this->has_currentlife()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->currentlife_);
}
// .PlayerLifeStory previousLife = 21;
if (this->has_previouslife()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->previouslife_);
}
// uint64 userid = 2;
if (this->userid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->userid());
}
// int32 playerFlags = 7;
if (this->playerflags() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->playerflags());
}
// uint32 heldEntity = 8;
if (this->heldentity() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->heldentity());
}
// float health = 9;
if (this->health() != 0) {
total_size += 1 + 4;
}
// float skinCol = 15;
if (this->skincol() != 0) {
total_size += 1 + 4;
}
// float skinTex = 16;
if (this->skintex() != 0) {
total_size += 2 + 4;
}
// float skinMesh = 17;
if (this->skinmesh() != 0) {
total_size += 2 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BasePlayer::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BasePlayer)
GOOGLE_DCHECK_NE(&from, this);
const BasePlayer* source =
::google::protobuf::internal::DynamicCastToGenerated<const BasePlayer>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:BasePlayer)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:BasePlayer)
MergeFrom(*source);
}
}
void BasePlayer::MergeFrom(const BasePlayer& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BasePlayer)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.has_inventory()) {
mutable_inventory()->::PlayerInventory::MergeFrom(from.inventory());
}
if (from.has_metabolism()) {
mutable_metabolism()->::PlayerMetabolism::MergeFrom(from.metabolism());
}
if (from.has_modelstate()) {
mutable_modelstate()->::ModelState::MergeFrom(from.modelstate());
}
if (from.has_persistantdata()) {
mutable_persistantdata()->::PersistantPlayer::MergeFrom(from.persistantdata());
}
if (from.has_currentlife()) {
mutable_currentlife()->::PlayerLifeStory::MergeFrom(from.currentlife());
}
if (from.has_previouslife()) {
mutable_previouslife()->::PlayerLifeStory::MergeFrom(from.previouslife());
}
if (from.userid() != 0) {
set_userid(from.userid());
}
if (from.playerflags() != 0) {
set_playerflags(from.playerflags());
}
if (from.heldentity() != 0) {
set_heldentity(from.heldentity());
}
if (from.health() != 0) {
set_health(from.health());
}
if (from.skincol() != 0) {
set_skincol(from.skincol());
}
if (from.skintex() != 0) {
set_skintex(from.skintex());
}
if (from.skinmesh() != 0) {
set_skinmesh(from.skinmesh());
}
}
void BasePlayer::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BasePlayer)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BasePlayer::CopyFrom(const BasePlayer& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BasePlayer)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BasePlayer::IsInitialized() const {
return true;
}
void BasePlayer::Swap(BasePlayer* other) {
if (other == this) return;
InternalSwap(other);
}
void BasePlayer::InternalSwap(BasePlayer* other) {
name_.Swap(&other->name_);
std::swap(inventory_, other->inventory_);
std::swap(metabolism_, other->metabolism_);
std::swap(modelstate_, other->modelstate_);
std::swap(persistantdata_, other->persistantdata_);
std::swap(currentlife_, other->currentlife_);
std::swap(previouslife_, other->previouslife_);
std::swap(userid_, other->userid_);
std::swap(playerflags_, other->playerflags_);
std::swap(heldentity_, other->heldentity_);
std::swap(health_, other->health_);
std::swap(skincol_, other->skincol_);
std::swap(skintex_, other->skintex_);
std::swap(skinmesh_, other->skinmesh_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BasePlayer::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[46];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BasePlayer
// string name = 1;
void BasePlayer::clear_name() {
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& BasePlayer::name() const {
// @@protoc_insertion_point(field_get:BasePlayer.name)
return name_.GetNoArena();
}
void BasePlayer::set_name(const ::std::string& value) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:BasePlayer.name)
}
#if LANG_CXX11
void BasePlayer::set_name(::std::string&& value) {
name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:BasePlayer.name)
}
#endif
void BasePlayer::set_name(const char* value) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:BasePlayer.name)
}
void BasePlayer::set_name(const char* value, size_t size) {
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:BasePlayer.name)
}
::std::string* BasePlayer::mutable_name() {
// @@protoc_insertion_point(field_mutable:BasePlayer.name)
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* BasePlayer::release_name() {
// @@protoc_insertion_point(field_release:BasePlayer.name)
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void BasePlayer::set_allocated_name(::std::string* name) {
if (name != NULL) {
} else {
}
name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
// @@protoc_insertion_point(field_set_allocated:BasePlayer.name)
}
// uint64 userid = 2;
void BasePlayer::clear_userid() {
userid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 BasePlayer::userid() const {
// @@protoc_insertion_point(field_get:BasePlayer.userid)
return userid_;
}
void BasePlayer::set_userid(::google::protobuf::uint64 value) {
userid_ = value;
// @@protoc_insertion_point(field_set:BasePlayer.userid)
}
// .PlayerInventory inventory = 3;
bool BasePlayer::has_inventory() const {
return this != internal_default_instance() && inventory_ != NULL;
}
void BasePlayer::clear_inventory() {
if (GetArenaNoVirtual() == NULL && inventory_ != NULL) delete inventory_;
inventory_ = NULL;
}
const ::PlayerInventory& BasePlayer::inventory() const {
// @@protoc_insertion_point(field_get:BasePlayer.inventory)
return inventory_ != NULL ? *inventory_
: *::PlayerInventory::internal_default_instance();
}
::PlayerInventory* BasePlayer::mutable_inventory() {
if (inventory_ == NULL) {
inventory_ = new ::PlayerInventory;
}
// @@protoc_insertion_point(field_mutable:BasePlayer.inventory)
return inventory_;
}
::PlayerInventory* BasePlayer::release_inventory() {
// @@protoc_insertion_point(field_release:BasePlayer.inventory)
::PlayerInventory* temp = inventory_;
inventory_ = NULL;
return temp;
}
void BasePlayer::set_allocated_inventory(::PlayerInventory* inventory) {
delete inventory_;
inventory_ = inventory;
if (inventory) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BasePlayer.inventory)
}
// .PlayerMetabolism metabolism = 4;
bool BasePlayer::has_metabolism() const {
return this != internal_default_instance() && metabolism_ != NULL;
}
void BasePlayer::clear_metabolism() {
if (GetArenaNoVirtual() == NULL && metabolism_ != NULL) delete metabolism_;
metabolism_ = NULL;
}
const ::PlayerMetabolism& BasePlayer::metabolism() const {
// @@protoc_insertion_point(field_get:BasePlayer.metabolism)
return metabolism_ != NULL ? *metabolism_
: *::PlayerMetabolism::internal_default_instance();
}
::PlayerMetabolism* BasePlayer::mutable_metabolism() {
if (metabolism_ == NULL) {
metabolism_ = new ::PlayerMetabolism;
}
// @@protoc_insertion_point(field_mutable:BasePlayer.metabolism)
return metabolism_;
}
::PlayerMetabolism* BasePlayer::release_metabolism() {
// @@protoc_insertion_point(field_release:BasePlayer.metabolism)
::PlayerMetabolism* temp = metabolism_;
metabolism_ = NULL;
return temp;
}
void BasePlayer::set_allocated_metabolism(::PlayerMetabolism* metabolism) {
delete metabolism_;
metabolism_ = metabolism;
if (metabolism) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BasePlayer.metabolism)
}
// .ModelState modelState = 6;
bool BasePlayer::has_modelstate() const {
return this != internal_default_instance() && modelstate_ != NULL;
}
void BasePlayer::clear_modelstate() {
if (GetArenaNoVirtual() == NULL && modelstate_ != NULL) delete modelstate_;
modelstate_ = NULL;
}
const ::ModelState& BasePlayer::modelstate() const {
// @@protoc_insertion_point(field_get:BasePlayer.modelState)
return modelstate_ != NULL ? *modelstate_
: *::ModelState::internal_default_instance();
}
::ModelState* BasePlayer::mutable_modelstate() {
if (modelstate_ == NULL) {
modelstate_ = new ::ModelState;
}
// @@protoc_insertion_point(field_mutable:BasePlayer.modelState)
return modelstate_;
}
::ModelState* BasePlayer::release_modelstate() {
// @@protoc_insertion_point(field_release:BasePlayer.modelState)
::ModelState* temp = modelstate_;
modelstate_ = NULL;
return temp;
}
void BasePlayer::set_allocated_modelstate(::ModelState* modelstate) {
delete modelstate_;
modelstate_ = modelstate;
if (modelstate) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BasePlayer.modelState)
}
// int32 playerFlags = 7;
void BasePlayer::clear_playerflags() {
playerflags_ = 0;
}
::google::protobuf::int32 BasePlayer::playerflags() const {
// @@protoc_insertion_point(field_get:BasePlayer.playerFlags)
return playerflags_;
}
void BasePlayer::set_playerflags(::google::protobuf::int32 value) {
playerflags_ = value;
// @@protoc_insertion_point(field_set:BasePlayer.playerFlags)
}
// uint32 heldEntity = 8;
void BasePlayer::clear_heldentity() {
heldentity_ = 0u;
}
::google::protobuf::uint32 BasePlayer::heldentity() const {
// @@protoc_insertion_point(field_get:BasePlayer.heldEntity)
return heldentity_;
}
void BasePlayer::set_heldentity(::google::protobuf::uint32 value) {
heldentity_ = value;
// @@protoc_insertion_point(field_set:BasePlayer.heldEntity)
}
// float health = 9;
void BasePlayer::clear_health() {
health_ = 0;
}
float BasePlayer::health() const {
// @@protoc_insertion_point(field_get:BasePlayer.health)
return health_;
}
void BasePlayer::set_health(float value) {
health_ = value;
// @@protoc_insertion_point(field_set:BasePlayer.health)
}
// .PersistantPlayer persistantData = 10;
bool BasePlayer::has_persistantdata() const {
return this != internal_default_instance() && persistantdata_ != NULL;
}
void BasePlayer::clear_persistantdata() {
if (GetArenaNoVirtual() == NULL && persistantdata_ != NULL) delete persistantdata_;
persistantdata_ = NULL;
}
const ::PersistantPlayer& BasePlayer::persistantdata() const {
// @@protoc_insertion_point(field_get:BasePlayer.persistantData)
return persistantdata_ != NULL ? *persistantdata_
: *::PersistantPlayer::internal_default_instance();
}
::PersistantPlayer* BasePlayer::mutable_persistantdata() {
if (persistantdata_ == NULL) {
persistantdata_ = new ::PersistantPlayer;
}
// @@protoc_insertion_point(field_mutable:BasePlayer.persistantData)
return persistantdata_;
}
::PersistantPlayer* BasePlayer::release_persistantdata() {
// @@protoc_insertion_point(field_release:BasePlayer.persistantData)
::PersistantPlayer* temp = persistantdata_;
persistantdata_ = NULL;
return temp;
}
void BasePlayer::set_allocated_persistantdata(::PersistantPlayer* persistantdata) {
delete persistantdata_;
persistantdata_ = persistantdata;
if (persistantdata) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BasePlayer.persistantData)
}
// float skinCol = 15;
void BasePlayer::clear_skincol() {
skincol_ = 0;
}
float BasePlayer::skincol() const {
// @@protoc_insertion_point(field_get:BasePlayer.skinCol)
return skincol_;
}
void BasePlayer::set_skincol(float value) {
skincol_ = value;
// @@protoc_insertion_point(field_set:BasePlayer.skinCol)
}
// float skinTex = 16;
void BasePlayer::clear_skintex() {
skintex_ = 0;
}
float BasePlayer::skintex() const {
// @@protoc_insertion_point(field_get:BasePlayer.skinTex)
return skintex_;
}
void BasePlayer::set_skintex(float value) {
skintex_ = value;
// @@protoc_insertion_point(field_set:BasePlayer.skinTex)
}
// float skinMesh = 17;
void BasePlayer::clear_skinmesh() {
skinmesh_ = 0;
}
float BasePlayer::skinmesh() const {
// @@protoc_insertion_point(field_get:BasePlayer.skinMesh)
return skinmesh_;
}
void BasePlayer::set_skinmesh(float value) {
skinmesh_ = value;
// @@protoc_insertion_point(field_set:BasePlayer.skinMesh)
}
// .PlayerLifeStory currentLife = 20;
bool BasePlayer::has_currentlife() const {
return this != internal_default_instance() && currentlife_ != NULL;
}
void BasePlayer::clear_currentlife() {
if (GetArenaNoVirtual() == NULL && currentlife_ != NULL) delete currentlife_;
currentlife_ = NULL;
}
const ::PlayerLifeStory& BasePlayer::currentlife() const {
// @@protoc_insertion_point(field_get:BasePlayer.currentLife)
return currentlife_ != NULL ? *currentlife_
: *::PlayerLifeStory::internal_default_instance();
}
::PlayerLifeStory* BasePlayer::mutable_currentlife() {
if (currentlife_ == NULL) {
currentlife_ = new ::PlayerLifeStory;
}
// @@protoc_insertion_point(field_mutable:BasePlayer.currentLife)
return currentlife_;
}
::PlayerLifeStory* BasePlayer::release_currentlife() {
// @@protoc_insertion_point(field_release:BasePlayer.currentLife)
::PlayerLifeStory* temp = currentlife_;
currentlife_ = NULL;
return temp;
}
void BasePlayer::set_allocated_currentlife(::PlayerLifeStory* currentlife) {
delete currentlife_;
currentlife_ = currentlife;
if (currentlife) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BasePlayer.currentLife)
}
// .PlayerLifeStory previousLife = 21;
bool BasePlayer::has_previouslife() const {
return this != internal_default_instance() && previouslife_ != NULL;
}
void BasePlayer::clear_previouslife() {
if (GetArenaNoVirtual() == NULL && previouslife_ != NULL) delete previouslife_;
previouslife_ = NULL;
}
const ::PlayerLifeStory& BasePlayer::previouslife() const {
// @@protoc_insertion_point(field_get:BasePlayer.previousLife)
return previouslife_ != NULL ? *previouslife_
: *::PlayerLifeStory::internal_default_instance();
}
::PlayerLifeStory* BasePlayer::mutable_previouslife() {
if (previouslife_ == NULL) {
previouslife_ = new ::PlayerLifeStory;
}
// @@protoc_insertion_point(field_mutable:BasePlayer.previousLife)
return previouslife_;
}
::PlayerLifeStory* BasePlayer::release_previouslife() {
// @@protoc_insertion_point(field_release:BasePlayer.previousLife)
::PlayerLifeStory* temp = previouslife_;
previouslife_ = NULL;
return temp;
}
void BasePlayer::set_allocated_previouslife(::PlayerLifeStory* previouslife) {
delete previouslife_;
previouslife_ = previouslife;
if (previouslife) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:BasePlayer.previousLife)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PlayerMetabolism::kHealthFieldNumber;
const int PlayerMetabolism::kCaloriesFieldNumber;
const int PlayerMetabolism::kHydrationFieldNumber;
const int PlayerMetabolism::kHeartrateFieldNumber;
const int PlayerMetabolism::kTemperatureFieldNumber;
const int PlayerMetabolism::kPoisonFieldNumber;
const int PlayerMetabolism::kRadiationLevelFieldNumber;
const int PlayerMetabolism::kWetnessFieldNumber;
const int PlayerMetabolism::kDirtynessFieldNumber;
const int PlayerMetabolism::kOxygenFieldNumber;
const int PlayerMetabolism::kBleedingFieldNumber;
const int PlayerMetabolism::kRadiationPoisoningFieldNumber;
const int PlayerMetabolism::kComfortFieldNumber;
const int PlayerMetabolism::kPendingHealthFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PlayerMetabolism::PlayerMetabolism()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:PlayerMetabolism)
}
PlayerMetabolism::PlayerMetabolism(const PlayerMetabolism& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&health_, &from.health_,
reinterpret_cast<char*>(&pending_health_) -
reinterpret_cast<char*>(&health_) + sizeof(pending_health_));
// @@protoc_insertion_point(copy_constructor:PlayerMetabolism)
}
void PlayerMetabolism::SharedCtor() {
::memset(&health_, 0, reinterpret_cast<char*>(&pending_health_) -
reinterpret_cast<char*>(&health_) + sizeof(pending_health_));
_cached_size_ = 0;
}
PlayerMetabolism::~PlayerMetabolism() {
// @@protoc_insertion_point(destructor:PlayerMetabolism)
SharedDtor();
}
void PlayerMetabolism::SharedDtor() {
}
void PlayerMetabolism::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PlayerMetabolism::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[47].descriptor;
}
const PlayerMetabolism& PlayerMetabolism::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
PlayerMetabolism* PlayerMetabolism::New(::google::protobuf::Arena* arena) const {
PlayerMetabolism* n = new PlayerMetabolism;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void PlayerMetabolism::Clear() {
// @@protoc_insertion_point(message_clear_start:PlayerMetabolism)
::memset(&health_, 0, reinterpret_cast<char*>(&pending_health_) -
reinterpret_cast<char*>(&health_) + sizeof(pending_health_));
}
bool PlayerMetabolism::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:PlayerMetabolism)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float health = 1;
case 1: {
if (tag == 13u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &health_)));
} else {
goto handle_unusual;
}
break;
}
// float calories = 2;
case 2: {
if (tag == 21u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &calories_)));
} else {
goto handle_unusual;
}
break;
}
// float hydration = 3;
case 3: {
if (tag == 29u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &hydration_)));
} else {
goto handle_unusual;
}
break;
}
// float heartrate = 4;
case 4: {
if (tag == 37u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &heartrate_)));
} else {
goto handle_unusual;
}
break;
}
// float temperature = 5;
case 5: {
if (tag == 45u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &temperature_)));
} else {
goto handle_unusual;
}
break;
}
// float poison = 6;
case 6: {
if (tag == 53u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &poison_)));
} else {
goto handle_unusual;
}
break;
}
// float radiation_level = 7;
case 7: {
if (tag == 61u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &radiation_level_)));
} else {
goto handle_unusual;
}
break;
}
// float wetness = 8;
case 8: {
if (tag == 69u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &wetness_)));
} else {
goto handle_unusual;
}
break;
}
// float dirtyness = 9;
case 9: {
if (tag == 77u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &dirtyness_)));
} else {
goto handle_unusual;
}
break;
}
// float oxygen = 10;
case 10: {
if (tag == 85u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &oxygen_)));
} else {
goto handle_unusual;
}
break;
}
// float bleeding = 11;
case 11: {
if (tag == 93u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &bleeding_)));
} else {
goto handle_unusual;
}
break;
}
// float radiation_poisoning = 12;
case 12: {
if (tag == 101u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &radiation_poisoning_)));
} else {
goto handle_unusual;
}
break;
}
// float comfort = 13;
case 13: {
if (tag == 109u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &comfort_)));
} else {
goto handle_unusual;
}
break;
}
// float pending_health = 14;
case 14: {
if (tag == 117u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &pending_health_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:PlayerMetabolism)
return true;
failure:
// @@protoc_insertion_point(parse_failure:PlayerMetabolism)
return false;
#undef DO_
}
void PlayerMetabolism::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:PlayerMetabolism)
// float health = 1;
if (this->health() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->health(), output);
}
// float calories = 2;
if (this->calories() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->calories(), output);
}
// float hydration = 3;
if (this->hydration() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->hydration(), output);
}
// float heartrate = 4;
if (this->heartrate() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->heartrate(), output);
}
// float temperature = 5;
if (this->temperature() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->temperature(), output);
}
// float poison = 6;
if (this->poison() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->poison(), output);
}
// float radiation_level = 7;
if (this->radiation_level() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->radiation_level(), output);
}
// float wetness = 8;
if (this->wetness() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->wetness(), output);
}
// float dirtyness = 9;
if (this->dirtyness() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->dirtyness(), output);
}
// float oxygen = 10;
if (this->oxygen() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->oxygen(), output);
}
// float bleeding = 11;
if (this->bleeding() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->bleeding(), output);
}
// float radiation_poisoning = 12;
if (this->radiation_poisoning() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->radiation_poisoning(), output);
}
// float comfort = 13;
if (this->comfort() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->comfort(), output);
}
// float pending_health = 14;
if (this->pending_health() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->pending_health(), output);
}
// @@protoc_insertion_point(serialize_end:PlayerMetabolism)
}
::google::protobuf::uint8* PlayerMetabolism::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:PlayerMetabolism)
// float health = 1;
if (this->health() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->health(), target);
}
// float calories = 2;
if (this->calories() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->calories(), target);
}
// float hydration = 3;
if (this->hydration() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->hydration(), target);
}
// float heartrate = 4;
if (this->heartrate() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->heartrate(), target);
}
// float temperature = 5;
if (this->temperature() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->temperature(), target);
}
// float poison = 6;
if (this->poison() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->poison(), target);
}
// float radiation_level = 7;
if (this->radiation_level() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->radiation_level(), target);
}
// float wetness = 8;
if (this->wetness() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->wetness(), target);
}
// float dirtyness = 9;
if (this->dirtyness() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->dirtyness(), target);
}
// float oxygen = 10;
if (this->oxygen() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->oxygen(), target);
}
// float bleeding = 11;
if (this->bleeding() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->bleeding(), target);
}
// float radiation_poisoning = 12;
if (this->radiation_poisoning() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->radiation_poisoning(), target);
}
// float comfort = 13;
if (this->comfort() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->comfort(), target);
}
// float pending_health = 14;
if (this->pending_health() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->pending_health(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:PlayerMetabolism)
return target;
}
size_t PlayerMetabolism::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PlayerMetabolism)
size_t total_size = 0;
// float health = 1;
if (this->health() != 0) {
total_size += 1 + 4;
}
// float calories = 2;
if (this->calories() != 0) {
total_size += 1 + 4;
}
// float hydration = 3;
if (this->hydration() != 0) {
total_size += 1 + 4;
}
// float heartrate = 4;
if (this->heartrate() != 0) {
total_size += 1 + 4;
}
// float temperature = 5;
if (this->temperature() != 0) {
total_size += 1 + 4;
}
// float poison = 6;
if (this->poison() != 0) {
total_size += 1 + 4;
}
// float radiation_level = 7;
if (this->radiation_level() != 0) {
total_size += 1 + 4;
}
// float wetness = 8;
if (this->wetness() != 0) {
total_size += 1 + 4;
}
// float dirtyness = 9;
if (this->dirtyness() != 0) {
total_size += 1 + 4;
}
// float oxygen = 10;
if (this->oxygen() != 0) {
total_size += 1 + 4;
}
// float bleeding = 11;
if (this->bleeding() != 0) {
total_size += 1 + 4;
}
// float radiation_poisoning = 12;
if (this->radiation_poisoning() != 0) {
total_size += 1 + 4;
}
// float comfort = 13;
if (this->comfort() != 0) {
total_size += 1 + 4;
}
// float pending_health = 14;
if (this->pending_health() != 0) {
total_size += 1 + 4;
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PlayerMetabolism::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:PlayerMetabolism)
GOOGLE_DCHECK_NE(&from, this);
const PlayerMetabolism* source =
::google::protobuf::internal::DynamicCastToGenerated<const PlayerMetabolism>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PlayerMetabolism)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:PlayerMetabolism)
MergeFrom(*source);
}
}
void PlayerMetabolism::MergeFrom(const PlayerMetabolism& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:PlayerMetabolism)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.health() != 0) {
set_health(from.health());
}
if (from.calories() != 0) {
set_calories(from.calories());
}
if (from.hydration() != 0) {
set_hydration(from.hydration());
}
if (from.heartrate() != 0) {
set_heartrate(from.heartrate());
}
if (from.temperature() != 0) {
set_temperature(from.temperature());
}
if (from.poison() != 0) {
set_poison(from.poison());
}
if (from.radiation_level() != 0) {
set_radiation_level(from.radiation_level());
}
if (from.wetness() != 0) {
set_wetness(from.wetness());
}
if (from.dirtyness() != 0) {
set_dirtyness(from.dirtyness());
}
if (from.oxygen() != 0) {
set_oxygen(from.oxygen());
}
if (from.bleeding() != 0) {
set_bleeding(from.bleeding());
}
if (from.radiation_poisoning() != 0) {
set_radiation_poisoning(from.radiation_poisoning());
}
if (from.comfort() != 0) {
set_comfort(from.comfort());
}
if (from.pending_health() != 0) {
set_pending_health(from.pending_health());
}
}
void PlayerMetabolism::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:PlayerMetabolism)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PlayerMetabolism::CopyFrom(const PlayerMetabolism& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PlayerMetabolism)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PlayerMetabolism::IsInitialized() const {
return true;
}
void PlayerMetabolism::Swap(PlayerMetabolism* other) {
if (other == this) return;
InternalSwap(other);
}
void PlayerMetabolism::InternalSwap(PlayerMetabolism* other) {
std::swap(health_, other->health_);
std::swap(calories_, other->calories_);
std::swap(hydration_, other->hydration_);
std::swap(heartrate_, other->heartrate_);
std::swap(temperature_, other->temperature_);
std::swap(poison_, other->poison_);
std::swap(radiation_level_, other->radiation_level_);
std::swap(wetness_, other->wetness_);
std::swap(dirtyness_, other->dirtyness_);
std::swap(oxygen_, other->oxygen_);
std::swap(bleeding_, other->bleeding_);
std::swap(radiation_poisoning_, other->radiation_poisoning_);
std::swap(comfort_, other->comfort_);
std::swap(pending_health_, other->pending_health_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata PlayerMetabolism::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[47];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// PlayerMetabolism
// float health = 1;
void PlayerMetabolism::clear_health() {
health_ = 0;
}
float PlayerMetabolism::health() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.health)
return health_;
}
void PlayerMetabolism::set_health(float value) {
health_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.health)
}
// float calories = 2;
void PlayerMetabolism::clear_calories() {
calories_ = 0;
}
float PlayerMetabolism::calories() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.calories)
return calories_;
}
void PlayerMetabolism::set_calories(float value) {
calories_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.calories)
}
// float hydration = 3;
void PlayerMetabolism::clear_hydration() {
hydration_ = 0;
}
float PlayerMetabolism::hydration() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.hydration)
return hydration_;
}
void PlayerMetabolism::set_hydration(float value) {
hydration_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.hydration)
}
// float heartrate = 4;
void PlayerMetabolism::clear_heartrate() {
heartrate_ = 0;
}
float PlayerMetabolism::heartrate() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.heartrate)
return heartrate_;
}
void PlayerMetabolism::set_heartrate(float value) {
heartrate_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.heartrate)
}
// float temperature = 5;
void PlayerMetabolism::clear_temperature() {
temperature_ = 0;
}
float PlayerMetabolism::temperature() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.temperature)
return temperature_;
}
void PlayerMetabolism::set_temperature(float value) {
temperature_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.temperature)
}
// float poison = 6;
void PlayerMetabolism::clear_poison() {
poison_ = 0;
}
float PlayerMetabolism::poison() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.poison)
return poison_;
}
void PlayerMetabolism::set_poison(float value) {
poison_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.poison)
}
// float radiation_level = 7;
void PlayerMetabolism::clear_radiation_level() {
radiation_level_ = 0;
}
float PlayerMetabolism::radiation_level() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.radiation_level)
return radiation_level_;
}
void PlayerMetabolism::set_radiation_level(float value) {
radiation_level_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.radiation_level)
}
// float wetness = 8;
void PlayerMetabolism::clear_wetness() {
wetness_ = 0;
}
float PlayerMetabolism::wetness() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.wetness)
return wetness_;
}
void PlayerMetabolism::set_wetness(float value) {
wetness_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.wetness)
}
// float dirtyness = 9;
void PlayerMetabolism::clear_dirtyness() {
dirtyness_ = 0;
}
float PlayerMetabolism::dirtyness() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.dirtyness)
return dirtyness_;
}
void PlayerMetabolism::set_dirtyness(float value) {
dirtyness_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.dirtyness)
}
// float oxygen = 10;
void PlayerMetabolism::clear_oxygen() {
oxygen_ = 0;
}
float PlayerMetabolism::oxygen() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.oxygen)
return oxygen_;
}
void PlayerMetabolism::set_oxygen(float value) {
oxygen_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.oxygen)
}
// float bleeding = 11;
void PlayerMetabolism::clear_bleeding() {
bleeding_ = 0;
}
float PlayerMetabolism::bleeding() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.bleeding)
return bleeding_;
}
void PlayerMetabolism::set_bleeding(float value) {
bleeding_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.bleeding)
}
// float radiation_poisoning = 12;
void PlayerMetabolism::clear_radiation_poisoning() {
radiation_poisoning_ = 0;
}
float PlayerMetabolism::radiation_poisoning() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.radiation_poisoning)
return radiation_poisoning_;
}
void PlayerMetabolism::set_radiation_poisoning(float value) {
radiation_poisoning_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.radiation_poisoning)
}
// float comfort = 13;
void PlayerMetabolism::clear_comfort() {
comfort_ = 0;
}
float PlayerMetabolism::comfort() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.comfort)
return comfort_;
}
void PlayerMetabolism::set_comfort(float value) {
comfort_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.comfort)
}
// float pending_health = 14;
void PlayerMetabolism::clear_pending_health() {
pending_health_ = 0;
}
float PlayerMetabolism::pending_health() const {
// @@protoc_insertion_point(field_get:PlayerMetabolism.pending_health)
return pending_health_;
}
void PlayerMetabolism::set_pending_health(float value) {
pending_health_ = value;
// @@protoc_insertion_point(field_set:PlayerMetabolism.pending_health)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PlayerInventory::kInvMainFieldNumber;
const int PlayerInventory::kInvBeltFieldNumber;
const int PlayerInventory::kInvWearFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PlayerInventory::PlayerInventory()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:PlayerInventory)
}
PlayerInventory::PlayerInventory(const PlayerInventory& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_invmain()) {
invmain_ = new ::ItemContainer(*from.invmain_);
} else {
invmain_ = NULL;
}
if (from.has_invbelt()) {
invbelt_ = new ::ItemContainer(*from.invbelt_);
} else {
invbelt_ = NULL;
}
if (from.has_invwear()) {
invwear_ = new ::ItemContainer(*from.invwear_);
} else {
invwear_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:PlayerInventory)
}
void PlayerInventory::SharedCtor() {
::memset(&invmain_, 0, reinterpret_cast<char*>(&invwear_) -
reinterpret_cast<char*>(&invmain_) + sizeof(invwear_));
_cached_size_ = 0;
}
PlayerInventory::~PlayerInventory() {
// @@protoc_insertion_point(destructor:PlayerInventory)
SharedDtor();
}
void PlayerInventory::SharedDtor() {
if (this != internal_default_instance()) {
delete invmain_;
}
if (this != internal_default_instance()) {
delete invbelt_;
}
if (this != internal_default_instance()) {
delete invwear_;
}
}
void PlayerInventory::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PlayerInventory::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[48].descriptor;
}
const PlayerInventory& PlayerInventory::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
PlayerInventory* PlayerInventory::New(::google::protobuf::Arena* arena) const {
PlayerInventory* n = new PlayerInventory;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void PlayerInventory::Clear() {
// @@protoc_insertion_point(message_clear_start:PlayerInventory)
if (GetArenaNoVirtual() == NULL && invmain_ != NULL) {
delete invmain_;
}
invmain_ = NULL;
if (GetArenaNoVirtual() == NULL && invbelt_ != NULL) {
delete invbelt_;
}
invbelt_ = NULL;
if (GetArenaNoVirtual() == NULL && invwear_ != NULL) {
delete invwear_;
}
invwear_ = NULL;
}
bool PlayerInventory::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:PlayerInventory)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .ItemContainer invMain = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_invmain()));
} else {
goto handle_unusual;
}
break;
}
// .ItemContainer invBelt = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_invbelt()));
} else {
goto handle_unusual;
}
break;
}
// .ItemContainer invWear = 3;
case 3: {
if (tag == 26u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_invwear()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:PlayerInventory)
return true;
failure:
// @@protoc_insertion_point(parse_failure:PlayerInventory)
return false;
#undef DO_
}
void PlayerInventory::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:PlayerInventory)
// .ItemContainer invMain = 1;
if (this->has_invmain()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->invmain_, output);
}
// .ItemContainer invBelt = 2;
if (this->has_invbelt()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->invbelt_, output);
}
// .ItemContainer invWear = 3;
if (this->has_invwear()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, *this->invwear_, output);
}
// @@protoc_insertion_point(serialize_end:PlayerInventory)
}
::google::protobuf::uint8* PlayerInventory::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:PlayerInventory)
// .ItemContainer invMain = 1;
if (this->has_invmain()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->invmain_, false, target);
}
// .ItemContainer invBelt = 2;
if (this->has_invbelt()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->invbelt_, false, target);
}
// .ItemContainer invWear = 3;
if (this->has_invwear()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
3, *this->invwear_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:PlayerInventory)
return target;
}
size_t PlayerInventory::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PlayerInventory)
size_t total_size = 0;
// .ItemContainer invMain = 1;
if (this->has_invmain()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->invmain_);
}
// .ItemContainer invBelt = 2;
if (this->has_invbelt()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->invbelt_);
}
// .ItemContainer invWear = 3;
if (this->has_invwear()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->invwear_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PlayerInventory::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:PlayerInventory)
GOOGLE_DCHECK_NE(&from, this);
const PlayerInventory* source =
::google::protobuf::internal::DynamicCastToGenerated<const PlayerInventory>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PlayerInventory)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:PlayerInventory)
MergeFrom(*source);
}
}
void PlayerInventory::MergeFrom(const PlayerInventory& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:PlayerInventory)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_invmain()) {
mutable_invmain()->::ItemContainer::MergeFrom(from.invmain());
}
if (from.has_invbelt()) {
mutable_invbelt()->::ItemContainer::MergeFrom(from.invbelt());
}
if (from.has_invwear()) {
mutable_invwear()->::ItemContainer::MergeFrom(from.invwear());
}
}
void PlayerInventory::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:PlayerInventory)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PlayerInventory::CopyFrom(const PlayerInventory& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PlayerInventory)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PlayerInventory::IsInitialized() const {
return true;
}
void PlayerInventory::Swap(PlayerInventory* other) {
if (other == this) return;
InternalSwap(other);
}
void PlayerInventory::InternalSwap(PlayerInventory* other) {
std::swap(invmain_, other->invmain_);
std::swap(invbelt_, other->invbelt_);
std::swap(invwear_, other->invwear_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata PlayerInventory::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[48];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// PlayerInventory
// .ItemContainer invMain = 1;
bool PlayerInventory::has_invmain() const {
return this != internal_default_instance() && invmain_ != NULL;
}
void PlayerInventory::clear_invmain() {
if (GetArenaNoVirtual() == NULL && invmain_ != NULL) delete invmain_;
invmain_ = NULL;
}
const ::ItemContainer& PlayerInventory::invmain() const {
// @@protoc_insertion_point(field_get:PlayerInventory.invMain)
return invmain_ != NULL ? *invmain_
: *::ItemContainer::internal_default_instance();
}
::ItemContainer* PlayerInventory::mutable_invmain() {
if (invmain_ == NULL) {
invmain_ = new ::ItemContainer;
}
// @@protoc_insertion_point(field_mutable:PlayerInventory.invMain)
return invmain_;
}
::ItemContainer* PlayerInventory::release_invmain() {
// @@protoc_insertion_point(field_release:PlayerInventory.invMain)
::ItemContainer* temp = invmain_;
invmain_ = NULL;
return temp;
}
void PlayerInventory::set_allocated_invmain(::ItemContainer* invmain) {
delete invmain_;
invmain_ = invmain;
if (invmain) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:PlayerInventory.invMain)
}
// .ItemContainer invBelt = 2;
bool PlayerInventory::has_invbelt() const {
return this != internal_default_instance() && invbelt_ != NULL;
}
void PlayerInventory::clear_invbelt() {
if (GetArenaNoVirtual() == NULL && invbelt_ != NULL) delete invbelt_;
invbelt_ = NULL;
}
const ::ItemContainer& PlayerInventory::invbelt() const {
// @@protoc_insertion_point(field_get:PlayerInventory.invBelt)
return invbelt_ != NULL ? *invbelt_
: *::ItemContainer::internal_default_instance();
}
::ItemContainer* PlayerInventory::mutable_invbelt() {
if (invbelt_ == NULL) {
invbelt_ = new ::ItemContainer;
}
// @@protoc_insertion_point(field_mutable:PlayerInventory.invBelt)
return invbelt_;
}
::ItemContainer* PlayerInventory::release_invbelt() {
// @@protoc_insertion_point(field_release:PlayerInventory.invBelt)
::ItemContainer* temp = invbelt_;
invbelt_ = NULL;
return temp;
}
void PlayerInventory::set_allocated_invbelt(::ItemContainer* invbelt) {
delete invbelt_;
invbelt_ = invbelt;
if (invbelt) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:PlayerInventory.invBelt)
}
// .ItemContainer invWear = 3;
bool PlayerInventory::has_invwear() const {
return this != internal_default_instance() && invwear_ != NULL;
}
void PlayerInventory::clear_invwear() {
if (GetArenaNoVirtual() == NULL && invwear_ != NULL) delete invwear_;
invwear_ = NULL;
}
const ::ItemContainer& PlayerInventory::invwear() const {
// @@protoc_insertion_point(field_get:PlayerInventory.invWear)
return invwear_ != NULL ? *invwear_
: *::ItemContainer::internal_default_instance();
}
::ItemContainer* PlayerInventory::mutable_invwear() {
if (invwear_ == NULL) {
invwear_ = new ::ItemContainer;
}
// @@protoc_insertion_point(field_mutable:PlayerInventory.invWear)
return invwear_;
}
::ItemContainer* PlayerInventory::release_invwear() {
// @@protoc_insertion_point(field_release:PlayerInventory.invWear)
::ItemContainer* temp = invwear_;
invwear_ = NULL;
return temp;
}
void PlayerInventory::set_allocated_invwear(::ItemContainer* invwear) {
delete invwear_;
invwear_ = invwear;
if (invwear) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:PlayerInventory.invWear)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PersistantPlayer::kUnlockedItemsFieldNumber;
const int PersistantPlayer::kProtocolVersionFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PersistantPlayer::PersistantPlayer()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:PersistantPlayer)
}
PersistantPlayer::PersistantPlayer(const PersistantPlayer& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
unlockeditems_(from.unlockeditems_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
protocolversion_ = from.protocolversion_;
// @@protoc_insertion_point(copy_constructor:PersistantPlayer)
}
void PersistantPlayer::SharedCtor() {
protocolversion_ = 0;
_cached_size_ = 0;
}
PersistantPlayer::~PersistantPlayer() {
// @@protoc_insertion_point(destructor:PersistantPlayer)
SharedDtor();
}
void PersistantPlayer::SharedDtor() {
}
void PersistantPlayer::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PersistantPlayer::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[49].descriptor;
}
const PersistantPlayer& PersistantPlayer::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
PersistantPlayer* PersistantPlayer::New(::google::protobuf::Arena* arena) const {
PersistantPlayer* n = new PersistantPlayer;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void PersistantPlayer::Clear() {
// @@protoc_insertion_point(message_clear_start:PersistantPlayer)
unlockeditems_.Clear();
protocolversion_ = 0;
}
bool PersistantPlayer::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:PersistantPlayer)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated int32 unlockedItems = 3;
case 3: {
if (tag == 26u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_unlockeditems())));
} else if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1, 26u, input, this->mutable_unlockeditems())));
} else {
goto handle_unusual;
}
break;
}
// int32 protocolVersion = 100;
case 100: {
if (tag == 800u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &protocolversion_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:PersistantPlayer)
return true;
failure:
// @@protoc_insertion_point(parse_failure:PersistantPlayer)
return false;
#undef DO_
}
void PersistantPlayer::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:PersistantPlayer)
// repeated int32 unlockedItems = 3;
if (this->unlockeditems_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_unlockeditems_cached_byte_size_);
}
for (int i = 0; i < this->unlockeditems_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
this->unlockeditems(i), output);
}
// int32 protocolVersion = 100;
if (this->protocolversion() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(100, this->protocolversion(), output);
}
// @@protoc_insertion_point(serialize_end:PersistantPlayer)
}
::google::protobuf::uint8* PersistantPlayer::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:PersistantPlayer)
// repeated int32 unlockedItems = 3;
if (this->unlockeditems_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
3,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_unlockeditems_cached_byte_size_, target);
}
for (int i = 0; i < this->unlockeditems_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32NoTagToArray(this->unlockeditems(i), target);
}
// int32 protocolVersion = 100;
if (this->protocolversion() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(100, this->protocolversion(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:PersistantPlayer)
return target;
}
size_t PersistantPlayer::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PersistantPlayer)
size_t total_size = 0;
// repeated int32 unlockedItems = 3;
{
size_t data_size = ::google::protobuf::internal::WireFormatLite::
Int32Size(this->unlockeditems_);
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_unlockeditems_cached_byte_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
total_size += data_size;
}
// int32 protocolVersion = 100;
if (this->protocolversion() != 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->protocolversion());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PersistantPlayer::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:PersistantPlayer)
GOOGLE_DCHECK_NE(&from, this);
const PersistantPlayer* source =
::google::protobuf::internal::DynamicCastToGenerated<const PersistantPlayer>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PersistantPlayer)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:PersistantPlayer)
MergeFrom(*source);
}
}
void PersistantPlayer::MergeFrom(const PersistantPlayer& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:PersistantPlayer)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
unlockeditems_.MergeFrom(from.unlockeditems_);
if (from.protocolversion() != 0) {
set_protocolversion(from.protocolversion());
}
}
void PersistantPlayer::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:PersistantPlayer)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PersistantPlayer::CopyFrom(const PersistantPlayer& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PersistantPlayer)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PersistantPlayer::IsInitialized() const {
return true;
}
void PersistantPlayer::Swap(PersistantPlayer* other) {
if (other == this) return;
InternalSwap(other);
}
void PersistantPlayer::InternalSwap(PersistantPlayer* other) {
unlockeditems_.UnsafeArenaSwap(&other->unlockeditems_);
std::swap(protocolversion_, other->protocolversion_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata PersistantPlayer::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[49];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// PersistantPlayer
// repeated int32 unlockedItems = 3;
int PersistantPlayer::unlockeditems_size() const {
return unlockeditems_.size();
}
void PersistantPlayer::clear_unlockeditems() {
unlockeditems_.Clear();
}
::google::protobuf::int32 PersistantPlayer::unlockeditems(int index) const {
// @@protoc_insertion_point(field_get:PersistantPlayer.unlockedItems)
return unlockeditems_.Get(index);
}
void PersistantPlayer::set_unlockeditems(int index, ::google::protobuf::int32 value) {
unlockeditems_.Set(index, value);
// @@protoc_insertion_point(field_set:PersistantPlayer.unlockedItems)
}
void PersistantPlayer::add_unlockeditems(::google::protobuf::int32 value) {
unlockeditems_.Add(value);
// @@protoc_insertion_point(field_add:PersistantPlayer.unlockedItems)
}
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
PersistantPlayer::unlockeditems() const {
// @@protoc_insertion_point(field_list:PersistantPlayer.unlockedItems)
return unlockeditems_;
}
::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
PersistantPlayer::mutable_unlockeditems() {
// @@protoc_insertion_point(field_mutable_list:PersistantPlayer.unlockedItems)
return &unlockeditems_;
}
// int32 protocolVersion = 100;
void PersistantPlayer::clear_protocolversion() {
protocolversion_ = 0;
}
::google::protobuf::int32 PersistantPlayer::protocolversion() const {
// @@protoc_insertion_point(field_get:PersistantPlayer.protocolVersion)
return protocolversion_;
}
void PersistantPlayer::set_protocolversion(::google::protobuf::int32 value) {
protocolversion_ = value;
// @@protoc_insertion_point(field_set:PersistantPlayer.protocolVersion)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PlayerLifeStory::kSecondsAliveFieldNumber;
const int PlayerLifeStory::kMetersWalkedFieldNumber;
const int PlayerLifeStory::kMetersRunFieldNumber;
const int PlayerLifeStory::kSecondsSleepingFieldNumber;
const int PlayerLifeStory::kTimeBornFieldNumber;
const int PlayerLifeStory::kTimeDiedFieldNumber;
const int PlayerLifeStory::kDeathInfoFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PlayerLifeStory::PlayerLifeStory()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:PlayerLifeStory)
}
PlayerLifeStory::PlayerLifeStory(const PlayerLifeStory& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_deathinfo()) {
deathinfo_ = new ::DeathInfo(*from.deathinfo_);
} else {
deathinfo_ = NULL;
}
::memcpy(&secondsalive_, &from.secondsalive_,
reinterpret_cast<char*>(&timedied_) -
reinterpret_cast<char*>(&secondsalive_) + sizeof(timedied_));
// @@protoc_insertion_point(copy_constructor:PlayerLifeStory)
}
void PlayerLifeStory::SharedCtor() {
::memset(&deathinfo_, 0, reinterpret_cast<char*>(&timedied_) -
reinterpret_cast<char*>(&deathinfo_) + sizeof(timedied_));
_cached_size_ = 0;
}
PlayerLifeStory::~PlayerLifeStory() {
// @@protoc_insertion_point(destructor:PlayerLifeStory)
SharedDtor();
}
void PlayerLifeStory::SharedDtor() {
if (this != internal_default_instance()) {
delete deathinfo_;
}
}
void PlayerLifeStory::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PlayerLifeStory::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[50].descriptor;
}
const PlayerLifeStory& PlayerLifeStory::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
PlayerLifeStory* PlayerLifeStory::New(::google::protobuf::Arena* arena) const {
PlayerLifeStory* n = new PlayerLifeStory;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void PlayerLifeStory::Clear() {
// @@protoc_insertion_point(message_clear_start:PlayerLifeStory)
if (GetArenaNoVirtual() == NULL && deathinfo_ != NULL) {
delete deathinfo_;
}
deathinfo_ = NULL;
::memset(&secondsalive_, 0, reinterpret_cast<char*>(&timedied_) -
reinterpret_cast<char*>(&secondsalive_) + sizeof(timedied_));
}
bool PlayerLifeStory::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:PlayerLifeStory)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float secondsAlive = 100;
case 100: {
if (tag == 805u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &secondsalive_)));
} else {
goto handle_unusual;
}
break;
}
// float metersWalked = 101;
case 101: {
if (tag == 813u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &meterswalked_)));
} else {
goto handle_unusual;
}
break;
}
// float metersRun = 102;
case 102: {
if (tag == 821u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &metersrun_)));
} else {
goto handle_unusual;
}
break;
}
// float secondsSleeping = 103;
case 103: {
if (tag == 829u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &secondssleeping_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 timeBorn = 104;
case 104: {
if (tag == 832u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &timeborn_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 timeDied = 105;
case 105: {
if (tag == 840u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &timedied_)));
} else {
goto handle_unusual;
}
break;
}
// .DeathInfo deathInfo = 200;
case 200: {
if (tag == 1602u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_deathinfo()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:PlayerLifeStory)
return true;
failure:
// @@protoc_insertion_point(parse_failure:PlayerLifeStory)
return false;
#undef DO_
}
void PlayerLifeStory::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:PlayerLifeStory)
// float secondsAlive = 100;
if (this->secondsalive() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(100, this->secondsalive(), output);
}
// float metersWalked = 101;
if (this->meterswalked() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(101, this->meterswalked(), output);
}
// float metersRun = 102;
if (this->metersrun() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(102, this->metersrun(), output);
}
// float secondsSleeping = 103;
if (this->secondssleeping() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(103, this->secondssleeping(), output);
}
// uint32 timeBorn = 104;
if (this->timeborn() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(104, this->timeborn(), output);
}
// uint32 timeDied = 105;
if (this->timedied() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(105, this->timedied(), output);
}
// .DeathInfo deathInfo = 200;
if (this->has_deathinfo()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
200, *this->deathinfo_, output);
}
// @@protoc_insertion_point(serialize_end:PlayerLifeStory)
}
::google::protobuf::uint8* PlayerLifeStory::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:PlayerLifeStory)
// float secondsAlive = 100;
if (this->secondsalive() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(100, this->secondsalive(), target);
}
// float metersWalked = 101;
if (this->meterswalked() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(101, this->meterswalked(), target);
}
// float metersRun = 102;
if (this->metersrun() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(102, this->metersrun(), target);
}
// float secondsSleeping = 103;
if (this->secondssleeping() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(103, this->secondssleeping(), target);
}
// uint32 timeBorn = 104;
if (this->timeborn() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(104, this->timeborn(), target);
}
// uint32 timeDied = 105;
if (this->timedied() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(105, this->timedied(), target);
}
// .DeathInfo deathInfo = 200;
if (this->has_deathinfo()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
200, *this->deathinfo_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:PlayerLifeStory)
return target;
}
size_t PlayerLifeStory::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PlayerLifeStory)
size_t total_size = 0;
// .DeathInfo deathInfo = 200;
if (this->has_deathinfo()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->deathinfo_);
}
// float secondsAlive = 100;
if (this->secondsalive() != 0) {
total_size += 2 + 4;
}
// float metersWalked = 101;
if (this->meterswalked() != 0) {
total_size += 2 + 4;
}
// float metersRun = 102;
if (this->metersrun() != 0) {
total_size += 2 + 4;
}
// float secondsSleeping = 103;
if (this->secondssleeping() != 0) {
total_size += 2 + 4;
}
// uint32 timeBorn = 104;
if (this->timeborn() != 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->timeborn());
}
// uint32 timeDied = 105;
if (this->timedied() != 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->timedied());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PlayerLifeStory::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:PlayerLifeStory)
GOOGLE_DCHECK_NE(&from, this);
const PlayerLifeStory* source =
::google::protobuf::internal::DynamicCastToGenerated<const PlayerLifeStory>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PlayerLifeStory)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:PlayerLifeStory)
MergeFrom(*source);
}
}
void PlayerLifeStory::MergeFrom(const PlayerLifeStory& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:PlayerLifeStory)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_deathinfo()) {
mutable_deathinfo()->::DeathInfo::MergeFrom(from.deathinfo());
}
if (from.secondsalive() != 0) {
set_secondsalive(from.secondsalive());
}
if (from.meterswalked() != 0) {
set_meterswalked(from.meterswalked());
}
if (from.metersrun() != 0) {
set_metersrun(from.metersrun());
}
if (from.secondssleeping() != 0) {
set_secondssleeping(from.secondssleeping());
}
if (from.timeborn() != 0) {
set_timeborn(from.timeborn());
}
if (from.timedied() != 0) {
set_timedied(from.timedied());
}
}
void PlayerLifeStory::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:PlayerLifeStory)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PlayerLifeStory::CopyFrom(const PlayerLifeStory& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PlayerLifeStory)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PlayerLifeStory::IsInitialized() const {
return true;
}
void PlayerLifeStory::Swap(PlayerLifeStory* other) {
if (other == this) return;
InternalSwap(other);
}
void PlayerLifeStory::InternalSwap(PlayerLifeStory* other) {
std::swap(deathinfo_, other->deathinfo_);
std::swap(secondsalive_, other->secondsalive_);
std::swap(meterswalked_, other->meterswalked_);
std::swap(metersrun_, other->metersrun_);
std::swap(secondssleeping_, other->secondssleeping_);
std::swap(timeborn_, other->timeborn_);
std::swap(timedied_, other->timedied_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata PlayerLifeStory::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[50];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// PlayerLifeStory
// float secondsAlive = 100;
void PlayerLifeStory::clear_secondsalive() {
secondsalive_ = 0;
}
float PlayerLifeStory::secondsalive() const {
// @@protoc_insertion_point(field_get:PlayerLifeStory.secondsAlive)
return secondsalive_;
}
void PlayerLifeStory::set_secondsalive(float value) {
secondsalive_ = value;
// @@protoc_insertion_point(field_set:PlayerLifeStory.secondsAlive)
}
// float metersWalked = 101;
void PlayerLifeStory::clear_meterswalked() {
meterswalked_ = 0;
}
float PlayerLifeStory::meterswalked() const {
// @@protoc_insertion_point(field_get:PlayerLifeStory.metersWalked)
return meterswalked_;
}
void PlayerLifeStory::set_meterswalked(float value) {
meterswalked_ = value;
// @@protoc_insertion_point(field_set:PlayerLifeStory.metersWalked)
}
// float metersRun = 102;
void PlayerLifeStory::clear_metersrun() {
metersrun_ = 0;
}
float PlayerLifeStory::metersrun() const {
// @@protoc_insertion_point(field_get:PlayerLifeStory.metersRun)
return metersrun_;
}
void PlayerLifeStory::set_metersrun(float value) {
metersrun_ = value;
// @@protoc_insertion_point(field_set:PlayerLifeStory.metersRun)
}
// float secondsSleeping = 103;
void PlayerLifeStory::clear_secondssleeping() {
secondssleeping_ = 0;
}
float PlayerLifeStory::secondssleeping() const {
// @@protoc_insertion_point(field_get:PlayerLifeStory.secondsSleeping)
return secondssleeping_;
}
void PlayerLifeStory::set_secondssleeping(float value) {
secondssleeping_ = value;
// @@protoc_insertion_point(field_set:PlayerLifeStory.secondsSleeping)
}
// uint32 timeBorn = 104;
void PlayerLifeStory::clear_timeborn() {
timeborn_ = 0u;
}
::google::protobuf::uint32 PlayerLifeStory::timeborn() const {
// @@protoc_insertion_point(field_get:PlayerLifeStory.timeBorn)
return timeborn_;
}
void PlayerLifeStory::set_timeborn(::google::protobuf::uint32 value) {
timeborn_ = value;
// @@protoc_insertion_point(field_set:PlayerLifeStory.timeBorn)
}
// uint32 timeDied = 105;
void PlayerLifeStory::clear_timedied() {
timedied_ = 0u;
}
::google::protobuf::uint32 PlayerLifeStory::timedied() const {
// @@protoc_insertion_point(field_get:PlayerLifeStory.timeDied)
return timedied_;
}
void PlayerLifeStory::set_timedied(::google::protobuf::uint32 value) {
timedied_ = value;
// @@protoc_insertion_point(field_set:PlayerLifeStory.timeDied)
}
// .DeathInfo deathInfo = 200;
bool PlayerLifeStory::has_deathinfo() const {
return this != internal_default_instance() && deathinfo_ != NULL;
}
void PlayerLifeStory::clear_deathinfo() {
if (GetArenaNoVirtual() == NULL && deathinfo_ != NULL) delete deathinfo_;
deathinfo_ = NULL;
}
const ::DeathInfo& PlayerLifeStory::deathinfo() const {
// @@protoc_insertion_point(field_get:PlayerLifeStory.deathInfo)
return deathinfo_ != NULL ? *deathinfo_
: *::DeathInfo::internal_default_instance();
}
::DeathInfo* PlayerLifeStory::mutable_deathinfo() {
if (deathinfo_ == NULL) {
deathinfo_ = new ::DeathInfo;
}
// @@protoc_insertion_point(field_mutable:PlayerLifeStory.deathInfo)
return deathinfo_;
}
::DeathInfo* PlayerLifeStory::release_deathinfo() {
// @@protoc_insertion_point(field_release:PlayerLifeStory.deathInfo)
::DeathInfo* temp = deathinfo_;
deathinfo_ = NULL;
return temp;
}
void PlayerLifeStory::set_allocated_deathinfo(::DeathInfo* deathinfo) {
delete deathinfo_;
deathinfo_ = deathinfo;
if (deathinfo) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:PlayerLifeStory.deathInfo)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PlayerNameID::kUsernameFieldNumber;
const int PlayerNameID::kUseridFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PlayerNameID::PlayerNameID()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:PlayerNameID)
}
PlayerNameID::PlayerNameID(const PlayerNameID& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.username().size() > 0) {
username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_);
}
userid_ = from.userid_;
// @@protoc_insertion_point(copy_constructor:PlayerNameID)
}
void PlayerNameID::SharedCtor() {
username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
userid_ = GOOGLE_ULONGLONG(0);
_cached_size_ = 0;
}
PlayerNameID::~PlayerNameID() {
// @@protoc_insertion_point(destructor:PlayerNameID)
SharedDtor();
}
void PlayerNameID::SharedDtor() {
username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void PlayerNameID::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PlayerNameID::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[51].descriptor;
}
const PlayerNameID& PlayerNameID::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
PlayerNameID* PlayerNameID::New(::google::protobuf::Arena* arena) const {
PlayerNameID* n = new PlayerNameID;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void PlayerNameID::Clear() {
// @@protoc_insertion_point(message_clear_start:PlayerNameID)
username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
userid_ = GOOGLE_ULONGLONG(0);
}
bool PlayerNameID::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:PlayerNameID)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string username = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_username()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->username().data(), this->username().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"PlayerNameID.username"));
} else {
goto handle_unusual;
}
break;
}
// uint64 userid = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &userid_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:PlayerNameID)
return true;
failure:
// @@protoc_insertion_point(parse_failure:PlayerNameID)
return false;
#undef DO_
}
void PlayerNameID::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:PlayerNameID)
// string username = 1;
if (this->username().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->username().data(), this->username().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"PlayerNameID.username");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->username(), output);
}
// uint64 userid = 2;
if (this->userid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->userid(), output);
}
// @@protoc_insertion_point(serialize_end:PlayerNameID)
}
::google::protobuf::uint8* PlayerNameID::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:PlayerNameID)
// string username = 1;
if (this->username().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->username().data(), this->username().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"PlayerNameID.username");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->username(), target);
}
// uint64 userid = 2;
if (this->userid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->userid(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:PlayerNameID)
return target;
}
size_t PlayerNameID::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PlayerNameID)
size_t total_size = 0;
// string username = 1;
if (this->username().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->username());
}
// uint64 userid = 2;
if (this->userid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->userid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PlayerNameID::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:PlayerNameID)
GOOGLE_DCHECK_NE(&from, this);
const PlayerNameID* source =
::google::protobuf::internal::DynamicCastToGenerated<const PlayerNameID>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PlayerNameID)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:PlayerNameID)
MergeFrom(*source);
}
}
void PlayerNameID::MergeFrom(const PlayerNameID& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:PlayerNameID)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.username().size() > 0) {
username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_);
}
if (from.userid() != 0) {
set_userid(from.userid());
}
}
void PlayerNameID::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:PlayerNameID)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PlayerNameID::CopyFrom(const PlayerNameID& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PlayerNameID)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PlayerNameID::IsInitialized() const {
return true;
}
void PlayerNameID::Swap(PlayerNameID* other) {
if (other == this) return;
InternalSwap(other);
}
void PlayerNameID::InternalSwap(PlayerNameID* other) {
username_.Swap(&other->username_);
std::swap(userid_, other->userid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata PlayerNameID::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[51];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// PlayerNameID
// string username = 1;
void PlayerNameID::clear_username() {
username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& PlayerNameID::username() const {
// @@protoc_insertion_point(field_get:PlayerNameID.username)
return username_.GetNoArena();
}
void PlayerNameID::set_username(const ::std::string& value) {
username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:PlayerNameID.username)
}
#if LANG_CXX11
void PlayerNameID::set_username(::std::string&& value) {
username_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:PlayerNameID.username)
}
#endif
void PlayerNameID::set_username(const char* value) {
username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:PlayerNameID.username)
}
void PlayerNameID::set_username(const char* value, size_t size) {
username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:PlayerNameID.username)
}
::std::string* PlayerNameID::mutable_username() {
// @@protoc_insertion_point(field_mutable:PlayerNameID.username)
return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* PlayerNameID::release_username() {
// @@protoc_insertion_point(field_release:PlayerNameID.username)
return username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void PlayerNameID::set_allocated_username(::std::string* username) {
if (username != NULL) {
} else {
}
username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username);
// @@protoc_insertion_point(field_set_allocated:PlayerNameID.username)
}
// uint64 userid = 2;
void PlayerNameID::clear_userid() {
userid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 PlayerNameID::userid() const {
// @@protoc_insertion_point(field_get:PlayerNameID.userid)
return userid_;
}
void PlayerNameID::set_userid(::google::protobuf::uint64 value) {
userid_ = value;
// @@protoc_insertion_point(field_set:PlayerNameID.userid)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int DemoHeader::kVersionFieldNumber;
const int DemoHeader::kLevelFieldNumber;
const int DemoHeader::kLevelSeedFieldNumber;
const int DemoHeader::kLevelSizeFieldNumber;
const int DemoHeader::kChecksumFieldNumber;
const int DemoHeader::kLocalclientFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
DemoHeader::DemoHeader()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:DemoHeader)
}
DemoHeader::DemoHeader(const DemoHeader& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
level_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.level().size() > 0) {
level_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.level_);
}
checksum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.checksum().size() > 0) {
checksum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checksum_);
}
::memcpy(&version_, &from.version_,
reinterpret_cast<char*>(&levelsize_) -
reinterpret_cast<char*>(&version_) + sizeof(levelsize_));
// @@protoc_insertion_point(copy_constructor:DemoHeader)
}
void DemoHeader::SharedCtor() {
level_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
checksum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&version_, 0, reinterpret_cast<char*>(&levelsize_) -
reinterpret_cast<char*>(&version_) + sizeof(levelsize_));
_cached_size_ = 0;
}
DemoHeader::~DemoHeader() {
// @@protoc_insertion_point(destructor:DemoHeader)
SharedDtor();
}
void DemoHeader::SharedDtor() {
level_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
checksum_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void DemoHeader::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DemoHeader::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[52].descriptor;
}
const DemoHeader& DemoHeader::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
DemoHeader* DemoHeader::New(::google::protobuf::Arena* arena) const {
DemoHeader* n = new DemoHeader;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void DemoHeader::Clear() {
// @@protoc_insertion_point(message_clear_start:DemoHeader)
level_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
checksum_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&version_, 0, reinterpret_cast<char*>(&levelsize_) -
reinterpret_cast<char*>(&version_) + sizeof(levelsize_));
}
bool DemoHeader::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:DemoHeader)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 version = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &version_)));
} else {
goto handle_unusual;
}
break;
}
// string level = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_level()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->level().data(), this->level().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"DemoHeader.level"));
} else {
goto handle_unusual;
}
break;
}
// uint32 levelSeed = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &levelseed_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 levelSize = 4;
case 4: {
if (tag == 32u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &levelsize_)));
} else {
goto handle_unusual;
}
break;
}
// string checksum = 5;
case 5: {
if (tag == 42u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_checksum()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->checksum().data(), this->checksum().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"DemoHeader.checksum"));
} else {
goto handle_unusual;
}
break;
}
// uint64 localclient = 6;
case 6: {
if (tag == 48u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &localclient_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:DemoHeader)
return true;
failure:
// @@protoc_insertion_point(parse_failure:DemoHeader)
return false;
#undef DO_
}
void DemoHeader::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:DemoHeader)
// uint32 version = 1;
if (this->version() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->version(), output);
}
// string level = 2;
if (this->level().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->level().data(), this->level().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"DemoHeader.level");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->level(), output);
}
// uint32 levelSeed = 3;
if (this->levelseed() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->levelseed(), output);
}
// uint32 levelSize = 4;
if (this->levelsize() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->levelsize(), output);
}
// string checksum = 5;
if (this->checksum().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->checksum().data(), this->checksum().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"DemoHeader.checksum");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->checksum(), output);
}
// uint64 localclient = 6;
if (this->localclient() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->localclient(), output);
}
// @@protoc_insertion_point(serialize_end:DemoHeader)
}
::google::protobuf::uint8* DemoHeader::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:DemoHeader)
// uint32 version = 1;
if (this->version() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->version(), target);
}
// string level = 2;
if (this->level().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->level().data(), this->level().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"DemoHeader.level");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->level(), target);
}
// uint32 levelSeed = 3;
if (this->levelseed() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->levelseed(), target);
}
// uint32 levelSize = 4;
if (this->levelsize() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->levelsize(), target);
}
// string checksum = 5;
if (this->checksum().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->checksum().data(), this->checksum().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"DemoHeader.checksum");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->checksum(), target);
}
// uint64 localclient = 6;
if (this->localclient() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->localclient(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:DemoHeader)
return target;
}
size_t DemoHeader::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:DemoHeader)
size_t total_size = 0;
// string level = 2;
if (this->level().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->level());
}
// string checksum = 5;
if (this->checksum().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->checksum());
}
// uint32 version = 1;
if (this->version() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->version());
}
// uint32 levelSeed = 3;
if (this->levelseed() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->levelseed());
}
// uint64 localclient = 6;
if (this->localclient() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->localclient());
}
// uint32 levelSize = 4;
if (this->levelsize() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->levelsize());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DemoHeader::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:DemoHeader)
GOOGLE_DCHECK_NE(&from, this);
const DemoHeader* source =
::google::protobuf::internal::DynamicCastToGenerated<const DemoHeader>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:DemoHeader)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:DemoHeader)
MergeFrom(*source);
}
}
void DemoHeader::MergeFrom(const DemoHeader& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:DemoHeader)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.level().size() > 0) {
level_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.level_);
}
if (from.checksum().size() > 0) {
checksum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checksum_);
}
if (from.version() != 0) {
set_version(from.version());
}
if (from.levelseed() != 0) {
set_levelseed(from.levelseed());
}
if (from.localclient() != 0) {
set_localclient(from.localclient());
}
if (from.levelsize() != 0) {
set_levelsize(from.levelsize());
}
}
void DemoHeader::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:DemoHeader)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DemoHeader::CopyFrom(const DemoHeader& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:DemoHeader)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DemoHeader::IsInitialized() const {
return true;
}
void DemoHeader::Swap(DemoHeader* other) {
if (other == this) return;
InternalSwap(other);
}
void DemoHeader::InternalSwap(DemoHeader* other) {
level_.Swap(&other->level_);
checksum_.Swap(&other->checksum_);
std::swap(version_, other->version_);
std::swap(levelseed_, other->levelseed_);
std::swap(localclient_, other->localclient_);
std::swap(levelsize_, other->levelsize_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata DemoHeader::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[52];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// DemoHeader
// uint32 version = 1;
void DemoHeader::clear_version() {
version_ = 0u;
}
::google::protobuf::uint32 DemoHeader::version() const {
// @@protoc_insertion_point(field_get:DemoHeader.version)
return version_;
}
void DemoHeader::set_version(::google::protobuf::uint32 value) {
version_ = value;
// @@protoc_insertion_point(field_set:DemoHeader.version)
}
// string level = 2;
void DemoHeader::clear_level() {
level_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& DemoHeader::level() const {
// @@protoc_insertion_point(field_get:DemoHeader.level)
return level_.GetNoArena();
}
void DemoHeader::set_level(const ::std::string& value) {
level_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:DemoHeader.level)
}
#if LANG_CXX11
void DemoHeader::set_level(::std::string&& value) {
level_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:DemoHeader.level)
}
#endif
void DemoHeader::set_level(const char* value) {
level_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:DemoHeader.level)
}
void DemoHeader::set_level(const char* value, size_t size) {
level_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:DemoHeader.level)
}
::std::string* DemoHeader::mutable_level() {
// @@protoc_insertion_point(field_mutable:DemoHeader.level)
return level_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* DemoHeader::release_level() {
// @@protoc_insertion_point(field_release:DemoHeader.level)
return level_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void DemoHeader::set_allocated_level(::std::string* level) {
if (level != NULL) {
} else {
}
level_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), level);
// @@protoc_insertion_point(field_set_allocated:DemoHeader.level)
}
// uint32 levelSeed = 3;
void DemoHeader::clear_levelseed() {
levelseed_ = 0u;
}
::google::protobuf::uint32 DemoHeader::levelseed() const {
// @@protoc_insertion_point(field_get:DemoHeader.levelSeed)
return levelseed_;
}
void DemoHeader::set_levelseed(::google::protobuf::uint32 value) {
levelseed_ = value;
// @@protoc_insertion_point(field_set:DemoHeader.levelSeed)
}
// uint32 levelSize = 4;
void DemoHeader::clear_levelsize() {
levelsize_ = 0u;
}
::google::protobuf::uint32 DemoHeader::levelsize() const {
// @@protoc_insertion_point(field_get:DemoHeader.levelSize)
return levelsize_;
}
void DemoHeader::set_levelsize(::google::protobuf::uint32 value) {
levelsize_ = value;
// @@protoc_insertion_point(field_set:DemoHeader.levelSize)
}
// string checksum = 5;
void DemoHeader::clear_checksum() {
checksum_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& DemoHeader::checksum() const {
// @@protoc_insertion_point(field_get:DemoHeader.checksum)
return checksum_.GetNoArena();
}
void DemoHeader::set_checksum(const ::std::string& value) {
checksum_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:DemoHeader.checksum)
}
#if LANG_CXX11
void DemoHeader::set_checksum(::std::string&& value) {
checksum_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:DemoHeader.checksum)
}
#endif
void DemoHeader::set_checksum(const char* value) {
checksum_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:DemoHeader.checksum)
}
void DemoHeader::set_checksum(const char* value, size_t size) {
checksum_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:DemoHeader.checksum)
}
::std::string* DemoHeader::mutable_checksum() {
// @@protoc_insertion_point(field_mutable:DemoHeader.checksum)
return checksum_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* DemoHeader::release_checksum() {
// @@protoc_insertion_point(field_release:DemoHeader.checksum)
return checksum_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void DemoHeader::set_allocated_checksum(::std::string* checksum) {
if (checksum != NULL) {
} else {
}
checksum_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), checksum);
// @@protoc_insertion_point(field_set_allocated:DemoHeader.checksum)
}
// uint64 localclient = 6;
void DemoHeader::clear_localclient() {
localclient_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 DemoHeader::localclient() const {
// @@protoc_insertion_point(field_get:DemoHeader.localclient)
return localclient_;
}
void DemoHeader::set_localclient(::google::protobuf::uint64 value) {
localclient_ = value;
// @@protoc_insertion_point(field_set:DemoHeader.localclient)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Approval::kLevelFieldNumber;
const int Approval::kHostnameFieldNumber;
const int Approval::kModdedFieldNumber;
const int Approval::kOfficialFieldNumber;
const int Approval::kSteamidFieldNumber;
const int Approval::kIpaddressFieldNumber;
const int Approval::kPortFieldNumber;
const int Approval::kLevelSeedFieldNumber;
const int Approval::kLevelSizeFieldNumber;
const int Approval::kChecksumFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Approval::Approval()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Approval)
}
Approval::Approval(const Approval& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
level_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.level().size() > 0) {
level_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.level_);
}
hostname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.hostname().size() > 0) {
hostname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hostname_);
}
checksum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.checksum().size() > 0) {
checksum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checksum_);
}
::memcpy(&modded_, &from.modded_,
reinterpret_cast<char*>(&levelsize_) -
reinterpret_cast<char*>(&modded_) + sizeof(levelsize_));
// @@protoc_insertion_point(copy_constructor:Approval)
}
void Approval::SharedCtor() {
level_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
hostname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
checksum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&modded_, 0, reinterpret_cast<char*>(&levelsize_) -
reinterpret_cast<char*>(&modded_) + sizeof(levelsize_));
_cached_size_ = 0;
}
Approval::~Approval() {
// @@protoc_insertion_point(destructor:Approval)
SharedDtor();
}
void Approval::SharedDtor() {
level_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
hostname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
checksum_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Approval::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Approval::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[53].descriptor;
}
const Approval& Approval::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Approval* Approval::New(::google::protobuf::Arena* arena) const {
Approval* n = new Approval;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Approval::Clear() {
// @@protoc_insertion_point(message_clear_start:Approval)
level_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
hostname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
checksum_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&modded_, 0, reinterpret_cast<char*>(&levelsize_) -
reinterpret_cast<char*>(&modded_) + sizeof(levelsize_));
}
bool Approval::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Approval)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string level = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_level()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->level().data(), this->level().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"Approval.level"));
} else {
goto handle_unusual;
}
break;
}
// string hostname = 3;
case 3: {
if (tag == 26u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_hostname()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->hostname().data(), this->hostname().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"Approval.hostname"));
} else {
goto handle_unusual;
}
break;
}
// bool modded = 4;
case 4: {
if (tag == 32u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &modded_)));
} else {
goto handle_unusual;
}
break;
}
// bool official = 5;
case 5: {
if (tag == 40u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &official_)));
} else {
goto handle_unusual;
}
break;
}
// uint64 steamid = 6;
case 6: {
if (tag == 48u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &steamid_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 ipaddress = 7;
case 7: {
if (tag == 56u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &ipaddress_)));
} else {
goto handle_unusual;
}
break;
}
// int32 port = 8;
case 8: {
if (tag == 64u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &port_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 levelSeed = 9;
case 9: {
if (tag == 72u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &levelseed_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 levelSize = 10;
case 10: {
if (tag == 80u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &levelsize_)));
} else {
goto handle_unusual;
}
break;
}
// string checksum = 11;
case 11: {
if (tag == 90u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_checksum()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->checksum().data(), this->checksum().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"Approval.checksum"));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Approval)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Approval)
return false;
#undef DO_
}
void Approval::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Approval)
// string level = 2;
if (this->level().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->level().data(), this->level().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Approval.level");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->level(), output);
}
// string hostname = 3;
if (this->hostname().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->hostname().data(), this->hostname().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Approval.hostname");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->hostname(), output);
}
// bool modded = 4;
if (this->modded() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->modded(), output);
}
// bool official = 5;
if (this->official() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(5, this->official(), output);
}
// uint64 steamid = 6;
if (this->steamid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->steamid(), output);
}
// uint32 ipaddress = 7;
if (this->ipaddress() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->ipaddress(), output);
}
// int32 port = 8;
if (this->port() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->port(), output);
}
// uint32 levelSeed = 9;
if (this->levelseed() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->levelseed(), output);
}
// uint32 levelSize = 10;
if (this->levelsize() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->levelsize(), output);
}
// string checksum = 11;
if (this->checksum().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->checksum().data(), this->checksum().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Approval.checksum");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11, this->checksum(), output);
}
// @@protoc_insertion_point(serialize_end:Approval)
}
::google::protobuf::uint8* Approval::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Approval)
// string level = 2;
if (this->level().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->level().data(), this->level().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Approval.level");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->level(), target);
}
// string hostname = 3;
if (this->hostname().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->hostname().data(), this->hostname().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Approval.hostname");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->hostname(), target);
}
// bool modded = 4;
if (this->modded() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->modded(), target);
}
// bool official = 5;
if (this->official() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->official(), target);
}
// uint64 steamid = 6;
if (this->steamid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->steamid(), target);
}
// uint32 ipaddress = 7;
if (this->ipaddress() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->ipaddress(), target);
}
// int32 port = 8;
if (this->port() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->port(), target);
}
// uint32 levelSeed = 9;
if (this->levelseed() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->levelseed(), target);
}
// uint32 levelSize = 10;
if (this->levelsize() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->levelsize(), target);
}
// string checksum = 11;
if (this->checksum().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->checksum().data(), this->checksum().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"Approval.checksum");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11, this->checksum(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Approval)
return target;
}
size_t Approval::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Approval)
size_t total_size = 0;
// string level = 2;
if (this->level().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->level());
}
// string hostname = 3;
if (this->hostname().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->hostname());
}
// string checksum = 11;
if (this->checksum().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->checksum());
}
// bool modded = 4;
if (this->modded() != 0) {
total_size += 1 + 1;
}
// bool official = 5;
if (this->official() != 0) {
total_size += 1 + 1;
}
// uint32 ipaddress = 7;
if (this->ipaddress() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->ipaddress());
}
// uint64 steamid = 6;
if (this->steamid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->steamid());
}
// int32 port = 8;
if (this->port() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->port());
}
// uint32 levelSeed = 9;
if (this->levelseed() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->levelseed());
}
// uint32 levelSize = 10;
if (this->levelsize() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->levelsize());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Approval::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Approval)
GOOGLE_DCHECK_NE(&from, this);
const Approval* source =
::google::protobuf::internal::DynamicCastToGenerated<const Approval>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Approval)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Approval)
MergeFrom(*source);
}
}
void Approval::MergeFrom(const Approval& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Approval)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.level().size() > 0) {
level_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.level_);
}
if (from.hostname().size() > 0) {
hostname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hostname_);
}
if (from.checksum().size() > 0) {
checksum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checksum_);
}
if (from.modded() != 0) {
set_modded(from.modded());
}
if (from.official() != 0) {
set_official(from.official());
}
if (from.ipaddress() != 0) {
set_ipaddress(from.ipaddress());
}
if (from.steamid() != 0) {
set_steamid(from.steamid());
}
if (from.port() != 0) {
set_port(from.port());
}
if (from.levelseed() != 0) {
set_levelseed(from.levelseed());
}
if (from.levelsize() != 0) {
set_levelsize(from.levelsize());
}
}
void Approval::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Approval)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Approval::CopyFrom(const Approval& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Approval)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Approval::IsInitialized() const {
return true;
}
void Approval::Swap(Approval* other) {
if (other == this) return;
InternalSwap(other);
}
void Approval::InternalSwap(Approval* other) {
level_.Swap(&other->level_);
hostname_.Swap(&other->hostname_);
checksum_.Swap(&other->checksum_);
std::swap(modded_, other->modded_);
std::swap(official_, other->official_);
std::swap(ipaddress_, other->ipaddress_);
std::swap(steamid_, other->steamid_);
std::swap(port_, other->port_);
std::swap(levelseed_, other->levelseed_);
std::swap(levelsize_, other->levelsize_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata Approval::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[53];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Approval
// string level = 2;
void Approval::clear_level() {
level_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& Approval::level() const {
// @@protoc_insertion_point(field_get:Approval.level)
return level_.GetNoArena();
}
void Approval::set_level(const ::std::string& value) {
level_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Approval.level)
}
#if LANG_CXX11
void Approval::set_level(::std::string&& value) {
level_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Approval.level)
}
#endif
void Approval::set_level(const char* value) {
level_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Approval.level)
}
void Approval::set_level(const char* value, size_t size) {
level_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Approval.level)
}
::std::string* Approval::mutable_level() {
// @@protoc_insertion_point(field_mutable:Approval.level)
return level_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Approval::release_level() {
// @@protoc_insertion_point(field_release:Approval.level)
return level_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Approval::set_allocated_level(::std::string* level) {
if (level != NULL) {
} else {
}
level_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), level);
// @@protoc_insertion_point(field_set_allocated:Approval.level)
}
// string hostname = 3;
void Approval::clear_hostname() {
hostname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& Approval::hostname() const {
// @@protoc_insertion_point(field_get:Approval.hostname)
return hostname_.GetNoArena();
}
void Approval::set_hostname(const ::std::string& value) {
hostname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Approval.hostname)
}
#if LANG_CXX11
void Approval::set_hostname(::std::string&& value) {
hostname_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Approval.hostname)
}
#endif
void Approval::set_hostname(const char* value) {
hostname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Approval.hostname)
}
void Approval::set_hostname(const char* value, size_t size) {
hostname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Approval.hostname)
}
::std::string* Approval::mutable_hostname() {
// @@protoc_insertion_point(field_mutable:Approval.hostname)
return hostname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Approval::release_hostname() {
// @@protoc_insertion_point(field_release:Approval.hostname)
return hostname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Approval::set_allocated_hostname(::std::string* hostname) {
if (hostname != NULL) {
} else {
}
hostname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hostname);
// @@protoc_insertion_point(field_set_allocated:Approval.hostname)
}
// bool modded = 4;
void Approval::clear_modded() {
modded_ = false;
}
bool Approval::modded() const {
// @@protoc_insertion_point(field_get:Approval.modded)
return modded_;
}
void Approval::set_modded(bool value) {
modded_ = value;
// @@protoc_insertion_point(field_set:Approval.modded)
}
// bool official = 5;
void Approval::clear_official() {
official_ = false;
}
bool Approval::official() const {
// @@protoc_insertion_point(field_get:Approval.official)
return official_;
}
void Approval::set_official(bool value) {
official_ = value;
// @@protoc_insertion_point(field_set:Approval.official)
}
// uint64 steamid = 6;
void Approval::clear_steamid() {
steamid_ = GOOGLE_ULONGLONG(0);
}
::google::protobuf::uint64 Approval::steamid() const {
// @@protoc_insertion_point(field_get:Approval.steamid)
return steamid_;
}
void Approval::set_steamid(::google::protobuf::uint64 value) {
steamid_ = value;
// @@protoc_insertion_point(field_set:Approval.steamid)
}
// uint32 ipaddress = 7;
void Approval::clear_ipaddress() {
ipaddress_ = 0u;
}
::google::protobuf::uint32 Approval::ipaddress() const {
// @@protoc_insertion_point(field_get:Approval.ipaddress)
return ipaddress_;
}
void Approval::set_ipaddress(::google::protobuf::uint32 value) {
ipaddress_ = value;
// @@protoc_insertion_point(field_set:Approval.ipaddress)
}
// int32 port = 8;
void Approval::clear_port() {
port_ = 0;
}
::google::protobuf::int32 Approval::port() const {
// @@protoc_insertion_point(field_get:Approval.port)
return port_;
}
void Approval::set_port(::google::protobuf::int32 value) {
port_ = value;
// @@protoc_insertion_point(field_set:Approval.port)
}
// uint32 levelSeed = 9;
void Approval::clear_levelseed() {
levelseed_ = 0u;
}
::google::protobuf::uint32 Approval::levelseed() const {
// @@protoc_insertion_point(field_get:Approval.levelSeed)
return levelseed_;
}
void Approval::set_levelseed(::google::protobuf::uint32 value) {
levelseed_ = value;
// @@protoc_insertion_point(field_set:Approval.levelSeed)
}
// uint32 levelSize = 10;
void Approval::clear_levelsize() {
levelsize_ = 0u;
}
::google::protobuf::uint32 Approval::levelsize() const {
// @@protoc_insertion_point(field_get:Approval.levelSize)
return levelsize_;
}
void Approval::set_levelsize(::google::protobuf::uint32 value) {
levelsize_ = value;
// @@protoc_insertion_point(field_set:Approval.levelSize)
}
// string checksum = 11;
void Approval::clear_checksum() {
checksum_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& Approval::checksum() const {
// @@protoc_insertion_point(field_get:Approval.checksum)
return checksum_.GetNoArena();
}
void Approval::set_checksum(const ::std::string& value) {
checksum_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Approval.checksum)
}
#if LANG_CXX11
void Approval::set_checksum(::std::string&& value) {
checksum_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Approval.checksum)
}
#endif
void Approval::set_checksum(const char* value) {
checksum_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Approval.checksum)
}
void Approval::set_checksum(const char* value, size_t size) {
checksum_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Approval.checksum)
}
::std::string* Approval::mutable_checksum() {
// @@protoc_insertion_point(field_mutable:Approval.checksum)
return checksum_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Approval::release_checksum() {
// @@protoc_insertion_point(field_release:Approval.checksum)
return checksum_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Approval::set_allocated_checksum(::std::string* checksum) {
if (checksum != NULL) {
} else {
}
checksum_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), checksum);
// @@protoc_insertion_point(field_set_allocated:Approval.checksum)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int UpdateItemContainer::kTypeFieldNumber;
const int UpdateItemContainer::kContainerFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
UpdateItemContainer::UpdateItemContainer()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:UpdateItemContainer)
}
UpdateItemContainer::UpdateItemContainer(const UpdateItemContainer& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
container_(from.container_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
type_ = from.type_;
// @@protoc_insertion_point(copy_constructor:UpdateItemContainer)
}
void UpdateItemContainer::SharedCtor() {
type_ = 0;
_cached_size_ = 0;
}
UpdateItemContainer::~UpdateItemContainer() {
// @@protoc_insertion_point(destructor:UpdateItemContainer)
SharedDtor();
}
void UpdateItemContainer::SharedDtor() {
}
void UpdateItemContainer::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* UpdateItemContainer::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[54].descriptor;
}
const UpdateItemContainer& UpdateItemContainer::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
UpdateItemContainer* UpdateItemContainer::New(::google::protobuf::Arena* arena) const {
UpdateItemContainer* n = new UpdateItemContainer;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void UpdateItemContainer::Clear() {
// @@protoc_insertion_point(message_clear_start:UpdateItemContainer)
container_.Clear();
type_ = 0;
}
bool UpdateItemContainer::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:UpdateItemContainer)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 type = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &type_)));
} else {
goto handle_unusual;
}
break;
}
// repeated .ItemContainer container = 2;
case 2: {
if (tag == 18u) {
DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_container()));
} else {
goto handle_unusual;
}
input->UnsafeDecrementRecursionDepth();
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:UpdateItemContainer)
return true;
failure:
// @@protoc_insertion_point(parse_failure:UpdateItemContainer)
return false;
#undef DO_
}
void UpdateItemContainer::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:UpdateItemContainer)
// int32 type = 1;
if (this->type() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->type(), output);
}
// repeated .ItemContainer container = 2;
for (unsigned int i = 0, n = this->container_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->container(i), output);
}
// @@protoc_insertion_point(serialize_end:UpdateItemContainer)
}
::google::protobuf::uint8* UpdateItemContainer::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:UpdateItemContainer)
// int32 type = 1;
if (this->type() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->type(), target);
}
// repeated .ItemContainer container = 2;
for (unsigned int i = 0, n = this->container_size(); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, this->container(i), false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:UpdateItemContainer)
return target;
}
size_t UpdateItemContainer::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:UpdateItemContainer)
size_t total_size = 0;
// repeated .ItemContainer container = 2;
{
unsigned int count = this->container_size();
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->container(i));
}
}
// int32 type = 1;
if (this->type() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->type());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void UpdateItemContainer::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:UpdateItemContainer)
GOOGLE_DCHECK_NE(&from, this);
const UpdateItemContainer* source =
::google::protobuf::internal::DynamicCastToGenerated<const UpdateItemContainer>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:UpdateItemContainer)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:UpdateItemContainer)
MergeFrom(*source);
}
}
void UpdateItemContainer::MergeFrom(const UpdateItemContainer& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:UpdateItemContainer)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
container_.MergeFrom(from.container_);
if (from.type() != 0) {
set_type(from.type());
}
}
void UpdateItemContainer::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:UpdateItemContainer)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void UpdateItemContainer::CopyFrom(const UpdateItemContainer& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:UpdateItemContainer)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool UpdateItemContainer::IsInitialized() const {
return true;
}
void UpdateItemContainer::Swap(UpdateItemContainer* other) {
if (other == this) return;
InternalSwap(other);
}
void UpdateItemContainer::InternalSwap(UpdateItemContainer* other) {
container_.UnsafeArenaSwap(&other->container_);
std::swap(type_, other->type_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata UpdateItemContainer::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[54];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// UpdateItemContainer
// int32 type = 1;
void UpdateItemContainer::clear_type() {
type_ = 0;
}
::google::protobuf::int32 UpdateItemContainer::type() const {
// @@protoc_insertion_point(field_get:UpdateItemContainer.type)
return type_;
}
void UpdateItemContainer::set_type(::google::protobuf::int32 value) {
type_ = value;
// @@protoc_insertion_point(field_set:UpdateItemContainer.type)
}
// repeated .ItemContainer container = 2;
int UpdateItemContainer::container_size() const {
return container_.size();
}
void UpdateItemContainer::clear_container() {
container_.Clear();
}
const ::ItemContainer& UpdateItemContainer::container(int index) const {
// @@protoc_insertion_point(field_get:UpdateItemContainer.container)
return container_.Get(index);
}
::ItemContainer* UpdateItemContainer::mutable_container(int index) {
// @@protoc_insertion_point(field_mutable:UpdateItemContainer.container)
return container_.Mutable(index);
}
::ItemContainer* UpdateItemContainer::add_container() {
// @@protoc_insertion_point(field_add:UpdateItemContainer.container)
return container_.Add();
}
::google::protobuf::RepeatedPtrField< ::ItemContainer >*
UpdateItemContainer::mutable_container() {
// @@protoc_insertion_point(field_mutable_list:UpdateItemContainer.container)
return &container_;
}
const ::google::protobuf::RepeatedPtrField< ::ItemContainer >&
UpdateItemContainer::container() const {
// @@protoc_insertion_point(field_list:UpdateItemContainer.container)
return container_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PlayerUpdateLoot::kItemIDFieldNumber;
const int PlayerUpdateLoot::kEntityIDFieldNumber;
const int PlayerUpdateLoot::kContainersFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PlayerUpdateLoot::PlayerUpdateLoot()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:PlayerUpdateLoot)
}
PlayerUpdateLoot::PlayerUpdateLoot(const PlayerUpdateLoot& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
containers_(from.containers_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&itemid_, &from.itemid_,
reinterpret_cast<char*>(&entityid_) -
reinterpret_cast<char*>(&itemid_) + sizeof(entityid_));
// @@protoc_insertion_point(copy_constructor:PlayerUpdateLoot)
}
void PlayerUpdateLoot::SharedCtor() {
::memset(&itemid_, 0, reinterpret_cast<char*>(&entityid_) -
reinterpret_cast<char*>(&itemid_) + sizeof(entityid_));
_cached_size_ = 0;
}
PlayerUpdateLoot::~PlayerUpdateLoot() {
// @@protoc_insertion_point(destructor:PlayerUpdateLoot)
SharedDtor();
}
void PlayerUpdateLoot::SharedDtor() {
}
void PlayerUpdateLoot::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PlayerUpdateLoot::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[55].descriptor;
}
const PlayerUpdateLoot& PlayerUpdateLoot::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
PlayerUpdateLoot* PlayerUpdateLoot::New(::google::protobuf::Arena* arena) const {
PlayerUpdateLoot* n = new PlayerUpdateLoot;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void PlayerUpdateLoot::Clear() {
// @@protoc_insertion_point(message_clear_start:PlayerUpdateLoot)
containers_.Clear();
::memset(&itemid_, 0, reinterpret_cast<char*>(&entityid_) -
reinterpret_cast<char*>(&itemid_) + sizeof(entityid_));
}
bool PlayerUpdateLoot::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:PlayerUpdateLoot)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 itemID = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &itemid_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 entityID = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &entityid_)));
} else {
goto handle_unusual;
}
break;
}
// repeated .ItemContainer containers = 3;
case 3: {
if (tag == 26u) {
DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_containers()));
} else {
goto handle_unusual;
}
input->UnsafeDecrementRecursionDepth();
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:PlayerUpdateLoot)
return true;
failure:
// @@protoc_insertion_point(parse_failure:PlayerUpdateLoot)
return false;
#undef DO_
}
void PlayerUpdateLoot::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:PlayerUpdateLoot)
// uint32 itemID = 1;
if (this->itemid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->itemid(), output);
}
// uint32 entityID = 2;
if (this->entityid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->entityid(), output);
}
// repeated .ItemContainer containers = 3;
for (unsigned int i = 0, n = this->containers_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->containers(i), output);
}
// @@protoc_insertion_point(serialize_end:PlayerUpdateLoot)
}
::google::protobuf::uint8* PlayerUpdateLoot::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:PlayerUpdateLoot)
// uint32 itemID = 1;
if (this->itemid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->itemid(), target);
}
// uint32 entityID = 2;
if (this->entityid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->entityid(), target);
}
// repeated .ItemContainer containers = 3;
for (unsigned int i = 0, n = this->containers_size(); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
3, this->containers(i), false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:PlayerUpdateLoot)
return target;
}
size_t PlayerUpdateLoot::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PlayerUpdateLoot)
size_t total_size = 0;
// repeated .ItemContainer containers = 3;
{
unsigned int count = this->containers_size();
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->containers(i));
}
}
// uint32 itemID = 1;
if (this->itemid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->itemid());
}
// uint32 entityID = 2;
if (this->entityid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->entityid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PlayerUpdateLoot::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:PlayerUpdateLoot)
GOOGLE_DCHECK_NE(&from, this);
const PlayerUpdateLoot* source =
::google::protobuf::internal::DynamicCastToGenerated<const PlayerUpdateLoot>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PlayerUpdateLoot)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:PlayerUpdateLoot)
MergeFrom(*source);
}
}
void PlayerUpdateLoot::MergeFrom(const PlayerUpdateLoot& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:PlayerUpdateLoot)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
containers_.MergeFrom(from.containers_);
if (from.itemid() != 0) {
set_itemid(from.itemid());
}
if (from.entityid() != 0) {
set_entityid(from.entityid());
}
}
void PlayerUpdateLoot::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:PlayerUpdateLoot)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PlayerUpdateLoot::CopyFrom(const PlayerUpdateLoot& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PlayerUpdateLoot)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PlayerUpdateLoot::IsInitialized() const {
return true;
}
void PlayerUpdateLoot::Swap(PlayerUpdateLoot* other) {
if (other == this) return;
InternalSwap(other);
}
void PlayerUpdateLoot::InternalSwap(PlayerUpdateLoot* other) {
containers_.UnsafeArenaSwap(&other->containers_);
std::swap(itemid_, other->itemid_);
std::swap(entityid_, other->entityid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata PlayerUpdateLoot::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[55];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// PlayerUpdateLoot
// uint32 itemID = 1;
void PlayerUpdateLoot::clear_itemid() {
itemid_ = 0u;
}
::google::protobuf::uint32 PlayerUpdateLoot::itemid() const {
// @@protoc_insertion_point(field_get:PlayerUpdateLoot.itemID)
return itemid_;
}
void PlayerUpdateLoot::set_itemid(::google::protobuf::uint32 value) {
itemid_ = value;
// @@protoc_insertion_point(field_set:PlayerUpdateLoot.itemID)
}
// uint32 entityID = 2;
void PlayerUpdateLoot::clear_entityid() {
entityid_ = 0u;
}
::google::protobuf::uint32 PlayerUpdateLoot::entityid() const {
// @@protoc_insertion_point(field_get:PlayerUpdateLoot.entityID)
return entityid_;
}
void PlayerUpdateLoot::set_entityid(::google::protobuf::uint32 value) {
entityid_ = value;
// @@protoc_insertion_point(field_set:PlayerUpdateLoot.entityID)
}
// repeated .ItemContainer containers = 3;
int PlayerUpdateLoot::containers_size() const {
return containers_.size();
}
void PlayerUpdateLoot::clear_containers() {
containers_.Clear();
}
const ::ItemContainer& PlayerUpdateLoot::containers(int index) const {
// @@protoc_insertion_point(field_get:PlayerUpdateLoot.containers)
return containers_.Get(index);
}
::ItemContainer* PlayerUpdateLoot::mutable_containers(int index) {
// @@protoc_insertion_point(field_mutable:PlayerUpdateLoot.containers)
return containers_.Mutable(index);
}
::ItemContainer* PlayerUpdateLoot::add_containers() {
// @@protoc_insertion_point(field_add:PlayerUpdateLoot.containers)
return containers_.Add();
}
::google::protobuf::RepeatedPtrField< ::ItemContainer >*
PlayerUpdateLoot::mutable_containers() {
// @@protoc_insertion_point(field_mutable_list:PlayerUpdateLoot.containers)
return &containers_;
}
const ::google::protobuf::RepeatedPtrField< ::ItemContainer >&
PlayerUpdateLoot::containers() const {
// @@protoc_insertion_point(field_list:PlayerUpdateLoot.containers)
return containers_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int UpdateItem::kItemFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
UpdateItem::UpdateItem()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:UpdateItem)
}
UpdateItem::UpdateItem(const UpdateItem& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_item()) {
item_ = new ::Item(*from.item_);
} else {
item_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:UpdateItem)
}
void UpdateItem::SharedCtor() {
item_ = NULL;
_cached_size_ = 0;
}
UpdateItem::~UpdateItem() {
// @@protoc_insertion_point(destructor:UpdateItem)
SharedDtor();
}
void UpdateItem::SharedDtor() {
if (this != internal_default_instance()) {
delete item_;
}
}
void UpdateItem::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* UpdateItem::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[56].descriptor;
}
const UpdateItem& UpdateItem::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
UpdateItem* UpdateItem::New(::google::protobuf::Arena* arena) const {
UpdateItem* n = new UpdateItem;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void UpdateItem::Clear() {
// @@protoc_insertion_point(message_clear_start:UpdateItem)
if (GetArenaNoVirtual() == NULL && item_ != NULL) {
delete item_;
}
item_ = NULL;
}
bool UpdateItem::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:UpdateItem)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .Item item = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_item()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:UpdateItem)
return true;
failure:
// @@protoc_insertion_point(parse_failure:UpdateItem)
return false;
#undef DO_
}
void UpdateItem::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:UpdateItem)
// .Item item = 1;
if (this->has_item()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->item_, output);
}
// @@protoc_insertion_point(serialize_end:UpdateItem)
}
::google::protobuf::uint8* UpdateItem::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:UpdateItem)
// .Item item = 1;
if (this->has_item()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->item_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:UpdateItem)
return target;
}
size_t UpdateItem::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:UpdateItem)
size_t total_size = 0;
// .Item item = 1;
if (this->has_item()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->item_);
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void UpdateItem::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:UpdateItem)
GOOGLE_DCHECK_NE(&from, this);
const UpdateItem* source =
::google::protobuf::internal::DynamicCastToGenerated<const UpdateItem>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:UpdateItem)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:UpdateItem)
MergeFrom(*source);
}
}
void UpdateItem::MergeFrom(const UpdateItem& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:UpdateItem)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_item()) {
mutable_item()->::Item::MergeFrom(from.item());
}
}
void UpdateItem::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:UpdateItem)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void UpdateItem::CopyFrom(const UpdateItem& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:UpdateItem)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool UpdateItem::IsInitialized() const {
return true;
}
void UpdateItem::Swap(UpdateItem* other) {
if (other == this) return;
InternalSwap(other);
}
void UpdateItem::InternalSwap(UpdateItem* other) {
std::swap(item_, other->item_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata UpdateItem::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[56];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// UpdateItem
// .Item item = 1;
bool UpdateItem::has_item() const {
return this != internal_default_instance() && item_ != NULL;
}
void UpdateItem::clear_item() {
if (GetArenaNoVirtual() == NULL && item_ != NULL) delete item_;
item_ = NULL;
}
const ::Item& UpdateItem::item() const {
// @@protoc_insertion_point(field_get:UpdateItem.item)
return item_ != NULL ? *item_
: *::Item::internal_default_instance();
}
::Item* UpdateItem::mutable_item() {
if (item_ == NULL) {
item_ = new ::Item;
}
// @@protoc_insertion_point(field_mutable:UpdateItem.item)
return item_;
}
::Item* UpdateItem::release_item() {
// @@protoc_insertion_point(field_release:UpdateItem.item)
::Item* temp = item_;
item_ = NULL;
return temp;
}
void UpdateItem::set_allocated_item(::Item* item) {
delete item_;
item_ = item;
if (item) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:UpdateItem.item)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int TakeDamage::kAmountFieldNumber;
const int TakeDamage::kDirectionFieldNumber;
const int TakeDamage::kTypeFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
TakeDamage::TakeDamage()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:TakeDamage)
}
TakeDamage::TakeDamage(const TakeDamage& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_direction()) {
direction_ = new ::Vector3Serialized(*from.direction_);
} else {
direction_ = NULL;
}
::memcpy(&amount_, &from.amount_,
reinterpret_cast<char*>(&type_) -
reinterpret_cast<char*>(&amount_) + sizeof(type_));
// @@protoc_insertion_point(copy_constructor:TakeDamage)
}
void TakeDamage::SharedCtor() {
::memset(&direction_, 0, reinterpret_cast<char*>(&type_) -
reinterpret_cast<char*>(&direction_) + sizeof(type_));
_cached_size_ = 0;
}
TakeDamage::~TakeDamage() {
// @@protoc_insertion_point(destructor:TakeDamage)
SharedDtor();
}
void TakeDamage::SharedDtor() {
if (this != internal_default_instance()) {
delete direction_;
}
}
void TakeDamage::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TakeDamage::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[57].descriptor;
}
const TakeDamage& TakeDamage::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
TakeDamage* TakeDamage::New(::google::protobuf::Arena* arena) const {
TakeDamage* n = new TakeDamage;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void TakeDamage::Clear() {
// @@protoc_insertion_point(message_clear_start:TakeDamage)
if (GetArenaNoVirtual() == NULL && direction_ != NULL) {
delete direction_;
}
direction_ = NULL;
::memset(&amount_, 0, reinterpret_cast<char*>(&type_) -
reinterpret_cast<char*>(&amount_) + sizeof(type_));
}
bool TakeDamage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:TakeDamage)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float amount = 1;
case 1: {
if (tag == 13u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &amount_)));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized direction = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_direction()));
} else {
goto handle_unusual;
}
break;
}
// int32 type = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &type_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:TakeDamage)
return true;
failure:
// @@protoc_insertion_point(parse_failure:TakeDamage)
return false;
#undef DO_
}
void TakeDamage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:TakeDamage)
// float amount = 1;
if (this->amount() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->amount(), output);
}
// .Vector3Serialized direction = 2;
if (this->has_direction()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->direction_, output);
}
// int32 type = 3;
if (this->type() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->type(), output);
}
// @@protoc_insertion_point(serialize_end:TakeDamage)
}
::google::protobuf::uint8* TakeDamage::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:TakeDamage)
// float amount = 1;
if (this->amount() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->amount(), target);
}
// .Vector3Serialized direction = 2;
if (this->has_direction()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
2, *this->direction_, false, target);
}
// int32 type = 3;
if (this->type() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->type(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:TakeDamage)
return target;
}
size_t TakeDamage::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:TakeDamage)
size_t total_size = 0;
// .Vector3Serialized direction = 2;
if (this->has_direction()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->direction_);
}
// float amount = 1;
if (this->amount() != 0) {
total_size += 1 + 4;
}
// int32 type = 3;
if (this->type() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->type());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TakeDamage::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:TakeDamage)
GOOGLE_DCHECK_NE(&from, this);
const TakeDamage* source =
::google::protobuf::internal::DynamicCastToGenerated<const TakeDamage>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:TakeDamage)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:TakeDamage)
MergeFrom(*source);
}
}
void TakeDamage::MergeFrom(const TakeDamage& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:TakeDamage)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_direction()) {
mutable_direction()->::Vector3Serialized::MergeFrom(from.direction());
}
if (from.amount() != 0) {
set_amount(from.amount());
}
if (from.type() != 0) {
set_type(from.type());
}
}
void TakeDamage::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:TakeDamage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TakeDamage::CopyFrom(const TakeDamage& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:TakeDamage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TakeDamage::IsInitialized() const {
return true;
}
void TakeDamage::Swap(TakeDamage* other) {
if (other == this) return;
InternalSwap(other);
}
void TakeDamage::InternalSwap(TakeDamage* other) {
std::swap(direction_, other->direction_);
std::swap(amount_, other->amount_);
std::swap(type_, other->type_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata TakeDamage::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[57];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// TakeDamage
// float amount = 1;
void TakeDamage::clear_amount() {
amount_ = 0;
}
float TakeDamage::amount() const {
// @@protoc_insertion_point(field_get:TakeDamage.amount)
return amount_;
}
void TakeDamage::set_amount(float value) {
amount_ = value;
// @@protoc_insertion_point(field_set:TakeDamage.amount)
}
// .Vector3Serialized direction = 2;
bool TakeDamage::has_direction() const {
return this != internal_default_instance() && direction_ != NULL;
}
void TakeDamage::clear_direction() {
if (GetArenaNoVirtual() == NULL && direction_ != NULL) delete direction_;
direction_ = NULL;
}
const ::Vector3Serialized& TakeDamage::direction() const {
// @@protoc_insertion_point(field_get:TakeDamage.direction)
return direction_ != NULL ? *direction_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* TakeDamage::mutable_direction() {
if (direction_ == NULL) {
direction_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:TakeDamage.direction)
return direction_;
}
::Vector3Serialized* TakeDamage::release_direction() {
// @@protoc_insertion_point(field_release:TakeDamage.direction)
::Vector3Serialized* temp = direction_;
direction_ = NULL;
return temp;
}
void TakeDamage::set_allocated_direction(::Vector3Serialized* direction) {
delete direction_;
direction_ = direction;
if (direction) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:TakeDamage.direction)
}
// int32 type = 3;
void TakeDamage::clear_type() {
type_ = 0;
}
::google::protobuf::int32 TakeDamage::type() const {
// @@protoc_insertion_point(field_get:TakeDamage.type)
return type_;
}
void TakeDamage::set_type(::google::protobuf::int32 value) {
type_ = value;
// @@protoc_insertion_point(field_set:TakeDamage.type)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int EntityList::kEntityFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
EntityList::EntityList()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:EntityList)
}
EntityList::EntityList(const EntityList& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
entity_(from.entity_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:EntityList)
}
void EntityList::SharedCtor() {
_cached_size_ = 0;
}
EntityList::~EntityList() {
// @@protoc_insertion_point(destructor:EntityList)
SharedDtor();
}
void EntityList::SharedDtor() {
}
void EntityList::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* EntityList::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[58].descriptor;
}
const EntityList& EntityList::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
EntityList* EntityList::New(::google::protobuf::Arena* arena) const {
EntityList* n = new EntityList;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void EntityList::Clear() {
// @@protoc_insertion_point(message_clear_start:EntityList)
entity_.Clear();
}
bool EntityList::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:EntityList)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .Entity entity = 1;
case 1: {
if (tag == 10u) {
DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_entity()));
} else {
goto handle_unusual;
}
input->UnsafeDecrementRecursionDepth();
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:EntityList)
return true;
failure:
// @@protoc_insertion_point(parse_failure:EntityList)
return false;
#undef DO_
}
void EntityList::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:EntityList)
// repeated .Entity entity = 1;
for (unsigned int i = 0, n = this->entity_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->entity(i), output);
}
// @@protoc_insertion_point(serialize_end:EntityList)
}
::google::protobuf::uint8* EntityList::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:EntityList)
// repeated .Entity entity = 1;
for (unsigned int i = 0, n = this->entity_size(); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, this->entity(i), false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:EntityList)
return target;
}
size_t EntityList::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:EntityList)
size_t total_size = 0;
// repeated .Entity entity = 1;
{
unsigned int count = this->entity_size();
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->entity(i));
}
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void EntityList::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:EntityList)
GOOGLE_DCHECK_NE(&from, this);
const EntityList* source =
::google::protobuf::internal::DynamicCastToGenerated<const EntityList>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:EntityList)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:EntityList)
MergeFrom(*source);
}
}
void EntityList::MergeFrom(const EntityList& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:EntityList)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
entity_.MergeFrom(from.entity_);
}
void EntityList::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:EntityList)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void EntityList::CopyFrom(const EntityList& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:EntityList)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool EntityList::IsInitialized() const {
return true;
}
void EntityList::Swap(EntityList* other) {
if (other == this) return;
InternalSwap(other);
}
void EntityList::InternalSwap(EntityList* other) {
entity_.UnsafeArenaSwap(&other->entity_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata EntityList::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[58];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// EntityList
// repeated .Entity entity = 1;
int EntityList::entity_size() const {
return entity_.size();
}
void EntityList::clear_entity() {
entity_.Clear();
}
const ::Entity& EntityList::entity(int index) const {
// @@protoc_insertion_point(field_get:EntityList.entity)
return entity_.Get(index);
}
::Entity* EntityList::mutable_entity(int index) {
// @@protoc_insertion_point(field_mutable:EntityList.entity)
return entity_.Mutable(index);
}
::Entity* EntityList::add_entity() {
// @@protoc_insertion_point(field_add:EntityList.entity)
return entity_.Add();
}
::google::protobuf::RepeatedPtrField< ::Entity >*
EntityList::mutable_entity() {
// @@protoc_insertion_point(field_mutable_list:EntityList.entity)
return &entity_;
}
const ::google::protobuf::RepeatedPtrField< ::Entity >&
EntityList::entity() const {
// @@protoc_insertion_point(field_list:EntityList.entity)
return entity_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CreateBuilding::kEntityFieldNumber;
const int CreateBuilding::kSocketFieldNumber;
const int CreateBuilding::kOnterrainFieldNumber;
const int CreateBuilding::kPositionFieldNumber;
const int CreateBuilding::kNormalFieldNumber;
const int CreateBuilding::kRayFieldNumber;
const int CreateBuilding::kBlockIDFieldNumber;
const int CreateBuilding::kRotationFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
CreateBuilding::CreateBuilding()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:CreateBuilding)
}
CreateBuilding::CreateBuilding(const CreateBuilding& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_position()) {
position_ = new ::Vector3Serialized(*from.position_);
} else {
position_ = NULL;
}
if (from.has_normal()) {
normal_ = new ::Vector3Serialized(*from.normal_);
} else {
normal_ = NULL;
}
if (from.has_ray()) {
ray_ = new ::RaySerialized(*from.ray_);
} else {
ray_ = NULL;
}
if (from.has_rotation()) {
rotation_ = new ::Vector3Serialized(*from.rotation_);
} else {
rotation_ = NULL;
}
::memcpy(&entity_, &from.entity_,
reinterpret_cast<char*>(&blockid_) -
reinterpret_cast<char*>(&entity_) + sizeof(blockid_));
// @@protoc_insertion_point(copy_constructor:CreateBuilding)
}
void CreateBuilding::SharedCtor() {
::memset(&position_, 0, reinterpret_cast<char*>(&blockid_) -
reinterpret_cast<char*>(&position_) + sizeof(blockid_));
_cached_size_ = 0;
}
CreateBuilding::~CreateBuilding() {
// @@protoc_insertion_point(destructor:CreateBuilding)
SharedDtor();
}
void CreateBuilding::SharedDtor() {
if (this != internal_default_instance()) {
delete position_;
}
if (this != internal_default_instance()) {
delete normal_;
}
if (this != internal_default_instance()) {
delete ray_;
}
if (this != internal_default_instance()) {
delete rotation_;
}
}
void CreateBuilding::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CreateBuilding::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[59].descriptor;
}
const CreateBuilding& CreateBuilding::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
CreateBuilding* CreateBuilding::New(::google::protobuf::Arena* arena) const {
CreateBuilding* n = new CreateBuilding;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void CreateBuilding::Clear() {
// @@protoc_insertion_point(message_clear_start:CreateBuilding)
if (GetArenaNoVirtual() == NULL && position_ != NULL) {
delete position_;
}
position_ = NULL;
if (GetArenaNoVirtual() == NULL && normal_ != NULL) {
delete normal_;
}
normal_ = NULL;
if (GetArenaNoVirtual() == NULL && ray_ != NULL) {
delete ray_;
}
ray_ = NULL;
if (GetArenaNoVirtual() == NULL && rotation_ != NULL) {
delete rotation_;
}
rotation_ = NULL;
::memset(&entity_, 0, reinterpret_cast<char*>(&blockid_) -
reinterpret_cast<char*>(&entity_) + sizeof(blockid_));
}
bool CreateBuilding::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:CreateBuilding)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 entity = 1;
case 1: {
if (tag == 8u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &entity_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 socket = 2;
case 2: {
if (tag == 16u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &socket_)));
} else {
goto handle_unusual;
}
break;
}
// bool onterrain = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &onterrain_)));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized position = 4;
case 4: {
if (tag == 34u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_position()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized normal = 5;
case 5: {
if (tag == 42u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_normal()));
} else {
goto handle_unusual;
}
break;
}
// .RaySerialized ray = 6;
case 6: {
if (tag == 50u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_ray()));
} else {
goto handle_unusual;
}
break;
}
// uint32 blockID = 7;
case 7: {
if (tag == 56u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &blockid_)));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized rotation = 8;
case 8: {
if (tag == 66u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_rotation()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:CreateBuilding)
return true;
failure:
// @@protoc_insertion_point(parse_failure:CreateBuilding)
return false;
#undef DO_
}
void CreateBuilding::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:CreateBuilding)
// uint32 entity = 1;
if (this->entity() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->entity(), output);
}
// uint32 socket = 2;
if (this->socket() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->socket(), output);
}
// bool onterrain = 3;
if (this->onterrain() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->onterrain(), output);
}
// .Vector3Serialized position = 4;
if (this->has_position()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, *this->position_, output);
}
// .Vector3Serialized normal = 5;
if (this->has_normal()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, *this->normal_, output);
}
// .RaySerialized ray = 6;
if (this->has_ray()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, *this->ray_, output);
}
// uint32 blockID = 7;
if (this->blockid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->blockid(), output);
}
// .Vector3Serialized rotation = 8;
if (this->has_rotation()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, *this->rotation_, output);
}
// @@protoc_insertion_point(serialize_end:CreateBuilding)
}
::google::protobuf::uint8* CreateBuilding::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:CreateBuilding)
// uint32 entity = 1;
if (this->entity() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->entity(), target);
}
// uint32 socket = 2;
if (this->socket() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->socket(), target);
}
// bool onterrain = 3;
if (this->onterrain() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->onterrain(), target);
}
// .Vector3Serialized position = 4;
if (this->has_position()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
4, *this->position_, false, target);
}
// .Vector3Serialized normal = 5;
if (this->has_normal()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
5, *this->normal_, false, target);
}
// .RaySerialized ray = 6;
if (this->has_ray()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
6, *this->ray_, false, target);
}
// uint32 blockID = 7;
if (this->blockid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->blockid(), target);
}
// .Vector3Serialized rotation = 8;
if (this->has_rotation()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
8, *this->rotation_, false, target);
}
// @@protoc_insertion_point(serialize_to_array_end:CreateBuilding)
return target;
}
size_t CreateBuilding::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:CreateBuilding)
size_t total_size = 0;
// .Vector3Serialized position = 4;
if (this->has_position()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->position_);
}
// .Vector3Serialized normal = 5;
if (this->has_normal()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->normal_);
}
// .RaySerialized ray = 6;
if (this->has_ray()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->ray_);
}
// .Vector3Serialized rotation = 8;
if (this->has_rotation()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->rotation_);
}
// uint32 entity = 1;
if (this->entity() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->entity());
}
// uint32 socket = 2;
if (this->socket() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->socket());
}
// bool onterrain = 3;
if (this->onterrain() != 0) {
total_size += 1 + 1;
}
// uint32 blockID = 7;
if (this->blockid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->blockid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CreateBuilding::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:CreateBuilding)
GOOGLE_DCHECK_NE(&from, this);
const CreateBuilding* source =
::google::protobuf::internal::DynamicCastToGenerated<const CreateBuilding>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:CreateBuilding)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:CreateBuilding)
MergeFrom(*source);
}
}
void CreateBuilding::MergeFrom(const CreateBuilding& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:CreateBuilding)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_position()) {
mutable_position()->::Vector3Serialized::MergeFrom(from.position());
}
if (from.has_normal()) {
mutable_normal()->::Vector3Serialized::MergeFrom(from.normal());
}
if (from.has_ray()) {
mutable_ray()->::RaySerialized::MergeFrom(from.ray());
}
if (from.has_rotation()) {
mutable_rotation()->::Vector3Serialized::MergeFrom(from.rotation());
}
if (from.entity() != 0) {
set_entity(from.entity());
}
if (from.socket() != 0) {
set_socket(from.socket());
}
if (from.onterrain() != 0) {
set_onterrain(from.onterrain());
}
if (from.blockid() != 0) {
set_blockid(from.blockid());
}
}
void CreateBuilding::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:CreateBuilding)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CreateBuilding::CopyFrom(const CreateBuilding& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:CreateBuilding)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CreateBuilding::IsInitialized() const {
return true;
}
void CreateBuilding::Swap(CreateBuilding* other) {
if (other == this) return;
InternalSwap(other);
}
void CreateBuilding::InternalSwap(CreateBuilding* other) {
std::swap(position_, other->position_);
std::swap(normal_, other->normal_);
std::swap(ray_, other->ray_);
std::swap(rotation_, other->rotation_);
std::swap(entity_, other->entity_);
std::swap(socket_, other->socket_);
std::swap(onterrain_, other->onterrain_);
std::swap(blockid_, other->blockid_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata CreateBuilding::GetMetadata() const {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[59];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// CreateBuilding
// uint32 entity = 1;
void CreateBuilding::clear_entity() {
entity_ = 0u;
}
::google::protobuf::uint32 CreateBuilding::entity() const {
// @@protoc_insertion_point(field_get:CreateBuilding.entity)
return entity_;
}
void CreateBuilding::set_entity(::google::protobuf::uint32 value) {
entity_ = value;
// @@protoc_insertion_point(field_set:CreateBuilding.entity)
}
// uint32 socket = 2;
void CreateBuilding::clear_socket() {
socket_ = 0u;
}
::google::protobuf::uint32 CreateBuilding::socket() const {
// @@protoc_insertion_point(field_get:CreateBuilding.socket)
return socket_;
}
void CreateBuilding::set_socket(::google::protobuf::uint32 value) {
socket_ = value;
// @@protoc_insertion_point(field_set:CreateBuilding.socket)
}
// bool onterrain = 3;
void CreateBuilding::clear_onterrain() {
onterrain_ = false;
}
bool CreateBuilding::onterrain() const {
// @@protoc_insertion_point(field_get:CreateBuilding.onterrain)
return onterrain_;
}
void CreateBuilding::set_onterrain(bool value) {
onterrain_ = value;
// @@protoc_insertion_point(field_set:CreateBuilding.onterrain)
}
// .Vector3Serialized position = 4;
bool CreateBuilding::has_position() const {
return this != internal_default_instance() && position_ != NULL;
}
void CreateBuilding::clear_position() {
if (GetArenaNoVirtual() == NULL && position_ != NULL) delete position_;
position_ = NULL;
}
const ::Vector3Serialized& CreateBuilding::position() const {
// @@protoc_insertion_point(field_get:CreateBuilding.position)
return position_ != NULL ? *position_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* CreateBuilding::mutable_position() {
if (position_ == NULL) {
position_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:CreateBuilding.position)
return position_;
}
::Vector3Serialized* CreateBuilding::release_position() {
// @@protoc_insertion_point(field_release:CreateBuilding.position)
::Vector3Serialized* temp = position_;
position_ = NULL;
return temp;
}
void CreateBuilding::set_allocated_position(::Vector3Serialized* position) {
delete position_;
position_ = position;
if (position) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:CreateBuilding.position)
}
// .Vector3Serialized normal = 5;
bool CreateBuilding::has_normal() const {
return this != internal_default_instance() && normal_ != NULL;
}
void CreateBuilding::clear_normal() {
if (GetArenaNoVirtual() == NULL && normal_ != NULL) delete normal_;
normal_ = NULL;
}
const ::Vector3Serialized& CreateBuilding::normal() const {
// @@protoc_insertion_point(field_get:CreateBuilding.normal)
return normal_ != NULL ? *normal_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* CreateBuilding::mutable_normal() {
if (normal_ == NULL) {
normal_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:CreateBuilding.normal)
return normal_;
}
::Vector3Serialized* CreateBuilding::release_normal() {
// @@protoc_insertion_point(field_release:CreateBuilding.normal)
::Vector3Serialized* temp = normal_;
normal_ = NULL;
return temp;
}
void CreateBuilding::set_allocated_normal(::Vector3Serialized* normal) {
delete normal_;
normal_ = normal;
if (normal) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:CreateBuilding.normal)
}
// .RaySerialized ray = 6;
bool CreateBuilding::has_ray() const {
return this != internal_default_instance() && ray_ != NULL;
}
void CreateBuilding::clear_ray() {
if (GetArenaNoVirtual() == NULL && ray_ != NULL) delete ray_;
ray_ = NULL;
}
const ::RaySerialized& CreateBuilding::ray() const {
// @@protoc_insertion_point(field_get:CreateBuilding.ray)
return ray_ != NULL ? *ray_
: *::RaySerialized::internal_default_instance();
}
::RaySerialized* CreateBuilding::mutable_ray() {
if (ray_ == NULL) {
ray_ = new ::RaySerialized;
}
// @@protoc_insertion_point(field_mutable:CreateBuilding.ray)
return ray_;
}
::RaySerialized* CreateBuilding::release_ray() {
// @@protoc_insertion_point(field_release:CreateBuilding.ray)
::RaySerialized* temp = ray_;
ray_ = NULL;
return temp;
}
void CreateBuilding::set_allocated_ray(::RaySerialized* ray) {
delete ray_;
ray_ = ray;
if (ray) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:CreateBuilding.ray)
}
// uint32 blockID = 7;
void CreateBuilding::clear_blockid() {
blockid_ = 0u;
}
::google::protobuf::uint32 CreateBuilding::blockid() const {
// @@protoc_insertion_point(field_get:CreateBuilding.blockID)
return blockid_;
}
void CreateBuilding::set_blockid(::google::protobuf::uint32 value) {
blockid_ = value;
// @@protoc_insertion_point(field_set:CreateBuilding.blockID)
}
// .Vector3Serialized rotation = 8;
bool CreateBuilding::has_rotation() const {
return this != internal_default_instance() && rotation_ != NULL;
}
void CreateBuilding::clear_rotation() {
if (GetArenaNoVirtual() == NULL && rotation_ != NULL) delete rotation_;
rotation_ = NULL;
}
const ::Vector3Serialized& CreateBuilding::rotation() const {
// @@protoc_insertion_point(field_get:CreateBuilding.rotation)
return rotation_ != NULL ? *rotation_
: *::Vector3Serialized::internal_default_instance();
}
::Vector3Serialized* CreateBuilding::mutable_rotation() {
if (rotation_ == NULL) {
rotation_ = new ::Vector3Serialized;
}
// @@protoc_insertion_point(field_mutable:CreateBuilding.rotation)
return rotation_;
}
::Vector3Serialized* CreateBuilding::release_rotation() {
// @@protoc_insertion_point(field_release:CreateBuilding.rotation)
::Vector3Serialized* temp = rotation_;
rotation_ = NULL;
return temp;
}
void CreateBuilding::set_allocated_rotation(::Vector3Serialized* rotation) {
delete rotation_;
rotation_ = rotation;
if (rotation) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:CreateBuilding.rotation)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Attack::kPointStartFieldNumber;
const int Attack::kPointEndFieldNumber;
const int Attack::kHitIDFieldNumber;
const int Attack::kHitBoneFieldNumber;
const int Attack::kHitNormalLocalFieldNumber;
const int Attack::kHitPositionLocalFieldNumber;
const int Attack::kHitNormalWorldFieldNumber;
const int Attack::kHitPositionWorldFieldNumber;
const int Attack::kHitPartIDFieldNumber;
const int Attack::kHitMaterialIDFieldNumber;
const int Attack::kHitItemFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Attack::Attack()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_mega_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Attack)
}
Attack::Attack(const Attack& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_pointstart()) {
pointstart_ = new ::Vector3Serialized(*from.pointstart_);
} else {
pointstart_ = NULL;
}
if (from.has_pointend()) {
pointend_ = new ::Vector3Serialized(*from.pointend_);
} else {
pointend_ = NULL;
}
if (from.has_hitnormallocal()) {
hitnormallocal_ = new ::Vector3Serialized(*from.hitnormallocal_);
} else {
hitnormallocal_ = NULL;
}
if (from.has_hitpositionlocal()) {
hitpositionlocal_ = new ::Vector3Serialized(*from.hitpositionlocal_);
} else {
hitpositionlocal_ = NULL;
}
if (from.has_hitnormalworld()) {
hitnormalworld_ = new ::Vector3Serialized(*from.hitnormalworld_);
} else {
hitnormalworld_ = NULL;
}
if (from.has_hitpositionworld()) {
hitpositionworld_ = new ::Vector3Serialized(*from.hitpositionworld_);
} else {
hitpositionworld_ = NULL;
}
::memcpy(&hitid_, &from.hitid_,
reinterpret_cast<char*>(&hititem_) -
reinterpret_cast<char*>(&hitid_) + sizeof(hititem_));
// @@protoc_insertion_point(copy_constructor:Attack)
}
void Attack::SharedCtor() {
::memset(&pointstart_, 0, reinterpret_cast<char*>(&hititem_) -
reinterpret_cast<char*>(&pointstart_) + sizeof(hititem_));
_cached_size_ = 0;
}
Attack::~Attack() {
// @@protoc_insertion_point(destructor:Attack)
SharedDtor();
}
void Attack::SharedDtor() {
if (this != internal_default_instance()) {
delete pointstart_;
}
if (this != internal_default_instance()) {
delete pointend_;
}
if (this != internal_default_instance()) {
delete hitnormallocal_;
}
if (this != internal_default_instance()) {
delete hitpositionlocal_;
}
if (this != internal_default_instance()) {
delete hitnormalworld_;
}
if (this != internal_default_instance()) {
delete hitpositionworld_;
}
}
void Attack::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Attack::descriptor() {
protobuf_mega_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_mega_2eproto::file_level_metadata[60].descriptor;
}
const Attack& Attack::default_instance() {
protobuf_mega_2eproto::InitDefaults();
return *internal_default_instance();
}
Attack* Attack::New(::google::protobuf::Arena* arena) const {
Attack* n = new Attack;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Attack::Clear() {
// @@protoc_insertion_point(message_clear_start:Attack)
if (GetArenaNoVirtual() == NULL && pointstart_ != NULL) {
delete pointstart_;
}
pointstart_ = NULL;
if (GetArenaNoVirtual() == NULL && pointend_ != NULL) {
delete pointend_;
}
pointend_ = NULL;
if (GetArenaNoVirtual() == NULL && hitnormallocal_ != NULL) {
delete hitnormallocal_;
}
hitnormallocal_ = NULL;
if (GetArenaNoVirtual() == NULL && hitpositionlocal_ != NULL) {
delete hitpositionlocal_;
}
hitpositionlocal_ = NULL;
if (GetArenaNoVirtual() == NULL && hitnormalworld_ != NULL) {
delete hitnormalworld_;
}
hitnormalworld_ = NULL;
if (GetArenaNoVirtual() == NULL && hitpositionworld_ != NULL) {
delete hitpositionworld_;
}
hitpositionworld_ = NULL;
::memset(&hitid_, 0, reinterpret_cast<char*>(&hititem_) -
reinterpret_cast<char*>(&hitid_) + sizeof(hititem_));
}
bool Attack::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Attack)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .Vector3Serialized pointStart = 1;
case 1: {
if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_pointstart()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized pointEnd = 2;
case 2: {
if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_pointend()));
} else {
goto handle_unusual;
}
break;
}
// uint32 hitID = 3;
case 3: {
if (tag == 24u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &hitid_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 hitBone = 4;
case 4: {
if (tag == 32u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &hitbone_)));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized hitNormalLocal = 5;
case 5: {
if (tag == 42u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_hitnormallocal()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized hitPositionLocal = 6;
case 6: {
if (tag == 50u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_hitpositionlocal()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized hitNormalWorld = 7;
case 7: {
if (tag == 58u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_hitnormalworld()));
} else {
goto handle_unusual;
}
break;
}
// .Vector3Serialized hitPositionWorld = 8;
case 8: {
if (tag == 66u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_hitpositionworld()));
} else {
goto handle_unusual;
}
break;
}
// uint32 hitPartID = 9;
case 9: {
if (tag == 72u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &hitpartid_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 hitMaterialID = 10;
case 10: {
if (tag == 80u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &hitmaterialid_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 hitItem = 11;
case 11: {
if (tag == 88u) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &hititem_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Attack)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Attack)
return false;
#undef DO_
}
void Attack::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Attack)
// .Vector3Serialized pointStart = 1;
if (this->has_pointstart()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->pointstart_, output);
}
// .Vector3Serialized pointEnd = 2;
if (this->has_pointend()) {
::google::protob
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment