shmocz / ra2yrcpp

Protobuf API and C++/Python library to interact with Red Alert 2: Yuri's Revenge through WebSockets and HTTP
GNU General Public License v3.0
13 stars 2 forks source link

Higher level protobuf API #4

Open shmocz opened 1 year ago

shmocz commented 1 year ago

Most game control related commands in commands_yr.proto are low level, and map almost directly to a call of specific underlying game function. While this simplifies the library implementation, there are several problems:

Solution is to add high-level API, that provide human readable commands for essential game controls. The low level API should be left intact for development purposes, but could be disabled by default as a safety precaution.

Non-exhaustive list of high level API features:

Production

Unit control

Building-related controls

Superweapons and specials

Other