VP EVENT WORLD DISCONNECT: Difference between revisions
Jump to navigation
Jump to search
Roy Curtis (talk | contribs) Created page with "{{sdk event page|world_disconnect|Fired when the SDK is unexpectedly disconnected from the world server. |attributes= |behavior= * Will not fire if the client intentionally di..." |
Roy Curtis (talk | contribs) added disconnect attribute |
||
Line 1: | Line 1: | ||
{{sdk event page|world_disconnect|Fired when the SDK is unexpectedly disconnected from the world server. | {{sdk event page|world_disconnect|Fired when the SDK is unexpectedly disconnected from the world server. | ||
|attributes= | |attributes= | ||
{{sdk attribute row|int|DISCONNECT_ERROR_CODE|Operating system's disconnect error code}} | |||
|behavior= | |behavior= | ||
* Will not fire if the client intentionally disconnects using {{sdk function|leave}} or {{sdk function|destroy}} | * Will not fire if the client intentionally disconnects using {{sdk function|leave}} or {{sdk function|destroy}} |
Latest revision as of 19:53, 6 October 2013
Event set and handler snippet
vp_event_set(instance, VP_EVENT_WORLD_DISCONNECT, event_world_disconnect);
void event_world_disconnect(VPInstance instance) { }
Fired when the SDK is unexpectedly disconnected from the world server.
Attributes
Attribute | Usage | |
---|---|---|
VP_DISCONNECT_ERROR_CODE | Operating system's disconnect error code |
Behavior
- Will not fire if the client intentionally disconnects using
vp_leave()
orvp_destroy()
- Because the SDK maintains separate connections to the universe and world server, a
VP_EVENT_UNIVERSE_DISCONNECT
will not fire this event also
Examples
- This event has no usage examples; please add at least one to this page