Talk:LuaBridge:Methods

From ArcEmu-Wiki
Jump to: navigation, search

"Wiki Warrior" notices

This page is still being documented. Feel free to add to it, but if you have edited the luabridge source files, please do not include your edits here unless they have been added to the SVN. This is especially prominent if you have exposed more functions to the Lua Engine - ie,
.method("knockback",&Player::knockback)
Or it will become a source of confusion for users who have not got these edits.

Also note that everything needs to be documented like the old Unit Methods page. That is, we need to have things structured like this:

[[LuaBridge_Class_MethodName|:MethodName(arguments)]] - Description.<br />

It'll be best if you can put the arguments of the method in the link, too. I couldn't do that because I literally ran through all of the CPP files using Regex methods:

Replace the following with ""
(			)
\.property_rw(.*)
\.property_ro(.*)
\/\/(.*)
\r\n\r
" " (yes, we need to remove all whitespace.)

Run these and replace with [[LuaBridge_Class_\1|:\1(\4)]]<br />
\.static_method\(\"(.*)\"\,\((.*)\((.*)\)\((.*)\)\)(.*)
\.method\(\"(.*)\"\,\((.*)\((.*)\)\((.*)\)\)(.*)

Then run these and replace with [[LuaBridge_Class_\1|:\1()]]<br />
bind\((.*)\)
BIND\((.*)\)
BINDE\(\"(.*)\"\,(.*)\)
\.static_method\(\"(.*)\"\,(.*)\)
\.method\(\"(.*)\"\,(.*)\)

Yours,
--Sympathy 04:59, 4 March 2011 (MST)

Personal tools