Modding:Template Property Type: Difference between revisions

From Vintage Story Wiki
m
Created template page for property references.
(Created property template page.)
 
m (Created template page for property references.)
Line 3: Line 3:
__TOC__
__TOC__
=== Usage ===
=== Usage ===
The '''MusicConfig''' property type is a '''content-type''' used to add new music tracks to Vintage Story. Any number of mods can add new tracks, however the ''properties'' element will only load from one mod. Because of this, it is not recommended to add the ''properties'' element to your mod.
The '''propertyname''' property type is a '''content-type/sub-type/enum-type/simple-type''' used to <usage>.  


MusicConfig files must be created as "''music/musicconfig.json''" in a mod's domain folder for them to be loaded.
<If Content-Type> PropertyName files must be created as "''path/to/propertytype.json''" in a mod's domain folder for them to be loaded.


The script for MusicConfig is currently not available on GitHub.  
The script for propertyname can be found on GitHub.
 
The script for propertyname is currently not available on GitHub, but can be found at "''namespace.of.property.Type"'' in decompiled source code.


=== Property Reference ===
=== Property Reference ===
Line 15: Line 17:
!Description
!Description
|-
|-
|Properties
|
|{{Proptype|MusicConfigProperties}}
|
|Defines some properties for controlling the music engine. It is recommended to not include this in a mod.
|
|-
|-
|Tracks
|
|{{Proptype|Array}} ({{Proptype|SurfaceMusicTrack}} or {{Proptype|CaveMusicTrack}})
|
|A list of music track properties, one entry per track.
|
|}
|}


Confirmedusers
566

edits