Sha256: fce40ec3c343ae72006d1bca808a1dfb5b1dd952aa17bd7f21c04f21b50e83e4

Contents?: true

Size: 1.18 KB

Versions: 15

Compression:

Stored size: 1.18 KB

Contents

syntax = "proto2";

package Api;

message AvailableAbility {
  optional int32 ability_id = 1;
  optional bool requires_point = 2;
}

message ImageData {
  optional int32 bits_per_pixel = 1;    // Number of bits per pixel; 8 bits for a byte etc.
  optional Size2DI size = 2;            // Dimension in pixels.
  optional bytes data = 3;              // Binary data; the size of this buffer in bytes is width * height * bits_per_pixel / 8.
}

// Point on the screen/minimap (e.g., 0..64).
// Note: bottom left of the screen is 0, 0.
message PointI {
  optional int32 x = 1;
  optional int32 y = 2;
}

// Screen space rectangular area.
message RectangleI {
  optional PointI p0 = 1;
  optional PointI p1 = 2;
}

// Point on the game board, 0..255.
// Note: bottom left of the screen is 0, 0.
message Point2D {
  optional float x = 1;
  optional float y = 2;
}

// Point on the game board, 0..255.
// Note: bottom left of the screen is 0, 0.
message Point {
  optional float x = 1;
  optional float y = 2;
  optional float z = 3;
}

// Screen dimensions.
message Size2DI {
  optional int32 x = 1;
  optional int32 y = 2;
}

enum Race {
  NoRace = 0;
  Terran = 1;
  Zerg = 2;
  Protoss = 3;
  Random = 4;
}


Version data entries

15 entries across 8 versions & 1 rubygems

Version Path
sc2ai-0.2.0 lib/templates/new/api/common.proto
sc2ai-0.1.0 lib/templates/new/api/common.proto
sc2ai-0.1.0 data/sc2ai/protocol/common.proto
sc2ai-0.0.8 lib/templates/new/api/common.proto
sc2ai-0.0.8 data/sc2ai/protocol/common.proto
sc2ai-0.0.7 lib/templates/new/api/common.proto
sc2ai-0.0.7 data/sc2ai/protocol/common.proto
sc2ai-0.0.5 lib/templates/new/api/common.proto
sc2ai-0.0.5 data/sc2ai/protocol/common.proto
sc2ai-0.0.4 lib/templates/new/api/common.proto
sc2ai-0.0.4 data/sc2ai/protocol/common.proto
sc2ai-0.0.3 lib/templates/new/api/common.proto
sc2ai-0.0.3 data/sc2ai/protocol/common.proto
sc2ai-0.0.2 data/sc2ai/protocol/common.proto
sc2ai-0.0.2 lib/templates/new/api/common.proto