From: Peep P. <so...@us...> - 2004-03-15 18:48:20
|
Update of /cvsroot/agd/server/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv895 Added Files: adding_dfuns applies Log Message: Initial import. --- NEW FILE: adding_dfuns --- Edit the file dfdecl.in. Read the comments at the top and following them, add a declaration of it. Write a dfun hook in dfuns.c. It should be of the form void df_name_of_dfun(void); You use fp[i] for the arguments, (fp[0], fp[1], fp[2] etc). Before pushing the return value, you have to pop_stack() for each argument (fp[i]) used. See the existings dfuns in dfuns.c. --- NEW FILE: applies --- If a player connects, master::connect() will be called. It should return an object. In that object, logon() is called. Usually master::connect() clones the login object, and logon() in the login object does exec() on a player object. |