(start = 0)
| 170 | } |
| 171 | |
| 172 | public getStackValues(start = 0): MultiReturn { |
| 173 | const returns = this.getTop() - start |
| 174 | const returnValues = new MultiReturn(returns) |
| 175 | |
| 176 | for (let i = 0; i < returns; i++) { |
| 177 | returnValues[i] = this.getValue(start + i + 1) |
| 178 | } |
| 179 | |
| 180 | return returnValues |
| 181 | } |
| 182 | |
| 183 | public stateToThread(L: LuaState): Thread { |
| 184 | return L === this.parent?.address ? this.parent : new Thread(this.lua, this.typeExtensions, L, this.parent || this) |