<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.virtualparadise.org/index.php?action=history&amp;feed=atom&amp;title=Vp_world_list</id>
	<title>Vp world list - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.virtualparadise.org/index.php?action=history&amp;feed=atom&amp;title=Vp_world_list"/>
	<link rel="alternate" type="text/html" href="https://wiki.virtualparadise.org/index.php?title=Vp_world_list&amp;action=history"/>
	<updated>2026-05-04T21:22:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.virtualparadise.org/index.php?title=Vp_world_list&amp;diff=4249&amp;oldid=prev</id>
		<title>Sleepy E: Basic layout</title>
		<link rel="alternate" type="text/html" href="https://wiki.virtualparadise.org/index.php?title=Vp_world_list&amp;diff=4249&amp;oldid=prev"/>
		<updated>2016-12-13T10:48:48Z</updated>

		<summary type="html">&lt;p&gt;Basic layout&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{sdk method page|world_list|Request the world list.&lt;br /&gt;
|paramex=time&lt;br /&gt;
|parameters=&lt;br /&gt;
  {{sdk parameter row|int |time |Time since your last update. This is not used yet, the whole list will be requested.}}&lt;br /&gt;
|returncodes=&lt;br /&gt;
|behavior=&lt;br /&gt;
The worlds will be listed in the {{sdk event|WORLD_LIST}} event. See {{sdk method|event_set}}.&lt;br /&gt;
|caveats=&lt;br /&gt;
|examples=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
void handle_world_list(VPInstance sdk)&lt;br /&gt;
{&lt;br /&gt;
  const char *name;&lt;br /&gt;
  int users, state;&lt;br /&gt;
&lt;br /&gt;
  name = vp_string(sdk, VP_WORLD_NAME);&lt;br /&gt;
  users = vp_int(sdk, VP_WORLD_USERS);&lt;br /&gt;
  state = vp_int(sdk, VP_WORLD_STATE);&lt;br /&gt;
&lt;br /&gt;
  printf(&amp;quot;World \&amp;quot;%s\&amp;quot; has %d user%s and state %d\n&amp;quot;, name, users, users != 1 ? &amp;quot;s&amp;quot; : &amp;quot;&amp;quot;, state);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(int argc, const char* argv[])&lt;br /&gt;
{&lt;br /&gt;
  //...&lt;br /&gt;
&lt;br /&gt;
  vp_event_set(sdk, VP_EVENT_WORLD_LIST, handle_world_list);&lt;br /&gt;
  vp_world_list(sdk, 0);&lt;br /&gt;
&lt;br /&gt;
  //...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|seealso=&lt;br /&gt;
* {{sdk event|WORLD_LIST}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sleepy E</name></author>
	</entry>
</feed>