Skip to content

Commit ede688b

Browse files
committed
0.6.0.104 - minor additions
- [Feat] Getting a cutscene now sets a global trigger on results screen activation to be usable in unlockables (retroactive for cutscenes that play only once) - [Chore] Keep a dictionary of all custom metadata (starting by .) in a chart for future usage in 0.6.1 - [Chore] Unlock conditions for and soar through the universe (ch6) and cocoa break (Dashy's Depictions)
1 parent ef99d5b commit ede688b

6 files changed

Lines changed: 201 additions & 147 deletions

File tree

0 Bytes
Binary file not shown.

OpenTaiko/src/Songs/CSongListNode.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public enum ENodeType {
6262
public int[] nLevel = new int[(int)Difficulty.Total] { 0, 0, 0, 0, 0, 0, 0 };
6363
public CTja.ELevelIcon[] nLevelIcon = new CTja.ELevelIcon[(int)Difficulty.Total] { CTja.ELevelIcon.eNone, CTja.ELevelIcon.eNone, CTja.ELevelIcon.eNone, CTja.ELevelIcon.eNone, CTja.ELevelIcon.eNone, CTja.ELevelIcon.eNone, CTja.ELevelIcon.eNone };
6464

65+
// Custom metadata handlers
66+
public Dictionary<string, string> customMetadataGScope = new Dictionary<string, string>();
67+
public Dictionary<string, string>[] customMetadataCScope = Enumerable.Range(0, (int)Difficulty.Total).Select(_ => new Dictionary<string, string>()).ToArray();
68+
6569
// Branches
6670
public bool bBranch = false;
6771

@@ -88,15 +92,15 @@ public enum ENodeType {
8892

8993
// In-game visuals
9094

91-
public string strScenePresets; // includes commas
92-
95+
public string strScenePresets; // includes commas
96+
9397
#region [ OpenTaiko-Exclusive TJA Extension Data ]
94-
98+
9599
public CTja.CutSceneDef? CutSceneIntro = null;
96-
public List<CTja.CutSceneDef> CutSceneOutros = [];
97-
100+
public List<CTja.CutSceneDef> CutSceneOutros = [];
101+
98102
#endregion
99-
103+
100104
public string tGetUniqueId() {
101105
return uniqueId?.data.id ?? "";
102106
}

OpenTaiko/src/Songs/CSong管理.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ private void t曲を検索してリストを作成する(string str基点フォ
205205
c曲リストノード.strNotesDesigner = dtx.NOTESDESIGNER.Select(x => x.Equals("") ? c曲リストノード.strMaker : x).ToArray();
206206
c曲リストノード.nSide = dtx.SIDE;
207207
c曲リストノード.bExplicit = dtx.EXPLICIT;
208-
c曲リストノード.bMovie = !string.IsNullOrEmpty(dtx.strBGVIDEO_PATH);
208+
c曲リストノード.bMovie = !string.IsNullOrEmpty(dtx.strBGVIDEO_PATH);
209+
210+
// Shallow copy, works well because dict<string, string> but wouldn't if dict<string, T>
211+
c曲リストノード.customMetadataGScope = new Dictionary<string, string>(dtx.customMetadataGScope);
212+
c曲リストノード.customMetadataCScope = dtx.customMetadataCScope.Select(dict => new Dictionary<string, string>(dict)).ToArray();
209213

210214
c曲リストノード.DanSongs = new();
211215
if (dtx.List_DanSongs != null) {

0 commit comments

Comments
 (0)