Files
node-metaverse/lib/index.ts

203 lines
7.3 KiB
TypeScript
Raw Normal View History

import {Bot} from './Bot';
2017-11-24 01:00:56 +00:00
import {LoginParameters} from './classes/LoginParameters';
import {ClientEvents} from './classes/ClientEvents';
import {BVH} from './classes/BVH';
import {AssetType} from './enums/AssetType';
import {HTTPAssets} from './enums/HTTPAssets';
import {InstantMessageEventFlags} from './enums/InstantMessageEventFlags';
import {InstantMessageEvent} from './events/InstantMessageEvent';
import {ChatSourceType} from './enums/ChatSourceType';
import {BotOptionFlags} from './enums/BotOptionFlags';
import {UUID} from './classes/UUID';
import {Vector3} from './classes/Vector3';
2017-12-19 17:58:25 +00:00
import {ChatEvent} from './events/ChatEvent';
import {GroupInviteEvent} from './events/GroupInviteEvent';
import {FriendRequestEvent} from './events/FriendRequestEvent';
2018-10-06 17:16:51 +01:00
import {FriendResponseEvent} from './events/FriendResponseEvent';
2017-12-19 17:58:25 +00:00
import {LureEvent} from './events/LureEvent';
import {TeleportEvent} from './events/TeleportEvent';
import {DisconnectEvent} from './events/DisconnectEvent';
import {GroupChatEvent} from './events/GroupChatEvent';
import {GroupChatSessionJoinEvent} from './events/GroupChatSessionJoinEvent';
import {GroupChatSessionAgentListEvent} from './events/GroupChatSessionAgentListEvent';
import {GroupNoticeEvent} from './events/GroupNoticeEvent';
2018-10-06 17:16:51 +01:00
import {RegionInfoReplyEvent} from './events/RegionInfoReplyEvent';
import {MapInfoReplyEvent} from './events/MapInfoReplyEvent';
import {MapInfoRangeReplyEvent} from './events/MapInfoRangeReplyEvent';
import {InventoryOfferedEvent} from './events/InventoryOfferedEvent';
import {AgentFlags} from './enums/AgentFlags';
import {ControlFlags} from './enums/ControlFlags';
import {InventoryItemFlags} from './enums/InventoryItemFlags';
import {LoginFlags} from './enums/LoginFlags';
import {MessageFlags} from './enums/MessageFlags';
import {PacketFlags} from './enums/PacketFlags';
import {RegionProtocolFlags} from './enums/RegionProtocolFlags';
import {SoundFlags} from './enums/SoundFlags';
import {TeleportFlags} from './enums/TeleportFlags';
import {CompressedFlags} from './enums/CompressedFlags';
import {DecodeFlags} from './enums/DecodeFlags';
import {ParcelInfoFlags} from './enums/ParcelInfoFlags';
import {ParcelInfoReplyEvent} from './events/ParcelInfoReplyEvent';
import {ScriptDialogEvent} from './events/ScriptDialogEvent';
import {EventQueueStateChangeEvent} from './events/EventQueueStateChangeEvent';
import {RegionFlags} from './enums/RegionFlags';
import {Friend} from './classes/public/Friend';
import {FriendOnlineEvent} from './events/FriendOnlineEvent';
import {Avatar} from './classes/public/Avatar';
import {RightsFlags} from './enums/RightsFlags';
import {FriendRightsEvent} from './events/FriendRightsEvent';
import {FriendRemovedEvent} from './events/FriendRemovedEvent';
import {GlobalPosition} from './classes/public/interfaces/GlobalPosition';
import {MapLocation} from './classes/public/interfaces/MapLocation';
import {Vector2} from './classes/Vector2';
import {ParticleDataFlags} from './enums/ParticleDataFlags';
import {TextureFlags} from './enums/TextureFlags';
import {SourcePattern} from './enums/SourcePattern';
import {BlendFunc} from './enums/BlendFunc';
import {PCode} from './enums/PCode';
- Add "GET" method to Caps - New events: ObjectPhysicsDataEvent, ParcelPropertiesEvent, NewObjectEvent, ObjectUpdateEvent, ObjectKilledEvent - Added getXML function to Color4, Vector2, Vector3, Vector4, GameObject, Region, Quaternion, UUID for opensim-compatible XML export - Added TextureAnim and ParticleSystem decoding to the "full" ObjectStore - Object store will automatically request missing "parent" prims - "setPersist" - When persist is TRUE, the ObjectStore will not forget about "killed" prims - useful for region scanning - Support for Flexible params, Light params, LightImage params, Mesh data, Sculpt maps - Fixed object scale being incorrectly calculated - Add terrain decoding (this was a ballache) - Add parcel map decoding - Add support for region windlight settings (region.environment) - Add support for materials (normal / specular maps) - Add getBuffer, getLong and bitwiseOr to UUID - Added a circular-reference-safe JSONStringify to Utils - Add XferFile capability to Circuit PUBLIC API: AssetCommands: - Rework "downloadAsset" to detect failures - NEW: downloadInventoryAsset() - uses TransferRequest for prim inventory items - NEW: getMaterials() - resolves material UUIDs RegionCommands: - NEW: getTerrainTextures() - NEW: exportSettings() - OpenSim XML export of region settings - NEW: async getTerrain() - Get binary terrain heightmap, 256x256 float32 - resolveObjects() - now fetches task inventory contents too. - resolveObjects() - fix calculation of land impact - NEW: getObjectByLocalID(localID: number, timeout: number) - NEW: getObjectByUUID(uuid: UUID, timeout: number) - NEW: getParcels(); - NEW: pruneObjects - removes missing GameObjects from a list - NEW: setPersist - prevent objectstore from forgetting about killed gameobjects
2018-10-31 11:28:24 +00:00
import {Utils} from './classes/Utils';
import {ObjectPhysicsDataEvent} from './events/ObjectPhysicsDataEvent';
import {ParcelPropertiesEvent} from './events/ParcelPropertiesEvent';
import {PrimFlags} from './enums/PrimFlags';
import {TextureEntry} from './classes/TextureEntry';
import {RegionEnvironment} from './classes/public/RegionEnvironment';
import {Parcel} from './classes/public/Parcel';
import {Material} from './classes/public/Material';
import {GameObject} from './classes/public/GameObject';
import {LightImageData} from './classes/public/LightImageData';
import {LightData} from './classes/public/LightData';
import {FlexibleData} from './classes/public/FlexibleData';
import {MeshData} from './classes/public/MeshData';
import {SculptData} from './classes/public/SculptData';
import {SkyPreset} from './classes/public/interfaces/SkyPreset';
import {WaterPreset} from './classes/public/interfaces/WaterPreset';
import {NewObjectEvent} from './events/NewObjectEvent';
import {ObjectKilledEvent} from './events/ObjectKilledEvent';
import {ObjectUpdatedEvent} from './events/ObjectUpdatedEvent';
import {GroupProfileReplyEvent} from './events/GroupProfileReplyEvent';
import {AvatarPropertiesReplyEvent} from './events/AvatarPropertiesReplyEvent';
- Add "GET" method to Caps - New events: ObjectPhysicsDataEvent, ParcelPropertiesEvent, NewObjectEvent, ObjectUpdateEvent, ObjectKilledEvent - Added getXML function to Color4, Vector2, Vector3, Vector4, GameObject, Region, Quaternion, UUID for opensim-compatible XML export - Added TextureAnim and ParticleSystem decoding to the "full" ObjectStore - Object store will automatically request missing "parent" prims - "setPersist" - When persist is TRUE, the ObjectStore will not forget about "killed" prims - useful for region scanning - Support for Flexible params, Light params, LightImage params, Mesh data, Sculpt maps - Fixed object scale being incorrectly calculated - Add terrain decoding (this was a ballache) - Add parcel map decoding - Add support for region windlight settings (region.environment) - Add support for materials (normal / specular maps) - Add getBuffer, getLong and bitwiseOr to UUID - Added a circular-reference-safe JSONStringify to Utils - Add XferFile capability to Circuit PUBLIC API: AssetCommands: - Rework "downloadAsset" to detect failures - NEW: downloadInventoryAsset() - uses TransferRequest for prim inventory items - NEW: getMaterials() - resolves material UUIDs RegionCommands: - NEW: getTerrainTextures() - NEW: exportSettings() - OpenSim XML export of region settings - NEW: async getTerrain() - Get binary terrain heightmap, 256x256 float32 - resolveObjects() - now fetches task inventory contents too. - resolveObjects() - fix calculation of land impact - NEW: getObjectByLocalID(localID: number, timeout: number) - NEW: getObjectByUUID(uuid: UUID, timeout: number) - NEW: getParcels(); - NEW: pruneObjects - removes missing GameObjects from a list - NEW: setPersist - prevent objectstore from forgetting about killed gameobjects
2018-10-31 11:28:24 +00:00
import {Bumpiness} from './enums/Bumpiness';
import {HoleType} from './enums/HoleType';
import {LayerType} from './enums/LayerType';
import {MappingType} from './enums/MappingType';
import {PhysicsShapeType} from './enums/PhysicsShapeType';
import {ParcelFlags} from './enums/ParcelFlags';
import {ProfileShape} from './enums/ProfileShape';
import {SculptType} from './enums/SculptType';
import {Shininess} from './enums/Shininess';
import {SimAccessFlags} from './enums/SimAccessFlags';
import {TextureAnimFlags} from './enums/TextureAnimFlags';
import {TransferStatus} from './enums/TransferStatus';
import {LLWearable} from './classes/LLWearable';
import {ParticleSystem} from './classes/ParticleSystem';
import {ExtraParams} from './classes/public/ExtraParams';
import {LLMesh} from './classes/public/LLMesh';
import {FolderType} from './enums/FolderType';
export {
Bot,
LoginParameters,
AssetType,
HTTPAssets,
ClientEvents,
BVH,
ChatSourceType,
UUID,
2017-12-19 17:58:25 +00:00
Vector3,
Vector2,
- Add "GET" method to Caps - New events: ObjectPhysicsDataEvent, ParcelPropertiesEvent, NewObjectEvent, ObjectUpdateEvent, ObjectKilledEvent - Added getXML function to Color4, Vector2, Vector3, Vector4, GameObject, Region, Quaternion, UUID for opensim-compatible XML export - Added TextureAnim and ParticleSystem decoding to the "full" ObjectStore - Object store will automatically request missing "parent" prims - "setPersist" - When persist is TRUE, the ObjectStore will not forget about "killed" prims - useful for region scanning - Support for Flexible params, Light params, LightImage params, Mesh data, Sculpt maps - Fixed object scale being incorrectly calculated - Add terrain decoding (this was a ballache) - Add parcel map decoding - Add support for region windlight settings (region.environment) - Add support for materials (normal / specular maps) - Add getBuffer, getLong and bitwiseOr to UUID - Added a circular-reference-safe JSONStringify to Utils - Add XferFile capability to Circuit PUBLIC API: AssetCommands: - Rework "downloadAsset" to detect failures - NEW: downloadInventoryAsset() - uses TransferRequest for prim inventory items - NEW: getMaterials() - resolves material UUIDs RegionCommands: - NEW: getTerrainTextures() - NEW: exportSettings() - OpenSim XML export of region settings - NEW: async getTerrain() - Get binary terrain heightmap, 256x256 float32 - resolveObjects() - now fetches task inventory contents too. - resolveObjects() - fix calculation of land impact - NEW: getObjectByLocalID(localID: number, timeout: number) - NEW: getObjectByUUID(uuid: UUID, timeout: number) - NEW: getParcels(); - NEW: pruneObjects - removes missing GameObjects from a list - NEW: setPersist - prevent objectstore from forgetting about killed gameobjects
2018-10-31 11:28:24 +00:00
Utils,
TextureEntry,
LLWearable,
ParticleSystem,
ExtraParams,
FolderType,
2018-10-06 17:16:51 +01:00
// Flags
AgentFlags,
BotOptionFlags,
2018-10-06 17:16:51 +01:00
CompressedFlags,
ControlFlags,
DecodeFlags,
InstantMessageEventFlags,
InventoryItemFlags,
LoginFlags,
MessageFlags,
ParcelInfoFlags,
2018-10-06 17:16:51 +01:00
PacketFlags,
RegionProtocolFlags,
SoundFlags,
TeleportFlags,
RegionFlags,
RightsFlags,
ParticleDataFlags,
TextureFlags,
SourcePattern,
BlendFunc,
PCode,
- Add "GET" method to Caps - New events: ObjectPhysicsDataEvent, ParcelPropertiesEvent, NewObjectEvent, ObjectUpdateEvent, ObjectKilledEvent - Added getXML function to Color4, Vector2, Vector3, Vector4, GameObject, Region, Quaternion, UUID for opensim-compatible XML export - Added TextureAnim and ParticleSystem decoding to the "full" ObjectStore - Object store will automatically request missing "parent" prims - "setPersist" - When persist is TRUE, the ObjectStore will not forget about "killed" prims - useful for region scanning - Support for Flexible params, Light params, LightImage params, Mesh data, Sculpt maps - Fixed object scale being incorrectly calculated - Add terrain decoding (this was a ballache) - Add parcel map decoding - Add support for region windlight settings (region.environment) - Add support for materials (normal / specular maps) - Add getBuffer, getLong and bitwiseOr to UUID - Added a circular-reference-safe JSONStringify to Utils - Add XferFile capability to Circuit PUBLIC API: AssetCommands: - Rework "downloadAsset" to detect failures - NEW: downloadInventoryAsset() - uses TransferRequest for prim inventory items - NEW: getMaterials() - resolves material UUIDs RegionCommands: - NEW: getTerrainTextures() - NEW: exportSettings() - OpenSim XML export of region settings - NEW: async getTerrain() - Get binary terrain heightmap, 256x256 float32 - resolveObjects() - now fetches task inventory contents too. - resolveObjects() - fix calculation of land impact - NEW: getObjectByLocalID(localID: number, timeout: number) - NEW: getObjectByUUID(uuid: UUID, timeout: number) - NEW: getParcels(); - NEW: pruneObjects - removes missing GameObjects from a list - NEW: setPersist - prevent objectstore from forgetting about killed gameobjects
2018-10-31 11:28:24 +00:00
PrimFlags,
Bumpiness,
HoleType,
LayerType,
MappingType,
ParcelFlags,
PhysicsShapeType,
ProfileShape,
SculptType,
Shininess,
SimAccessFlags,
TextureAnimFlags,
TransferStatus,
2018-10-06 17:16:51 +01:00
// Events
2017-12-19 17:58:25 +00:00
ChatEvent,
DisconnectEvent,
2018-10-06 17:16:51 +01:00
FriendRequestEvent,
FriendResponseEvent,
2017-12-19 17:58:25 +00:00
GroupChatEvent,
2018-10-06 17:16:51 +01:00
GroupChatSessionAgentListEvent,
2017-12-19 17:58:25 +00:00
GroupChatSessionJoinEvent,
GroupNoticeEvent,
2018-10-06 17:16:51 +01:00
GroupInviteEvent,
InstantMessageEvent,
InventoryOfferedEvent,
LureEvent,
MapInfoRangeReplyEvent,
MapInfoReplyEvent,
ParcelInfoReplyEvent,
2018-10-06 17:16:51 +01:00
RegionInfoReplyEvent,
TeleportEvent,
ScriptDialogEvent,
EventQueueStateChangeEvent,
FriendOnlineEvent,
FriendRightsEvent,
FriendRemovedEvent,
- Add "GET" method to Caps - New events: ObjectPhysicsDataEvent, ParcelPropertiesEvent, NewObjectEvent, ObjectUpdateEvent, ObjectKilledEvent - Added getXML function to Color4, Vector2, Vector3, Vector4, GameObject, Region, Quaternion, UUID for opensim-compatible XML export - Added TextureAnim and ParticleSystem decoding to the "full" ObjectStore - Object store will automatically request missing "parent" prims - "setPersist" - When persist is TRUE, the ObjectStore will not forget about "killed" prims - useful for region scanning - Support for Flexible params, Light params, LightImage params, Mesh data, Sculpt maps - Fixed object scale being incorrectly calculated - Add terrain decoding (this was a ballache) - Add parcel map decoding - Add support for region windlight settings (region.environment) - Add support for materials (normal / specular maps) - Add getBuffer, getLong and bitwiseOr to UUID - Added a circular-reference-safe JSONStringify to Utils - Add XferFile capability to Circuit PUBLIC API: AssetCommands: - Rework "downloadAsset" to detect failures - NEW: downloadInventoryAsset() - uses TransferRequest for prim inventory items - NEW: getMaterials() - resolves material UUIDs RegionCommands: - NEW: getTerrainTextures() - NEW: exportSettings() - OpenSim XML export of region settings - NEW: async getTerrain() - Get binary terrain heightmap, 256x256 float32 - resolveObjects() - now fetches task inventory contents too. - resolveObjects() - fix calculation of land impact - NEW: getObjectByLocalID(localID: number, timeout: number) - NEW: getObjectByUUID(uuid: UUID, timeout: number) - NEW: getParcels(); - NEW: pruneObjects - removes missing GameObjects from a list - NEW: setPersist - prevent objectstore from forgetting about killed gameobjects
2018-10-31 11:28:24 +00:00
ObjectPhysicsDataEvent,
ParcelPropertiesEvent,
NewObjectEvent,
ObjectKilledEvent,
ObjectUpdatedEvent,
GroupProfileReplyEvent,
AvatarPropertiesReplyEvent,
// Public Classes
Avatar,
Friend,
- Add "GET" method to Caps - New events: ObjectPhysicsDataEvent, ParcelPropertiesEvent, NewObjectEvent, ObjectUpdateEvent, ObjectKilledEvent - Added getXML function to Color4, Vector2, Vector3, Vector4, GameObject, Region, Quaternion, UUID for opensim-compatible XML export - Added TextureAnim and ParticleSystem decoding to the "full" ObjectStore - Object store will automatically request missing "parent" prims - "setPersist" - When persist is TRUE, the ObjectStore will not forget about "killed" prims - useful for region scanning - Support for Flexible params, Light params, LightImage params, Mesh data, Sculpt maps - Fixed object scale being incorrectly calculated - Add terrain decoding (this was a ballache) - Add parcel map decoding - Add support for region windlight settings (region.environment) - Add support for materials (normal / specular maps) - Add getBuffer, getLong and bitwiseOr to UUID - Added a circular-reference-safe JSONStringify to Utils - Add XferFile capability to Circuit PUBLIC API: AssetCommands: - Rework "downloadAsset" to detect failures - NEW: downloadInventoryAsset() - uses TransferRequest for prim inventory items - NEW: getMaterials() - resolves material UUIDs RegionCommands: - NEW: getTerrainTextures() - NEW: exportSettings() - OpenSim XML export of region settings - NEW: async getTerrain() - Get binary terrain heightmap, 256x256 float32 - resolveObjects() - now fetches task inventory contents too. - resolveObjects() - fix calculation of land impact - NEW: getObjectByLocalID(localID: number, timeout: number) - NEW: getObjectByUUID(uuid: UUID, timeout: number) - NEW: getParcels(); - NEW: pruneObjects - removes missing GameObjects from a list - NEW: setPersist - prevent objectstore from forgetting about killed gameobjects
2018-10-31 11:28:24 +00:00
FlexibleData,
LightData,
LightImageData,
GameObject,
Material,
Parcel,
RegionEnvironment,
SculptData,
MeshData,
LLMesh,
// Public Interfaces
GlobalPosition,
- Add "GET" method to Caps - New events: ObjectPhysicsDataEvent, ParcelPropertiesEvent, NewObjectEvent, ObjectUpdateEvent, ObjectKilledEvent - Added getXML function to Color4, Vector2, Vector3, Vector4, GameObject, Region, Quaternion, UUID for opensim-compatible XML export - Added TextureAnim and ParticleSystem decoding to the "full" ObjectStore - Object store will automatically request missing "parent" prims - "setPersist" - When persist is TRUE, the ObjectStore will not forget about "killed" prims - useful for region scanning - Support for Flexible params, Light params, LightImage params, Mesh data, Sculpt maps - Fixed object scale being incorrectly calculated - Add terrain decoding (this was a ballache) - Add parcel map decoding - Add support for region windlight settings (region.environment) - Add support for materials (normal / specular maps) - Add getBuffer, getLong and bitwiseOr to UUID - Added a circular-reference-safe JSONStringify to Utils - Add XferFile capability to Circuit PUBLIC API: AssetCommands: - Rework "downloadAsset" to detect failures - NEW: downloadInventoryAsset() - uses TransferRequest for prim inventory items - NEW: getMaterials() - resolves material UUIDs RegionCommands: - NEW: getTerrainTextures() - NEW: exportSettings() - OpenSim XML export of region settings - NEW: async getTerrain() - Get binary terrain heightmap, 256x256 float32 - resolveObjects() - now fetches task inventory contents too. - resolveObjects() - fix calculation of land impact - NEW: getObjectByLocalID(localID: number, timeout: number) - NEW: getObjectByUUID(uuid: UUID, timeout: number) - NEW: getParcels(); - NEW: pruneObjects - removes missing GameObjects from a list - NEW: setPersist - prevent objectstore from forgetting about killed gameobjects
2018-10-31 11:28:24 +00:00
MapLocation,
SkyPreset,
WaterPreset
};