Tried to add a ScriptDialog event...

It's currently not working, not sure what I missed.
This commit is contained in:
hintswen
2018-10-07 22:26:39 +11:00
parent 6e6cedae70
commit c7be7a380c
12 changed files with 48 additions and 6 deletions

View File

@@ -7,7 +7,8 @@ import {
InstantMessageEvent,
InventoryOfferedEvent,
LureEvent,
TeleportEvent
TeleportEvent,
ScriptDialogEvent
} from '..';
@@ -26,4 +27,5 @@ export class ClientEvents
onGroupChatSessionJoin: Subject<GroupChatSessionJoinEvent> = new Subject<GroupChatSessionJoinEvent>();
onGroupChatAgentListUpdate: Subject<GroupChatSessionAgentListEvent> = new Subject<GroupChatSessionAgentListEvent>();
onFriendResponse: Subject<FriendResponseEvent> = new Subject<FriendResponseEvent>();
onScriptDialog: Subject<ScriptDialogEvent> = new Subject<ScriptDialogEvent>();
}

View File

@@ -0,0 +1,14 @@
import {UUID, Vector3} from '..';
export class ScriptDialogEvent
{
ObjectID: UUID;
FirstName: string;
LastName: string;
ObjectName: Vector3;
Message: string;
ChatChannel: number;
ImageID: UUID;
Buttons: string;
OwnerID: UUID;
}

View File

@@ -41,6 +41,7 @@ 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';
export {
Bot,
@@ -85,5 +86,6 @@ export {
MapInfoReplyEvent,
ParcelInfoReplyEvent,
RegionInfoReplyEvent,
TeleportEvent
TeleportEvent,
ScriptDialogEvent
};