Rizline:Chart file: Difference between revisions

mNo edit summary
No edit summary
Line 24: Line 24:
   {{DataStructureField|offset|float|Audio or chart offset. It is currently unknown if this value shifts the audio or the chart forwards, nor is it known if this value is in milliseconds or seconds (although it is more likely seconds). Always <code>0.0</code>. {{verify|Is this still true?}}}}
   {{DataStructureField|offset|float|Audio or chart offset. It is currently unknown if this value shifts the audio or the chart forwards, nor is it known if this value is in milliseconds or seconds (although it is more likely seconds). Always <code>0.0</code>. {{verify|Is this still true?}}}}
   {{DataStructureField|lines|array|List of all lines in the chart. This part usually takes up most of the chart file.|
   {{DataStructureField|lines|array|List of all lines in the chart. This part usually takes up most of the chart file.|
     {{DataStructureField||line object|A line}}
     {{DataStructureField||object|A line. {{Todo}}}}
  }}
  {{DataStructureField|canvasMoves|array|Changes of canvas position.|
    {{DataStructureField||object|A move pattern for one canvas. The index of the element in the array is the canvas index. {{Todo}}}}
  }}
  {{DataStructureField|cameraMove|object|Changes of camera position. {{Todo}}|
   }}
   }}
}}
}}
Line 46: Line 51:
   {{DataStructureField|a|int|Alpha value (from 0 to 255).}}
   {{DataStructureField|a|int|Alpha value (from 0 to 255).}}
}}
}}
=== Key point object structure ===
{{DataStructure|
  {{DataStructureField|time|float|Time of the key point (in beats).}}
  {{DataStructureField|value|float|Value of the key point.}}
  {{DataStructureField|easeType|int|ID of the ease type used for this key point. See [[#Ease type enum]] for details.}}
  {{DataStructureField|floorPosition|float|Pre-calculated time of the key point (in seconds). This value is not always accurate, or even present.}}
}}
=== Ease type enum ===
{{Todo|This enum is currently unknown - to fill it, we have to find ease types in official charts and compare them to curves on https://easings.net/ .}}
<ul>
<li><code>0</code> - unknown</li>
<li><code>1</code> - unknown</li>
<li><code>2</code> - unknown</li>
<li><code>3</code> - unknown</li>
<li><code>4</code> - unknown</li>
<li><code>5</code> - unknown</li>
<li><code>6</code> - unknown</li>
<li><code>7</code> - unknown</li>
<li><code>8</code> - unknown</li>
<li><code>9</code> - unknown</li>
<li><code>10</code> - unknown</li>
<li><code>11</code> - unknown</li>
<li><code>12</code> - unknown</li>
<li><code>13</code> - unknown</li>
</ul>