Mensagemholoholo.rpc
BattleActorProto
| Nº | Campo | Tipo | Tag |
|---|---|---|---|
| 1 | id | string | 0a |
| 2 | type | BattleActorProto.ActorType | 10 |
| 3 | position_x | int32 | 18 |
| 4 | position_y | int32 | 20 |
| 5 | active_pokemon_id | uint64 | 28 |
| 6 | team | int32 | 30 |
| 7 | swap_available_turn | int64 | 38 |
| 8 | party_id | string | 42 |
| 9 | pokemon_roster | repeateduint64 | 4a |
| 10 | resources | map<int32, BattleResourceProto> | 52 |
| 11 | item_resources | map<int32, BattleResourceProto> | 5a |
| 12 | active_abilities | repeatedAbilityProto.AbilityType | 62 |
| oneof metadata · 1 opções, só uma de cada vez | |||
| 13 | field_actor_metadata | BattleActorProto.FieldActorMetadata | 6a |
Tipos aninhados
Usado em (1)
- BattleStateProto.actors
Código .proto
// holo_protos.proto · package holoholo.rpc message BattleActorProto { string id = 1; ActorType type = 2; int32 position_x = 3; int32 position_y = 4; uint64 active_pokemon_id = 5; int32 team = 6; int64 swap_available_turn = 7; string party_id = 8; repeated uint64 pokemon_roster = 9; map<int32, BattleResourceProto> resources = 10; map<int32, BattleResourceProto> item_resources = 11; repeated AbilityProto.AbilityType active_abilities = 12; oneof metadata { FieldActorMetadata field_actor_metadata = 13; } enum ActorType { ACTOR_TYPE_UNSET_ACTOR_TYPE = 0; ACTOR_TYPE_PLAYER = 1; ACTOR_TYPE_PLAYER_BOSS = 2; ACTOR_TYPE_PLAYER_OBSERVER = 3; ACTOR_TYPE_NPC = 4; ACTOR_TYPE_NPC_BOSS = 5; ACTOR_TYPE_NPC_OBSERVER = 6; ACTOR_TYPE_FIELD_DIRECTOR = 7; ACTOR_TYPE_SIDELINE = 8; ACTOR_TYPE_FIELD_ACTOR = 9; } message FieldActorMetadata { FieldActorType type = 1; oneof field_actor_metadata { AttackFieldActorData attack_field_actor_data = 2; CollectibleOrbFieldActorData collectible_orb_field_actor_data = 3; } message AttackFieldActorData { BattlePokemonProto.MoveType attack_type = 1; int64 begin_turn = 2; int64 end_turn = 3; bool dodged = 4; string target_actor_id = 5; } message CollectibleOrbFieldActorData { CollectibleOrbState state = 1; enum CollectibleOrbState { COLLECTIBLE_ORB_STATE_ORB_STATE_UNSET = 0; COLLECTIBLE_ORB_STATE_ORB_STATE_IDLE = 1; COLLECTIBLE_ORB_STATE_ORB_STATE_COLLECTED = 2; COLLECTIBLE_ORB_STATE_ORB_STATE_EXPIRED = 3; } } enum FieldActorType { FIELD_ACTOR_TYPE_UNSET_FIELD_ACTOR_TYPE = 0; FIELD_ACTOR_TYPE_ATTACK_INDICATOR = 1; FIELD_ACTOR_TYPE_COLLECTIBLE_ORB = 2; } } }