Modding:Template Property Type: Difference between revisions

From Vintage Story Wiki
m
no edit summary
(Created property template page.)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
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.
|
|}
|}


Line 38: Line 40:


{{jsonnavboxes|audio=0|config=0|gameobjects=0|patches=0|recipes=0|worldproperties=0|worldgen=0}}
{{jsonnavboxes|audio=0|config=0|gameobjects=0|patches=0|recipes=0|worldproperties=0|worldgen=0}}
{{navbox/modding}}
Confirmedusers
637

edits