主题包初步装载

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

@@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BackgroundController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0bfee67d496ae4f609383bce72ee88fe
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 084c7ad2bd4754df29e585542aaa5b37
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ichni.RhythmGame
{
public abstract class NoteBadEffect : NoteEffectBase
{
public override EffectState CheckEffectState()
{
float songTime = EditorManager.instance.songModule.songTime;
if (songTime < note.exactJudgeTime )
{
return EffectState.Before;
}
if (songTime >= note.exactJudgeTime &&
songTime <= note.exactJudgeTime + effectTime)
{
return EffectState.Middle;
}
if (songTime > note.exactJudgeTime + effectTime)
{
return EffectState.After;
}
return EffectState.Error;
}
}
namespace Beatmap
{
public abstract class NoteBadEffect_BM : NoteEffectBase_BM
{
public NoteBadEffect_BM()
{
}
public NoteBadEffect_BM(float effectTime, Guid attachedNoteID) : base(effectTime, attachedNoteID)
{
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8eed65786e0bd442a8c8ab0fa0408cd8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ichni.RhythmGame
{
public abstract class NoteGeneralJudgeEffect : NoteEffectBase
{
public override EffectState CheckEffectState()
{
float songTime = EditorManager.instance.songModule.songTime;
if (songTime < note.exactJudgeTime )
{
return EffectState.Before;
}
if (songTime >= note.exactJudgeTime &&
songTime <= note.exactJudgeTime + effectTime)
{
return EffectState.Middle;
}
if (songTime > note.exactJudgeTime + effectTime)
{
return EffectState.After;
}
return EffectState.Error;
}
}
namespace Beatmap
{
public abstract class NoteGeneralJudgeEffect_BM : NoteEffectBase_BM
{
public NoteGeneralJudgeEffect_BM()
{
}
public NoteGeneralJudgeEffect_BM(float effectTime, Guid attachedNoteID) : base(effectTime, attachedNoteID)
{
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 279cfa5b13b844c1aa3b5493d90f4237
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,54 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame.ThemeBundles.Basic;
using UnityEngine;
namespace Ichni.RhythmGame
{
public abstract class NoteGenerateEffect : NoteEffectBase
{
public float generateTime;
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;
}
}
namespace Beatmap
{
public abstract class NoteGenerateEffect_BM : NoteEffectBase_BM
{
public float generateTime;
public NoteGenerateEffect_BM()
{
}
public NoteGenerateEffect_BM(float effectTime, float generateTime, Guid attachedNoteID) : base(effectTime, attachedNoteID)
{
this.generateTime = generateTime;
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6a1263bc63de94e75b9238395922c7dc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ichni.RhythmGame
{
public abstract class NoteGoodEffect : NoteEffectBase
{
public override EffectState CheckEffectState()
{
float songTime = EditorManager.instance.songModule.songTime;
if (songTime < note.exactJudgeTime )
{
return EffectState.Before;
}
if (songTime >= note.exactJudgeTime &&
songTime <= note.exactJudgeTime + effectTime)
{
return EffectState.Middle;
}
if (songTime > note.exactJudgeTime + effectTime)
{
return EffectState.After;
}
return EffectState.Error;
}
}
namespace Beatmap
{
public abstract class NoteGoodEffect_BM : NoteEffectBase_BM
{
public NoteGoodEffect_BM()
{
}
public NoteGoodEffect_BM(float effectTime, Guid attachedNoteID) : base(effectTime, attachedNoteID)
{
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f5341b8c1433a4e77be4ba00d86504ce
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,50 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ichni.RhythmGame
{
public abstract class NoteMissEffect : NoteEffectBase
{
public override EffectState CheckEffectState()
{
float songTime = EditorManager.instance.songModule.songTime;
if (songTime < note.exactJudgeTime )
{
return EffectState.Before;
}
if (songTime >= note.exactJudgeTime &&
songTime <= note.exactJudgeTime + effectTime)
{
return EffectState.Middle;
}
if (songTime > note.exactJudgeTime + effectTime)
{
return EffectState.After;
}
return EffectState.Error;
}
}
namespace Beatmap
{
public abstract class NoteMissEffect_BM : NoteEffectBase_BM
{
public NoteMissEffect_BM()
{
}
public NoteMissEffect_BM(float effectTime, Guid attachedNoteID) : base(effectTime, attachedNoteID)
{
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 923c4229a45ad464e92ab499d1375faa
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,51 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame.ThemeBundles.Basic;
using UnityEngine;
namespace Ichni.RhythmGame
{
public abstract class NotePerfectEffect : NoteEffectBase
{
public override EffectState CheckEffectState()
{
float songTime = EditorManager.instance.songModule.songTime;
if (songTime < note.exactJudgeTime )
{
return EffectState.Before;
}
if (songTime >= note.exactJudgeTime &&
songTime <= note.exactJudgeTime + effectTime)
{
return EffectState.Middle;
}
if (songTime > note.exactJudgeTime + effectTime)
{
return EffectState.After;
}
return EffectState.Error;
}
}
namespace Beatmap
{
public abstract class NotePerfectEffect_BM : NoteEffectBase_BM
{
public NotePerfectEffect_BM()
{
}
public NotePerfectEffect_BM(float effectTime, Guid attachedNoteID) : base(effectTime, attachedNoteID)
{
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 39dd448aba8824f77a2ca056ce206f0b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fe3876299b0c64d7b91110f05e83c65d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -39,8 +39,6 @@ namespace Ichni.RhythmGame
private void Update()
{
Debug.Log(timeDurationSubmodule == null);
if (timeDurationSubmodule.CheckTimeInDuration(EditorManager.instance.songModule.songTime))
{
(trackTimeSubmodule as TrackTimeSubmoduleMovable)?.UpdateTrackPart();