-
Notifications
You must be signed in to change notification settings - Fork 6
Dev Branch Documentation# Expert API
GitHub Action edited this page Mar 18, 2021
·
5 revisions
RPC calls provided by the Expert API subsystem.
ExecuteCommandList
call parameters.
Field | Type | Label | Description |
---|---|---|---|
playerNumber | int32 | player number from 1-8 on which to execute the commands, must be an AI player | |
commands | google.protobuf.Any | repeated | list of commands to execute on behalf of that player |
ExecuteCommandList
call reply.
Field | Type | Label | Description |
---|---|---|---|
playerNumber | int32 | player number from 1-8 on which the commands were executed on | |
results | google.protobuf.Any | repeated | list of results for each command in the same order as the originally sent in the command list |
An optional structure that can be put in the CommandList message commands list. The server will evaluate the fact and compare it to the specified value using the operator given. The command to be conditionally executed can be anything, including a fact.
Field | Type | Label | Description |
---|---|---|---|
fact | google.protobuf.Any | ||
compareOp | string | ||
inConstValue | int32 | ||
inGoalValue | int32 | ||
inSnValue | int32 | ||
command | google.protobuf.Any |
Field | Type | Label | Description |
---|---|---|---|
fired | bool | ||
result | google.protobuf.Any |
Method Name | Request Type | Response Type | Description |
---|---|---|---|
ExecuteCommandList | CommandList | CommandResultList | Send a list of expert actions and facts (commands) to the AI Module. The list will be processed during the next AI tick for the specified player. If that does not occur in 5 seconds, an error code will be returned. |