Files
node-metaverse/dist/classes/Agent.d.ts
2018-10-10 10:12:20 +01:00

79 lines
2.1 KiB
TypeScript

/// <reference types="node" />
import { UUID } from './UUID';
import { Vector3 } from './Vector3';
import { Inventory } from './Inventory';
import Long = require('long');
import { Wearable } from './Wearable';
import { Region } from './Region';
import { Packet } from './Packet';
import { ClientEvents } from './ClientEvents';
import Timer = NodeJS.Timer;
import { ControlFlags } from '..';
export declare class Agent {
firstName: string;
lastName: string;
localID: number;
agentID: UUID;
accessMax: string;
regionAccess: string;
agentAccess: string;
currentRegion: Region;
chatSessions: {
[key: string]: {
[key: string]: {
hasVoice: boolean;
isModerator: boolean;
};
};
};
controlFlags: ControlFlags;
openID: {
'token'?: string;
'url'?: string;
};
AOTransition: boolean;
buddyList: {
'buddyRightsGiven': boolean;
'buddyID': UUID;
'buddyRightsHas': boolean;
}[];
uiFlags: {
'allowFirstLife'?: boolean;
};
lookAt: Vector3;
maxGroups: number;
agentFlags: number;
startLocation: string;
cofVersion: number;
home: {
'regionHandle'?: Long;
'position'?: Vector3;
'lookAt'?: Vector3;
};
snapshotConfigURL: string;
inventory: Inventory;
gestures: {
assetID: UUID;
itemID: UUID;
}[];
agentAppearanceService: string;
wearables?: {
attachments: Wearable[];
serialNumber: number;
};
agentUpdateTimer: Timer | null;
estateManager: boolean;
private clientEvents;
constructor(clientEvents: ClientEvents);
setIsEstateManager(is: boolean): void;
getSessionAgentCount(uuid: UUID): number;
addChatSession(uuid: UUID): void;
hasChatSession(uuid: UUID): boolean;
setCurrentRegion(region: Region): void;
circuitActive(): void;
sendAgentUpdate(): void;
shutdown(): void;
onAnimState(packet: Packet): void;
setInitialAppearance(): void;
}