(thread: Thread, index: number)
| 48 | } |
| 49 | |
| 50 | public getValue(thread: Thread, index: number): any { |
| 51 | const refUserdata = thread.lua.lua_touserdata(thread.address, index) |
| 52 | const referencePointer = thread.lua.module.getValue(refUserdata, '*') |
| 53 | return thread.lua.getRef(referencePointer) |
| 54 | } |
| 55 | |
| 56 | public pushValue(thread: Thread, decoratedValue: Decoration<any, UserdataDecorationOptions>): boolean { |
| 57 | if (!decoratedValue.options.reference) { |