User:Roy Curtis/sample/SDK event

From Virtual Paradise Wiki
Jump to navigation Jump to search
Event set and handler snippet

vp_event_set(instance, VP_EVENT_SDK EVENT, event_sdk event);

void event_sdk event(VPInstance instance) { }

Received when the server sends an SDK event of some kind.

Attributes

Attribute Usage
VP_INT_VALUE Associated int value
VP_FLOAT_VALUE Associated float value
VP_STRING_VALUE Associated string value
VP_DATA_VALUE Associated data value

Behavior

  • This is the behavior of this SDK event (e.g. when and why it is sent)

Caveats

  • This is a common pitfall, missing expected functionality or otherwise something to look out for when using this event

Examples

This is where a minimal example would go for using this event

See also

  • Related SDK events
  • Related SDK stuff