主题包初步装载

This commit is contained in:
SoulliesOfficial
2025-02-09 11:09:54 -05:00
parent e3a8450a27
commit 3b0c65e277
63 changed files with 2702 additions and 190 deletions

View File

@@ -4,14 +4,13 @@ using System.Collections.Generic;
using DG.Tweening;
using Ichni.RhythmGame;
using Ichni.RhythmGame.Beatmap;
using Ichni.RhythmGame.ThemeBundles.Basic.Beatmap;
using UnityEngine;
namespace Ichni.RhythmGame.ThemeBundles.Basic
{
public class BasicNoteGenerateExpand : NoteEffectBase
public class BasicNoteGenerateExpand : NoteGenerateEffect
{
public float generateTime;
public BasicNoteGenerateExpand(NoteBase note)
{
this.note = note;
@@ -32,49 +31,25 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
noteVisual.noteMain.transform.DOScale(Vector3.one, 0.1f).SetEase(Ease.OutBack);
}
public override EffectState CheckEffectState()
{
float songTime = EditorManager.instance.songModule.songTime;
if (songTime < note.exactJudgeTime - generateTime)
{
return EffectState.Before;
}
if (songTime >= note.exactJudgeTime - generateTime &&
songTime <= note.exactJudgeTime - generateTime + effectTime)
{
return EffectState.Middle;
}
if (songTime > note.exactJudgeTime - generateTime + effectTime)
{
return EffectState.After;
}
return EffectState.Error;
}
public override EffectBase_BM ConvertToBM()
{
return new Beatmap.BasicNoteGenerateExpand_BM(effectTime, generateTime, note.elementGuid);
return new BasicNoteGenerateExpand_BM(effectTime, generateTime, note.elementGuid);
}
}
namespace Beatmap
{
public class BasicNoteGenerateExpand_BM : NoteEffectBase_BM
public class BasicNoteGenerateExpand_BM : NoteGenerateEffect_BM
{
public float generateTime;
public BasicNoteGenerateExpand_BM()
{
}
public BasicNoteGenerateExpand_BM(float effectTime, float generateTime, Guid attachedNoteID) : base(effectTime, attachedNoteID)
public BasicNoteGenerateExpand_BM(float effectTime, float generateTime, Guid attachedNoteID) :
base(effectTime, generateTime, attachedNoteID)
{
this.generateTime = generateTime;
}
public override EffectBase ConvertToGameType()