Files
ichni_Official/Assets/Scripts/Game/GameElements/Notes/JudgeSubmodules/NoteJudgeSubmodule.cs

60 lines
1.8 KiB
C#
Raw Normal View History

2025-06-03 02:42:28 -04:00
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame.Beatmap;
2025-08-11 14:04:06 -04:00
using UnityEngine;
2025-06-03 02:42:28 -04:00
namespace Ichni.RhythmGame
{
public partial class NoteJudgeSubmodule : SubmoduleBase
{
2026-03-14 03:13:10 -04:00
#region [] Judge Units
2025-06-03 02:42:28 -04:00
public List<NoteJudgeUnit> judgeUnitList;
private NoteBase note => attachedGameElement as NoteBase;
2026-03-14 03:13:10 -04:00
#endregion
2025-06-03 02:42:28 -04:00
2026-03-14 03:13:10 -04:00
#region [] Initialization
2025-06-03 02:42:28 -04:00
public NoteJudgeSubmodule(NoteBase attachedGameElement) : base(attachedGameElement)
{
judgeUnitList = new List<NoteJudgeUnit>();
if (!HaveSameSubmodule)
{
2026-03-14 03:13:10 -04:00
this.note.NoteJudgeSubmodule = this;
2025-06-03 02:42:28 -04:00
}
}
public NoteJudgeSubmodule(NoteBase attachedGameElement, List<NoteJudgeUnit_BM> judgeUnitList_BM) : base(attachedGameElement)
{
judgeUnitList = new List<NoteJudgeUnit>();
foreach (NoteJudgeUnit_BM judgeUnitBM in judgeUnitList_BM)
{
judgeUnitList.Add(judgeUnitBM.ConvertToGameType(attachedGameElement));
}
if (!HaveSameSubmodule)
{
2026-03-14 03:13:10 -04:00
this.note.NoteJudgeSubmodule = this;
2025-06-03 02:42:28 -04:00
}
}
2026-03-14 03:13:10 -04:00
#endregion
2025-06-03 02:42:28 -04:00
}
2026-03-14 03:13:10 -04:00
#region [] Collection Factory
2025-06-03 02:42:28 -04:00
public partial class NoteJudgeSubmodule
{
private static Dictionary<string, NoteJudgeUnit> JudgeUnitCollection(NoteBase note) =>
new Dictionary<string, NoteJudgeUnit>()
{
{ "TouchArea", new TouchAreaJudgeUnit(note, 1000) },
{ "FullScreenNearTime", new FullScreenNearTimeJudgeUnit(note) },
{ "TriggerConnect", new TriggerConnectJudgeUnit(note, null) }
};
}
2026-03-14 03:13:10 -04:00
#endregion
2025-06-03 02:42:28 -04:00
2026-03-14 03:13:10 -04:00
#region [Beatmap] Executing and Reversing
#endregion
2025-06-03 02:42:28 -04:00
}