# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sc2ai/protocol/raw.proto require 'google/protobuf' require 'sc2ai/protocol/common_pb' descriptor_data = "\n\x18sc2ai/protocol/raw.proto\x12\x03\x41pi\x1a\x1bsc2ai/protocol/common.proto\"\xf2\x02\n\x08StartRaw\x12\'\n\x08map_size\x18\x01 \x01(\x0b\x32\x0c.Api.Size2DIB\x02x\x01H\x00\x88\x01\x01\x12)\n\x0cpathing_grid\x18\x02 \x01(\x0b\x32\x0e.Api.ImageDataH\x01\x88\x01\x01\x12/\n\x0eterrain_height\x18\x03 \x01(\x0b\x32\x0e.Api.ImageDataB\x02x\x01H\x02\x88\x01\x01\x12/\n\x0eplacement_grid\x18\x04 \x01(\x0b\x32\x0e.Api.ImageDataB\x02x\x01H\x03\x88\x01\x01\x12/\n\rplayable_area\x18\x05 \x01(\x0b\x32\x0f.Api.RectangleIB\x02x\x01H\x04\x88\x01\x01\x12)\n\x0fstart_locations\x18\x06 \x03(\x0b\x32\x0c.Api.Point2DB\x02x\x01\x42\x0b\n\t_map_sizeB\x0f\n\r_pathing_gridB\x11\n\x0f_terrain_heightB\x11\n\x0f_placement_gridB\x10\n\x0e_playable_area\"\xf6\x01\n\x0eObservationRaw\x12#\n\x06player\x18\x01 \x01(\x0b\x32\x0e.Api.PlayerRawH\x00\x88\x01\x01\x12\x18\n\x05units\x18\x02 \x03(\x0b\x32\t.Api.Unit\x12%\n\tmap_state\x18\x03 \x01(\x0b\x32\r.Api.MapStateH\x01\x88\x01\x01\x12\x1e\n\x05\x65vent\x18\x04 \x01(\x0b\x32\n.Api.EventH\x02\x88\x01\x01\x12\x1c\n\x07\x65\x66\x66\x65\x63ts\x18\x05 \x03(\x0b\x32\x0b.Api.Effect\x12\x1d\n\x05radar\x18\x06 \x03(\x0b\x32\x0e.Api.RadarRingB\t\n\x07_playerB\x0c\n\n_map_stateB\x08\n\x06_event\"Q\n\tRadarRing\x12\x1c\n\x03pos\x18\x01 \x01(\x0b\x32\n.Api.PointH\x00\x88\x01\x01\x12\x13\n\x06radius\x18\x02 \x01(\x02H\x01\x88\x01\x01\x42\x06\n\x04_posB\t\n\x07_radius\"m\n\x0bPowerSource\x12\x1c\n\x03pos\x18\x01 \x01(\x0b\x32\n.Api.PointH\x00\x88\x01\x01\x12\x13\n\x06radius\x18\x02 \x01(\x02H\x01\x88\x01\x01\x12\x10\n\x03tag\x18\x03 \x01(\x04H\x02\x88\x01\x01\x42\x06\n\x04_posB\t\n\x07_radiusB\x06\n\x04_tag\"u\n\tPlayerRaw\x12\'\n\rpower_sources\x18\x01 \x03(\x0b\x32\x10.Api.PowerSource\x12\x1f\n\x06\x63\x61mera\x18\x02 \x01(\x0b\x32\n.Api.PointH\x00\x88\x01\x01\x12\x13\n\x0bupgrade_ids\x18\x03 \x03(\rB\t\n\x07_camera\"\xaa\x01\n\tUnitOrder\x12\x17\n\nability_id\x18\x01 \x01(\rH\x01\x88\x01\x01\x12,\n\x16target_world_space_pos\x18\x02 \x01(\x0b\x32\n.Api.PointH\x00\x12\x19\n\x0ftarget_unit_tag\x18\x03 \x01(\x04H\x00\x12\x15\n\x08progress\x18\x04 \x01(\x02H\x02\x88\x01\x01\x42\x08\n\x06targetB\r\n\x0b_ability_idB\x0b\n\t_progress\"\xa7\x02\n\rPassengerUnit\x12\x10\n\x03tag\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x13\n\x06health\x18\x02 \x01(\x02H\x01\x88\x01\x01\x12\x17\n\nhealth_max\x18\x03 \x01(\x02H\x02\x88\x01\x01\x12\x13\n\x06shield\x18\x04 \x01(\x02H\x03\x88\x01\x01\x12\x17\n\nshield_max\x18\x07 \x01(\x02H\x04\x88\x01\x01\x12\x13\n\x06\x65nergy\x18\x05 \x01(\x02H\x05\x88\x01\x01\x12\x17\n\nenergy_max\x18\x08 \x01(\x02H\x06\x88\x01\x01\x12\x16\n\tunit_type\x18\x06 \x01(\rH\x07\x88\x01\x01\x42\x06\n\x04_tagB\t\n\x07_healthB\r\n\x0b_health_maxB\t\n\x07_shieldB\r\n\x0b_shield_maxB\t\n\x07_energyB\r\n\x0b_energy_maxB\x0c\n\n_unit_type\"Q\n\x0bRallyTarget\x12\x1e\n\x05point\x18\x01 \x01(\x0b\x32\n.Api.PointH\x00\x88\x01\x01\x12\x10\n\x03tag\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x08\n\x06_pointB\x06\n\x04_tag\"\x89\x0f\n\x04Unit\x12+\n\x0c\x64isplay_type\x18\x01 \x01(\x0e\x32\x10.Api.DisplayTypeH\x00\x88\x01\x01\x12$\n\x08\x61lliance\x18\x02 \x01(\x0e\x32\r.Api.AllianceH\x01\x88\x01\x01\x12\x10\n\x03tag\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12\x16\n\tunit_type\x18\x04 \x01(\rH\x03\x88\x01\x01\x12\x12\n\x05owner\x18\x05 \x01(\x05H\x04\x88\x01\x01\x12\x1c\n\x03pos\x18\x06 \x01(\x0b\x32\n.Api.PointH\x05\x88\x01\x01\x12\x13\n\x06\x66\x61\x63ing\x18\x07 \x01(\x02H\x06\x88\x01\x01\x12\x13\n\x06radius\x18\x08 \x01(\x02H\x07\x88\x01\x01\x12\x1b\n\x0e\x62uild_progress\x18\t \x01(\x02H\x08\x88\x01\x01\x12#\n\x05\x63loak\x18\n \x01(\x0e\x32\x0f.Api.CloakStateH\t\x88\x01\x01\x12\x10\n\x08\x62uff_ids\x18\x1b \x03(\r\x12\x19\n\x0c\x64\x65tect_range\x18\x1f \x01(\x02H\n\x88\x01\x01\x12\x18\n\x0bradar_range\x18 \x01(\x02H\x0b\x88\x01\x01\x12\x18\n\x0bis_selected\x18\x0b \x01(\x08H\x0c\x88\x01\x01\x12\x19\n\x0cis_on_screen\x18\x0c \x01(\x08H\r\x88\x01\x01\x12\x14\n\x07is_blip\x18\r \x01(\x08H\x0e\x88\x01\x01\x12\x17\n\nis_powered\x18# \x01(\x08H\x0f\x88\x01\x01\x12\x16\n\tis_active\x18\' \x01(\x08H\x10\x88\x01\x01\x12!\n\x14\x61ttack_upgrade_level\x18( \x01(\x05H\x11\x88\x01\x01\x12 \n\x13\x61rmor_upgrade_level\x18) \x01(\x05H\x12\x88\x01\x01\x12!\n\x14shield_upgrade_level\x18* \x01(\x05H\x13\x88\x01\x01\x12\x13\n\x06health\x18\x0e \x01(\x02H\x14\x88\x01\x01\x12\x17\n\nhealth_max\x18\x0f \x01(\x02H\x15\x88\x01\x01\x12\x13\n\x06shield\x18\x10 \x01(\x02H\x16\x88\x01\x01\x12\x17\n\nshield_max\x18$ \x01(\x02H\x17\x88\x01\x01\x12\x13\n\x06\x65nergy\x18\x11 \x01(\x02H\x18\x88\x01\x01\x12\x17\n\nenergy_max\x18% \x01(\x02H\x19\x88\x01\x01\x12\x1d\n\x10mineral_contents\x18\x12 \x01(\x05H\x1a\x88\x01\x01\x12\x1d\n\x10vespene_contents\x18\x13 \x01(\x05H\x1b\x88\x01\x01\x12\x16\n\tis_flying\x18\x14 \x01(\x08H\x1c\x88\x01\x01\x12\x18\n\x0bis_burrowed\x18\x15 \x01(\x08H\x1d\x88\x01\x01\x12\x1d\n\x10is_hallucination\x18& \x01(\x08H\x1e\x88\x01\x01\x12\x1e\n\x06orders\x18\x16 \x03(\x0b\x32\x0e.Api.UnitOrder\x12\x17\n\nadd_on_tag\x18\x17 \x01(\x04H\x1f\x88\x01\x01\x12&\n\npassengers\x18\x18 \x03(\x0b\x32\x12.Api.PassengerUnit\x12\x1e\n\x11\x63\x61rgo_space_taken\x18\x19 \x01(\x05H \x88\x01\x01\x12\x1c\n\x0f\x63\x61rgo_space_max\x18\x1a \x01(\x05H!\x88\x01\x01\x12 \n\x13\x61ssigned_harvesters\x18\x1c \x01(\x05H\"\x88\x01\x01\x12\x1d\n\x10ideal_harvesters\x18\x1d \x01(\x05H#\x88\x01\x01\x12\x1c\n\x0fweapon_cooldown\x18\x1e \x01(\x02H$\x88\x01\x01\x12\x1f\n\x12\x65ngaged_target_tag\x18\" \x01(\x04H%\x88\x01\x01\x12!\n\x14\x62uff_duration_remain\x18+ \x01(\x05H&\x88\x01\x01\x12\x1e\n\x11\x62uff_duration_max\x18, \x01(\x05H\'\x88\x01\x01\x12\'\n\rrally_targets\x18- \x03(\x0b\x32\x10.Api.RallyTargetB\x0f\n\r_display_typeB\x0b\n\t_allianceB\x06\n\x04_tagB\x0c\n\n_unit_typeB\x08\n\x06_ownerB\x06\n\x04_posB\t\n\x07_facingB\t\n\x07_radiusB\x11\n\x0f_build_progressB\x08\n\x06_cloakB\x0f\n\r_detect_rangeB\x0e\n\x0c_radar_rangeB\x0e\n\x0c_is_selectedB\x0f\n\r_is_on_screenB\n\n\x08_is_blipB\r\n\x0b_is_poweredB\x0c\n\n_is_activeB\x17\n\x15_attack_upgrade_levelB\x16\n\x14_armor_upgrade_levelB\x17\n\x15_shield_upgrade_levelB\t\n\x07_healthB\r\n\x0b_health_maxB\t\n\x07_shieldB\r\n\x0b_shield_maxB\t\n\x07_energyB\r\n\x0b_energy_maxB\x13\n\x11_mineral_contentsB\x13\n\x11_vespene_contentsB\x0c\n\n_is_flyingB\x0e\n\x0c_is_burrowedB\x13\n\x11_is_hallucinationB\r\n\x0b_add_on_tagB\x14\n\x12_cargo_space_takenB\x12\n\x10_cargo_space_maxB\x16\n\x14_assigned_harvestersB\x13\n\x11_ideal_harvestersB\x12\n\x10_weapon_cooldownB\x15\n\x13_engaged_target_tagB\x17\n\x15_buff_duration_remainB\x14\n\x12_buff_duration_max\"p\n\x08MapState\x12\'\n\nvisibility\x18\x01 \x01(\x0b\x32\x0e.Api.ImageDataH\x00\x88\x01\x01\x12\"\n\x05\x63reep\x18\x02 \x01(\x0b\x32\x0e.Api.ImageDataH\x01\x88\x01\x01\x42\r\n\x0b_visibilityB\x08\n\x06_creep\"\x1b\n\x05\x45vent\x12\x12\n\ndead_units\x18\x01 \x03(\x04\"\xba\x01\n\x06\x45\x66\x66\x65\x63t\x12\x16\n\teffect_id\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x03pos\x18\x02 \x03(\x0b\x32\x0c.Api.Point2D\x12$\n\x08\x61lliance\x18\x03 \x01(\x0e\x32\r.Api.AllianceH\x01\x88\x01\x01\x12\x12\n\x05owner\x18\x04 \x01(\x05H\x02\x88\x01\x01\x12\x13\n\x06radius\x18\x05 \x01(\x02H\x03\x88\x01\x01\x42\x0c\n\n_effect_idB\x0b\n\t_allianceB\x08\n\x06_ownerB\t\n\x07_radius\"\xb2\x01\n\tActionRaw\x12\x31\n\x0cunit_command\x18\x01 \x01(\x0b\x32\x19.Api.ActionRawUnitCommandH\x00\x12/\n\x0b\x63\x61mera_move\x18\x02 \x01(\x0b\x32\x18.Api.ActionRawCameraMoveH\x00\x12\x37\n\x0ftoggle_autocast\x18\x03 \x01(\x0b\x32\x1c.Api.ActionRawToggleAutocastH\x00\x42\x08\n\x06\x61\x63tion\"\xd4\x01\n\x14\x41\x63tionRawUnitCommand\x12\x17\n\nability_id\x18\x01 \x01(\x05H\x01\x88\x01\x01\x12.\n\x16target_world_space_pos\x18\x02 \x01(\x0b\x32\x0c.Api.Point2DH\x00\x12\x19\n\x0ftarget_unit_tag\x18\x03 \x01(\x04H\x00\x12\x11\n\tunit_tags\x18\x04 \x03(\x04\x12\x1a\n\rqueue_command\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x08\n\x06targetB\r\n\x0b_ability_idB\x10\n\x0e_queue_command\"Y\n\x13\x41\x63tionRawCameraMove\x12+\n\x12\x63\x65nter_world_space\x18\x01 \x01(\x0b\x32\n.Api.PointH\x00\x88\x01\x01\x42\x15\n\x13_center_world_space\"T\n\x17\x41\x63tionRawToggleAutocast\x12\x17\n\nability_id\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x11\n\tunit_tags\x18\x02 \x03(\x04\x42\r\n\x0b_ability_id*_\n\x0b\x44isplayType\x12\x18\n\x14\x45numDisplayTypeUnset\x10\x00\x12\x0b\n\x07Visible\x10\x01\x12\x0c\n\x08Snapshot\x10\x02\x12\n\n\x06Hidden\x10\x03\x12\x0f\n\x0bPlaceholder\x10\x04*M\n\x08\x41lliance\x12\x15\n\x11\x45numAllianceUnset\x10\x00\x12\x08\n\x04Self\x10\x01\x12\x08\n\x04\x41lly\x10\x02\x12\x0b\n\x07Neutral\x10\x03\x12\t\n\x05\x45nemy\x10\x04*e\n\nCloakState\x12\x12\n\x0e\x43loakedUnknown\x10\x00\x12\x0b\n\x07\x43loaked\x10\x01\x12\x13\n\x0f\x43loakedDetected\x10\x02\x12\x0e\n\nNotCloaked\x10\x03\x12\x11\n\rCloakedAllied\x10\x04\x62\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) module Api StartRaw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.StartRaw").msgclass ObservationRaw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.ObservationRaw").msgclass RadarRing = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.RadarRing").msgclass PowerSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.PowerSource").msgclass PlayerRaw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.PlayerRaw").msgclass UnitOrder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.UnitOrder").msgclass PassengerUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.PassengerUnit").msgclass RallyTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.RallyTarget").msgclass Unit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.Unit").msgclass MapState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.MapState").msgclass Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.Event").msgclass Effect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.Effect").msgclass ActionRaw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.ActionRaw").msgclass ActionRawUnitCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.ActionRawUnitCommand").msgclass ActionRawCameraMove = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.ActionRawCameraMove").msgclass ActionRawToggleAutocast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.ActionRawToggleAutocast").msgclass DisplayType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.DisplayType").enummodule Alliance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.Alliance").enummodule CloakState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Api.CloakState").enummodule end