VP_EVENT_WORLD_LIST

From Virtual Paradise Wiki
Revision as of 22:01, 25 August 2013 by Roy Curtis (talk | contribs) (Created page with "{{sdk event page|world_list|This event is received: * For each world when the universe's world list is requested with {{sdk function|world_list}} * Whenever the client enters ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event set and handler snippet

vp_event_set(instance, VP_EVENT_WORLD_LIST, event_world_list);

void event_world_list(VPInstance instance) { }

This event is received:

  • For each world when the universe's world list is requested with vp_world_list()
  • Whenever the client enters a world
  • Whenever a world changes state

Attributes

Attribute Usage
VP_WORLD_NAME World's name
VP_WORLD_STATE World's current state
VP_WORLD_USERS World's current user count

Behavior

A world is considered to have changed state when:

  • It goes online or offline
  • A user enters or leaves it

Examples

This event has no usage examples; please add at least one to this page