Follow-up Comment #7, patch #1574 (project freeciv):
Here is how to add a function to the API. It's called 'create_player' in the
API (rhymes well with create_unit, create_base, etc).
All is needs is that the wrapper function api_actions_create_player in
server/scripting/api_actions.h can find & call a function. In this diff, it
needs a function called 'create_newcomer_player' from plrhand.h (?) that will
return the player just created if successful, else return NULL. (The API's
Player is the same as struct player)
Additional Item Attachment:
File name: newcomer_api.diff Size:1 KB
Reply to this item at:
Meddelandet skickades via/av Gna!
Freeciv-dev mailing list