Package org.vrspace.server.config
Class WorldConfig
- java.lang.Object
-
- org.vrspace.server.config.WorldConfig
-
@Configuration @ConfigurationProperties("org.vrspace.server") public class WorldConfig extends Object
Container for pre-configured worlds, created by WorldManager during startup. Worlds can be configured with org.vrspace.server.WORLDNAME.x properties, most important org.vrspace.server.WORLDNAME.specifies the class that extends World and implements custom enter and exit methods. All other properties are passed to the world instance during creation, intended to be used in World.enter(), WorldController, etc.- See Also:
ServerWorld
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorldConfig.WorldProperties
-
Constructor Summary
Constructors Constructor Description WorldConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Map<String,WorldConfig.WorldProperties>
getWorld()
int
hashCode()
void
setWorld(Map<String,WorldConfig.WorldProperties> world)
String
toString()
-
-
-
Method Detail
-
getWorld
public Map<String,WorldConfig.WorldProperties> getWorld()
-
setWorld
public void setWorld(Map<String,WorldConfig.WorldProperties> world)
-
canEqual
protected boolean canEqual(Object other)
-
-