Sha256: e5dd58372908554092cb761b7d97b5c305bf4075319778364e742f15a53f955d
Contents?: true
Size: 1.56 KB
Versions: 8
Compression:
Stored size: 1.56 KB
Contents
syntax = "proto2"; package Api; import "common.proto"; import "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
8 entries across 8 versions & 1 rubygems