Mensagemholoholo.rpc
BattleResourceProto
| Nº | Campo | Tipo | Tag |
|---|---|---|---|
| 1 | type | BattleResourceProto.ResourceType | 08 |
| 2 | quantity | int32 | 10 |
| 3 | max_quantity | int32 | 18 |
| 4 | disabled | bool | 20 |
| 5 | cooldown_metadata | BattleResourceProto.CooldownMetadata | 2a |
| 8 | projected_quantity | int32 | 40 |
| 9 | enable_quantity_projection | bool | 48 |
| oneof resource · 2 opções, só uma de cada vez | |||
| 6 | item | Item | 30 |
| 7 | pokemon_id | HoloPokemonId | 38 |
Tipos aninhados
Usado em (5)
- BattleActorProto.resources
- BattleActorProto.item_resources
- BattleEventProto.BattleJoin.extra_resources
- BattlePokemonProto.resources
- BattlePokemonProto.item_resources
Código .proto
// holo_protos.proto · package holoholo.rpc message BattleResourceProto { ResourceType type = 1; int32 quantity = 2; int32 max_quantity = 3; bool disabled = 4; CooldownMetadata cooldown_metadata = 5; int32 projected_quantity = 8; bool enable_quantity_projection = 9; oneof resource { Item item = 6; HoloPokemonId pokemon_id = 7; } message CooldownMetadata { int64 last_used_turn = 1; int64 next_available_turn = 2; } enum ResourceType { RESOURCE_TYPE_UNSET_RESOURCE_TYPE = 0; RESOURCE_TYPE_HEALTH = 1; RESOURCE_TYPE_ENERGY = 2; RESOURCE_TYPE_SHIELD = 3; RESOURCE_TYPE_ITEM = 4; RESOURCE_TYPE_PARTY_ENERGY = 5; RESOURCE_TYPE_BREAD_POWER = 6; RESOURCE_TYPE_BREAD_MOVE = 7; RESOURCE_TYPE_BREAD_GUARD = 8; RESOURCE_TYPE_SIDELINE_POWER = 9; RESOURCE_TYPE_MEGA_SHIELD = 10; RESOURCE_TYPE_MEGA_IMPACT = 11; } }