tschoppi / starsystem-gen

Automated Generation of a GURPS 4e Star System as described in GURPS: Space
Other
39 stars 16 forks source link

Expose all Information in a consistent way #25

Open MyrionPhoenixmoon opened 9 years ago

MyrionPhoenixmoon commented 9 years ago

For all stellar objects, it would be useful to provide a simple way to query all their data. A complete Getter collection would be good, but it might be more useful to provide the information in a iterable form. This would certainly have been of use in the Web GUI, but it should be useful in any other GUI as well, at least.

MyrionPhoenixmoon commented 8 years ago

It would also allow for providing a RESTful API, returning the queried object to whoever queries the server in an easy-to-understand format like JSON.

This could lead to mobile clients, too...

MyrionPhoenixmoon commented 8 years ago

We should define all instance fields in a centralized fashion on each class, so that we can include it in docstrings and have a clear overview over the fields.

tschoppi commented 8 years ago

Possibly abolishing private members (discussed in #48) can lead to a more uniform way of exposing data.