Adds a new world configuration to a world server.
AW_CALLBACK_ADMIN_WORLD_RESULT
This method is new in Active Worlds 3.1 and requires at least SDK build 18 and world server build 28.
This is an administration mode method and can only be used by instances created with aw_server_admin.
aw_server_world_add adds a new world configuration to be hosted by the current world server. The following attributes are used when creating the world:
AW_SERVER_ENABLED
AW_SERVER_NAME
AW_SERVER_PASSWORD
AW_SERVER_REGISTRY
AW_SERVER_CARETAKERS
When aw_server_world_add completes successfully, the id number of the new world is returned in AW_SERVER_ID.
/* add a new world configuration to the current world server */
aw_bool_set (AW_SERVER_ENABLED, TRUE);
aw_string_set (AW_SERVER_NAME, "myworld");
aw_string_set (AW_SERVER_PASSWORD, "mypass");
aw_string_set (AW_SERVER_REGISTRY, "registry.txt");
aw_string_set (AW_SERVER_CARETAKERS, "123456");
if (rc = aw_server_world_add ())
printf ("Unable to add new world (reason %d)\n", rc);
else
printf ("World added successfully.\n");
aw_server_admin
aw_server_world_change
aw_server_world_delete
aw_server_world_list
aw_server_world_set
aw_server_world_start
aw_server_world_stop