Player XP
#5
Usually for the simple getters and setters, if they don't use any special datatype, wrapping them in the // tolua_begin and //tolua_end comments is enough. Either add those to the beginning and end of your added functions, or move the functions down to GetThrowStartPos() et al, those are in an exported API block.
Then, you need to run the tolua processor. On windows, it simply means executing the $/source/AllToLua.cmd script; if it doesn't fail, it's all done for you. Note that the script updates Bindings.cpp and Bindings.h, those need to be committed along with your changes. As for Linux, Bearbin has reported that the tolua processor has some problems, dunno if he managed to get it running or not.
Reply
Thanks given by:


Messages In This Thread
Player XP - by marmot21 - 11-12-2013, 04:54 PM
RE: Player XP - by xoft - 11-12-2013, 05:09 PM
RE: Player XP - by xoft - 11-13-2013, 08:11 PM
RE: Player XP - by marmot21 - 11-14-2013, 04:57 AM
RE: Player XP - by xoft - 11-14-2013, 07:57 AM



Users browsing this thread: 2 Guest(s)