@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
109 lines (108 loc) • 3.96 kB
TypeScript
export declare const ClientEvents: {
readonly DEBUG: "debug";
readonly WARN: "warn";
readonly ERROR: "error";
readonly READY: "ready";
readonly CONNECTING: "connecting";
readonly RECONNECTING: "reconnecting";
readonly DISCONNECTING: "disconnecting";
readonly DISCONNECTED: "disconnected";
};
export declare const Errors: {
readonly NOT_CONNECTED: "Not connected, cannot process request.";
readonly ALREADY_CONNECTED: "Client is already connected, disconnect first.";
readonly INVALID_LOGIN: "Username or password is not string type.";
readonly INVALID_START: "Start value is not valid.";
readonly BAD_LOGIN: "Incorrect login details were provided.";
readonly LOGIN_FAILED: "Login failed, may be due to bad credentials, pending logout, or external factors.";
readonly UNKNOWN_PACKET_ID: "Unknown packet, needs to be defined within the packets utility file, and tested if nessecery: ";
readonly INACTIVE_CIRCUIT: "Cannot send packets over inactive circuit.";
readonly HANDSHAKE_ACTIVE_CIRCUIT: "Cannot send handshake to active circuit.";
readonly MISSING_BLOCK: "Missing packet block (%s), packet will not be sent.";
readonly INVALID_BLOCK_QUANTITY: "Quantity requirement of packet block not met or above 255, packet will not be sent.";
readonly MISSING_PARAMETER: "Missing packet parameter (%s), packet will not be sent.";
readonly INVALID_PARAMETER_TYPE: "Method parameter invalid.";
readonly UNEXPECTED_OBJECT_UPDATE: "Recieved object update for unknown region!";
readonly UNEXPECTED_OBJECT_UPDATE_LENGTH: "Unexpected object update length: %d";
};
export declare const Status: {
readonly READY: 0;
readonly CONNECTING: 1;
readonly RECONNECTING: 2;
readonly DISCONNECTING: 3;
readonly IDLE: 4;
readonly DISCONNECTED: 5;
};
export declare const Endpoints: {
readonly LOGIN_URL: "https://login.agni.lindenlab.com/cgi-bin/login.cgi";
};
export declare const ChatSources: {
readonly SYSTEM: 0;
readonly AGENT: 1;
readonly OBJECT: 2;
};
export declare const ChatTypes: {
readonly WHISPER: 0;
readonly NORMAL: 1;
readonly SHOUT: 2;
readonly SAY: 3;
/** @deprecated use `TYPING_START` instead */
readonly TYPING: 4;
/** @deprecated use `TYPING_STOP` instead */
readonly STOPPED: 5;
readonly TYPING_START: 4;
readonly TYPING_STOP: 5;
readonly DEBUG: 6;
/** @deprecated use `OWNER_SAY` instead */
readonly OWNERSAY: 8;
readonly OWNER_SAY: 8;
};
export declare const InstantMessageTypes: {
readonly NORMAL: 0;
readonly DO_NOT_DISTURB_AUTO_RESPONSE: 20;
readonly TYPING_START: 41;
readonly TYPING_STOP: 42;
};
export declare const AgentStates: {
readonly NONE: 0;
readonly TYPING: 4;
readonly EDITING: 16;
};
/**
* @see {@link https://wiki.secondlife.com/wiki/How_movement_works}
*/
export declare const ControlFlags: {
readonly NONE: 0;
readonly AT_POS: 1;
readonly AT_NEG: 2;
readonly LEFT_POS: 4;
readonly LEFT_NEG: 8;
readonly UP_POS: 16;
readonly UP_NEG: 32;
readonly PITCH_POS: 64;
readonly PITCH_NEG: 128;
readonly YAW_POS: 256;
readonly YAW_NEG: 512;
readonly FAST_AT: 1024;
readonly FAST_LEFT: 2048;
readonly FAST_UP: 4096;
readonly FLY: 8192;
readonly STOP: 16384;
readonly FINISH_ANIM: 32768;
readonly STAND_UP: 65536;
readonly SIT_ON_GROUND: 131072;
readonly MOUSELOOK: 262144;
readonly NUDGE_AT_POS: 524288;
readonly NUDGE_AT_NEG: 1048576;
readonly NUDGE_LEFT_POS: 2097152;
readonly NUDGE_LEFT_NEG: 4194304;
readonly NUDGE_UP_POS: 8388608;
readonly NUDGE_UP_NEG: 16777216;
readonly TURN_LEFT: 33554432;
readonly TURN_RIGHT: 67108864;
readonly AWAY: 134217728;
readonly LBUTTON_DOWN: 268435456;
readonly LBUTTON_UP: 536870912;
readonly ML_LBUTTON_DOWN: 1073741824;
readonly ML_LBUTTON_UP: 2147483648;
};