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

Method pointerPrint

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

* Pretty prints all enables flags using the names from `ScriptPointer`. * * @param flags The flags to print.

(flags: number)

Source from the content-addressed store, hash-verified

199 * @param flags The flags to print.
200 */
201 private static pointerPrint(flags: number): string {
202 let text = '';
203 for (let i = 0; i < ScriptPointer._LAST; i++) {
204 if ((flags & (1 << i)) != 0) {
205 text += `${ScriptPointerNameMap.get(i)}, `;
206 }
207 }
208 return text.substring(0, text.lastIndexOf(','));
209 }
210
211 /**
212 * Gets the active player. Automatically checks the operand to determine primary and secondary.

Callers 1

pointerCheckMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected