Size: 399
Comment:
|
Size: 1172
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
| The Fields objects can reference details about valleys you own. |
Line 3: | Line 3: |
m_city.cityManager.fields[0].id | '''Field objects can be referenced as:''' |
Line 5: | Line 5: |
m_city.cityManager.fields[0].level | . ''m_city.cityManager.fields[#].property '''or''' city.fields[#].property'' |
Line 7: | Line 7: |
m_city.cityManager.fields[0].name | The # will be which valley slot you are referencing, between 0-9. The .property at the end is how you will specify which detail you are referencing. Using the table below, you can for example get the level of the 5th valley you own with ''city.fields[4].level''. |
Line 9: | Line 9: |
m_city.cityManager.fields[0].type | '''Properties''' ||<tablewidth="796px" tableheight="123px"#cccccc>'''Property ''' ||<#cccccc>'''Type''' ||<#cccccc>'''Description ''' || ||id ||int ||Description here || ||level ||int ||Description here || ||name ||String ||Description here || ||type ||String ||Description here || |
Line 11: | Line 16: |
m_city.cityManager.fields[1].id | |
Line 13: | Line 17: |
m_city.cityManager.fields[1].level | The following functions can give further information about valleys, but are used as: .''m_city.cityManager.fields.method '''or''' city.fields.method'' |
Line 15: | Line 21: |
m_city.cityManager.fields[1].name | |
Line 17: | Line 22: |
m_city.cityManager.fields[1].type | '''Methods''' ||<tablewidth="796px" tableheight="43px"#cccccc>'''Method ''' ||<#cccccc>'''Type''' ||<#cccccc>'''Description ''' || ||length ||int ||Description here || |
Line 19: | Line 26: |
m_city.cityManager.fields.length | '''Examples''' |
Line 21: | Line 28: |
m_city.cityManager.fields[9].type | . {{{ example goes here }}} |
Line 24: | Line 40: |
CategoryVariables | ScriptObjects |
The Fields objects can reference details about valleys you own.
Field objects can be referenced as:
m_city.cityManager.fields[#].property or city.fields[#].property
The # will be which valley slot you are referencing, between 0-9. The .property at the end is how you will specify which detail you are referencing. Using the table below, you can for example get the level of the 5th valley you own with city.fields[4].level.
Properties
Property |
Type |
Description |
id |
int |
Description here |
level |
int |
Description here |
name |
String |
Description here |
type |
String |
Description here |
The following functions can give further information about valleys, but are used as:
m_city.cityManager.fields.method or city.fields.method
Methods
Method |
Type |
Description |
length |
int |
Description here |
Examples
example goes here