Dan Albert
c5efc908de
Ensure a unique ID for supply routes.
...
List indexes are not a reliable list key unless the list is static.
Indexes will be reused when games are loaded, which prevents the state
from updating reliably.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2167
2022-05-29 14:07:40 -07:00
Dan Albert
b7439cbd17
Add metadata to FastAPI endpoints for OpenAPI.
...
operation_ids give us better function names when generating the
typescript API from the openapi.json. BaseModel.Config.title does the
same for type names. Response models (or 204 status codes) need to be
explicit or the API will be declared as returning any.
2022-03-06 17:12:00 -08:00
Dan Albert
73fcfcec7b
Handle map reset when the game is loaded/unloaded.
...
https://github.com/dcs-liberation/dcs_liberation/issues/2039
Partial fix for
https://github.com/dcs-liberation/dcs_liberation/issues/2045 (now works
in the new map, old one not fixed yet).
2022-03-05 18:02:46 -08:00
Dan Albert
9a2c10a98f
Draw supply routes on the react map.
...
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-02 23:14:05 -08:00