Rizline:AssetList: Difference between revisions

Created page with "`Default.asset` is a YAML asset file that contains information about ''Rizline''<nowiki>'</nowiki>s songs, illustrations, layouts, and other data. == File Structure == {{DataStructure| {{DataStructureField|MonoBehaviour|object|| <li>(Unity data: m_*)</li> {{DataStructureField|levels|array|List of all levels.| {{DataStructureField||object|A level.| {{DataStructureField|id|string|Named ID of the level, in the format of <code>NoSpacesTitle.NoSp..."
 
No edit summary
Line 1: Line 1:
`Default.asset` is a YAML asset file that contains information about ''[[Rizline]]''<nowiki>'</nowiki>s songs, illustrations, layouts, and other data.
<code>Default.asset</code> is a YAML asset file that contains information about ''[[Rizline]]''<nowiki>'</nowiki>s songs, illustrations, layouts, and other data.


== File Structure ==
== File Structure ==
Line 25: Line 25:
         {{DataStructureField|previewStartTime|float|Beginning time of preview audio, in seconds (for example <code>51.8</code>).}}
         {{DataStructureField|previewStartTime|float|Beginning time of preview audio, in seconds (for example <code>51.8</code>).}}
         {{DataStructureField|previewOverTime|float|End time of preview audio, in seconds (for example <code>71.8</code>). Usually is <code>previewStartTime</code> + 20.}}
         {{DataStructureField|previewOverTime|float|End time of preview audio, in seconds (for example <code>71.8</code>). Usually is <code>previewStartTime</code> + 20.}}
        {{DataStructureField|themeBackgroundColor|object|Background color of the song {{verify|Where is this color used?}} (for example <code>(1, 1, 1, 1)</code>). See [[#Color object format]] for details.}}
        {{DataStructureField|themeUiColor|object|Accent color of the song {{verify|Where is this color used?}} (for example <code>(0.4509804, 0.63529414, 0.88235295, 1)</code>). See [[#Color object format]] for details.}}
       }}
       }}
     }}
     }}
    {{DataStructureField|illustrations|array|List of all illustrations.|
      {{DataStructureField||object|An illustration.|
        {{DataStructureField|id|string|Named ID of the song, in the format of <code>illustration.NoSpacesTitle.NoSpacesArtist.0</code> (for example <code>illustration.PastelLines.RekuMochizuki.0</code>). Usually the same as a level's <code>id</code> field, but with <code>illustration.</code> at the beginning. This field is most likely referenced by the level's <code>illustrationId</code> field.}}
        {{DataStructureField|artist|string|Artist of the illustration (for example <code>山山奇</code>).}}
      }}
    }}
    {{DataStructureField|charts|array|List of all charts.|
      {{DataStructureField||object|A chart.|
        {{DataStructureField|id|string|Named ID of the chart, in the format of <code>chart.NoSpacesTitle.NoSpacesArtist.0.DIFF</code> (for example <code>chart.PastelLines.RekuMochizuki.0.EZ</code>). Usually the same as a level's <code>id</code> field, but with <code>chart.</code> at the beginning, and either <code>.EZ</code>, <code>.HD</code>, <code>.IN</code>, or <code>.AT</code> at the end. This field is most likely referenced by an element in the level's <code>chartIds</code> field.}}
        {{DataStructureField|level|string|Difficulty name of the chart. Either <code>EZ</code>, <code>HD</code>, <code>IN</code>, or <code>AT</code>.}}
        {{DataStructureField|difficulty|float|Difficulty number of the chart, from 1 (easiest) to 15 (hardest). Numbers with <code>+</code> are represented as number + 0.5 (for example <code>12.5</code> is displayed as <code>12+</code>).}}
        {{DataStructureField|designer|string|Name of the charter (for example <code>NerSAN</code>).}}
      }}
    }}
    {{DataStructureField|difficultyColors|array|List of all difficulties.|
      {{DataStructureField||object|A difficulty.|
        {{DataStructureField|difficultyName|string|Name of the difficulty (for example <code>EZ</code>). This field is most likely referenced by the chart's <code>level</code> field.}}
        {{DataStructureField|color|object|Color of the difficulty (for example <code>(0.34117648, 0.8941177, 0.7686275, 1)</code>). See [[#Color object format]] for details.}}
      }}
    }}
    {{DataStructureField|layoutColors|array|List of all usable [[Rizline:Rizcard Layout|Rizcard Layouts]].|
      {{DataStructureField||object|A layout.|
        {{DataStructureField|id|string|Named ID of the layout, in the format of <code>layout.XXXXX</code> where <code>XXXXX</code> is a five-digit number (for example <code>layout.00001</code>).}}
        {{DataStructureField|bgColor1|object|First background color of the layout {{verify|Where is this color used?}} (for example <code>(0.49803922, 0.83137256, 1, 1)</code>). See [[#Color object format]] for details.}}
        {{DataStructureField|bgColor2|object|Second background color of the layout {{verify|Where is this color used?}} (for example <code>(0.49803922, 0.83137256, 1, 1)</code>). See [[#Color object format]] for details.}}
        {{DataStructureField|fgColor|object|Foreground color of the layout {{verify|Where is this color used?}} (for example <code>(1, 1, 1, 1)</code>). See [[#Color object format]] for details.}}
      }}
    }}
    {{DataStructureField|discNames|array|List of all discs.|
      {{DataStructureField||string|Full name of a disc (for example <code>Disc 1</code>.}}
    }}
    {{DataStructureField|specialLevels|array|List of special levels.|
      {{DataStructureField||object|A special level.|
        {{DataStructureField|discName|string|Full name of a disc (for example <code>Disc 1</code>).}}
        {{DataStructureField|musicIndex|int|Song index (for example <code>36</code>).}}
        {{DataStructureField|processerPrefab|file reference|Unknown (for example <code>{fileID: 114340900683893326, guid: bbaaa5183855bb14b8500e1d1ee7ffc8, type: 2}</code>).}}
      }}
    }}
    {{DataStructureField|staticCardsInfoAsset|file reference|Reference to the [[Rizline:StaticCardsInfoAsset.asset|StaticCardsInfoAsset.asset]] file (for example <code>{fileID: 11400000, guid: 1f34e5b2e8694344d88ef886a2bf5e49, type: 2}</code>).}}
   }}
   }}
}}
}}
=== Color object format ===
{{DataStructure|
  {{DataStructureField|r|float|Red value of the color, from 0 (no red) to 1 (fully red).}}
  {{DataStructureField|g|float|Green value of the color, from 0 (no green) to 1 (fully green).}}
  {{DataStructureField|b|float|Blue value of the color, from 0 (no blue) to 1 (fully blue).}}
  {{DataStructureField|a|float|Alpha value of the color, from 0 (fully transparent) to 1 (fully opaque). Usually 1.}}
}}
[[Category:Rizline Asset Bundle]]