Sha256: ab5aed54de68f4c2e53162305f179a221fe6c42d844ab6f1357abdfc76024997

Contents?: true

Size: 1.59 KB

Versions: 7

Compression:

Stored size: 1.59 KB

Contents

syntax = "proto2";

package Api;

import "sc2ai/protocol/common.proto";
import "sc2ai/protocol/error.proto";

message RequestQuery {
  repeated RequestQueryPathing pathing = 1;
  repeated RequestQueryAvailableAbilities abilities = 2;
  repeated RequestQueryBuildingPlacement placements = 3;
  optional bool ignore_resource_requirements = 4;   // Ignores requirements like food, minerals and so on.
}

message ResponseQuery {
  repeated ResponseQueryPathing pathing = 1;
  repeated ResponseQueryAvailableAbilities abilities = 2;
  repeated ResponseQueryBuildingPlacement placements = 3;
}

//--------------------------------------------------------------------------------------------------
message RequestQueryPathing {
  oneof start {
    Point2D start_pos = 1;
    uint64 unit_tag = 2;
  }
  optional Point2D end_pos = 3;
}

message ResponseQueryPathing {
  optional float distance = 1;                      // 0 if no path exists
}

//--------------------------------------------------------------------------------------------------
message RequestQueryAvailableAbilities {
  optional uint64 unit_tag = 1;
}

message ResponseQueryAvailableAbilities {
  repeated AvailableAbility abilities = 1;
  optional uint64 unit_tag = 2;
  optional uint32 unit_type_id = 3;
}

//--------------------------------------------------------------------------------------------------
message RequestQueryBuildingPlacement {
  optional int32 ability_id = 1;
  optional Point2D target_pos = 2;
  optional uint64 placing_unit_tag = 3;             // Not required
}

message ResponseQueryBuildingPlacement  {
  optional ActionResult result = 1;
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sc2ai-0.1.0 data/sc2ai/protocol/query.proto
sc2ai-0.0.8 data/sc2ai/protocol/query.proto
sc2ai-0.0.7 data/sc2ai/protocol/query.proto
sc2ai-0.0.5 data/sc2ai/protocol/query.proto
sc2ai-0.0.4 data/sc2ai/protocol/query.proto
sc2ai-0.0.3 data/sc2ai/protocol/query.proto
sc2ai-0.0.2 data/sc2ai/protocol/query.proto