Wiki
Clone wikiEFLC-Multiplayer / apiWorld
apiWorld
Create World
Creating a world allows the server to sync the game hours and weather
Params:
unsigned int id: Virtual World ID
unsigned int weather: Weather ID
unsigned int hour: Current game hour
unsigned int minutes: Current game minutes
unsigned int minuteDuration: How long a minute is in MS
Playing with it
#!c++ if(apiWorld::createWorld(1, 1, 12, 0, 2000)) { //Defined Virtual World 1 settings apiWorld::getWorld(1)->setWeather(7); //Its possible to change its settings whenever you want apiWorld::getWorld(1)->streamWorldChanges(); //Dont forget to stream the changes }
Updated