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)

(file #8899)
    _______________________________________________________

Additional Item Attachment:

File name: newcomer_api.diff              Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1574>

_______________________________________________
  Meddelandet skickades via/av Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to