MCPcopy Create free account
hub / github.com/MaxBittker/rs-sdk / pointerCheck

Method pointerCheck

server/engine/src/engine/script/ScriptState.ts:187–194  ·  view source on GitHub ↗

* Verifies all `pointers` are enabled. * * @param pointers The pointers to check for.

(...pointers: ScriptPointer[])

Source from the content-addressed store, hash-verified

185 get activePlayer() {
186 const player = this.intOperand === 0 ? this._activePlayer : this._activePlayer2;
187 if (player === null) {
188 throw new Error('Attempt to access null active_player');
189 }
190 return player;
191 }
192
193 // gets the secondary player from the perspective of the command (.command returns player1)
194 get activePlayer2() {
195 const player = this.intOperand === 0 ? this._activePlayer2 : this._activePlayer;
196 if (player === null) {
197 throw new Error('Attempt to access null active_player');

Callers 1

checkedHandlerFunction · 0.80

Calls 1

pointerPrintMethod · 0.80

Tested by

no test coverage detected