elizarovalex / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Patch: Cannot override protected methods #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The fix is to grab _all_ methods, not just the public ones, and only to 
override methods which are explicitly in the Lua table.

See: 

https://github.com/stevedonovan/MonoLuaInterface/blob/master/src/GenerateEventAs
sembly.cs#L364

Note that luaTable is an extra argument to GenerateClass.

Also, please note on line 395 that there was a missing 'load this' opcode. This 
mostly worked, until Mono started to get fussy with me!

steve d.

Original issue reported on code.google.com by steve.j....@gmail.com on 16 Jul 2012 at 4:40