59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Ichni.RhythmGame.Beatmap;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.RhythmGame
|
|
{
|
|
public class NoteJudgeSubmodule : SubmoduleBase
|
|
{
|
|
public List<NoteJudgeUnit> judgeUnitList;
|
|
|
|
public NoteJudgeSubmodule(NoteBase attachedGameElement) : base(attachedGameElement)
|
|
{
|
|
|
|
}
|
|
|
|
public override void SaveBM()
|
|
{
|
|
matchedBM = new NoteJudgeSubmodule_BM(attachedGameElement);
|
|
}
|
|
}
|
|
|
|
namespace Beatmap
|
|
{
|
|
public class NoteJudgeSubmodule_BM : Submodule_BM
|
|
{
|
|
public List<NoteJudgeUnit> judgeUnitList;
|
|
|
|
public NoteJudgeSubmodule_BM()
|
|
{
|
|
|
|
}
|
|
|
|
public NoteJudgeSubmodule_BM(GameElement attachedElement) : base(attachedElement)
|
|
{
|
|
judgeUnitList = new List<NoteJudgeUnit>();
|
|
}
|
|
|
|
public override void ExecuteBM()
|
|
{
|
|
attachedElement = GameElement_BM.GetElement(attachedElementGuid);
|
|
(attachedElement as NoteBase).noteJudgeSubmodule = new NoteJudgeSubmodule(attachedElement as NoteBase);
|
|
attachedElement.submoduleList.Add((attachedElement as NoteBase).noteJudgeSubmodule);
|
|
}
|
|
|
|
public override void DuplicateBM(GameElement attached)
|
|
{
|
|
(attached as NoteBase).noteJudgeSubmodule = new NoteJudgeSubmodule(attached as NoteBase);
|
|
attached.submoduleList.Add((attached as NoteBase).noteJudgeSubmodule);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class NoteJudgeUnit
|
|
{
|
|
|
|
}
|
|
} |