Changeset View
Changeset View
Standalone View
Standalone View
source/rlinterface/proto/RLAPI.proto
- This file was added.
/* Copyright (C) 2019 Wildfire Games. | |||||
* This file is part of 0 A.D. | |||||
wraitii: 2020 ;) | |||||
* | |||||
* 0 A.D. is free software: you can redistribute it and/or modify | |||||
* it under the terms of the GNU General Public License as published by | |||||
* the Free Software Foundation, either version 2 of the License, or | |||||
* (at your option) any later version. | |||||
* | |||||
* 0 A.D. is distributed in the hope that it will be useful, | |||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
* GNU General Public License for more details. | |||||
* | |||||
* You should have received a copy of the GNU General Public License | |||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | |||||
*/ | |||||
syntax = "proto3"; | |||||
service RLAPI { | |||||
rpc Step(Actions) returns (Observation) {} | |||||
rpc Reset(ResetRequest) returns (Observation) {} | |||||
rpc GetTemplates(GetTemplateRequest) returns (Templates) {} | |||||
} | |||||
message GetTemplateRequest { | |||||
repeated string names = 1; | |||||
} | |||||
message Templates { | |||||
repeated Template templates = 1; | |||||
} | |||||
message Template { | |||||
string name = 1; | |||||
string content = 2; | |||||
} | |||||
message Actions { | |||||
repeated Action actions = 1; | |||||
} | |||||
message Action { | |||||
int32 playerID = 1; | |||||
string content = 2; | |||||
} | |||||
Not Done Inline ActionsIt seems better to keep the Command name from 0 A.D., no? (likewise in Python below) wraitii: It seems better to keep the `Command` name from 0 A.D., no?
(likewise in Python below) | |||||
message Observation { | |||||
string content = 1; | |||||
} | |||||
message ResetRequest { | |||||
ScenarioConfig scenario = 1; | |||||
} | |||||
message AIPlayer { | |||||
int32 id = 1; | |||||
string type = 2; | |||||
uint32 difficulty = 3; | |||||
} | |||||
message ScenarioConfig { | |||||
bool saveReplay = 1; | |||||
int32 playerID = 2; | |||||
string content = 3; | |||||
} | |||||
Not Done Inline ActionsRemove dead code. Stan: Remove dead code. |
Wildfire Games · Phabricator
2020 ;)