new WorldConfiguration()
Load World Configuration from json file
Members
-
<static> archetypes :array
-
Array of archetypes json object
Type:
- array
-
<static> componentsTypes :array
-
Array of components json object
Type:
- array
-
<static> configPath :string
-
The path of the configuration file
Type:
- string
-
<static> optManagers :array
-
Array of optionnal managers object
Type:
- array
-
<static> systems :array
-
Array of systems object
Type:
- array
Methods
-
clean()
-
Clean all attributes of the world configuration
-
getArchetypes()
-
Get the archetypes' array
Returns:
Array of archetypes
- Type
- array
-
getComponentsTypes()
-
Get the components' array
Returns:
Array of json component
- Type
- number
-
getOptManagers()
-
Get the optManagers' array
Returns:
Array of optManagers
- Type
- number
-
getSystems()
-
Get the systems' array
Returns:
Array of systems
- Type
- number
-
LoadConfFromFile(pathFile)
-
Load the world configuration from json file
Parameters:
Name Type Description pathFile
string The path of world configuration file