Added inactive functions

I'm going to flesh it out more in the next commit
This commit is contained in:
Slaith
2022-03-02 13:59:35 -08:00
parent 197332c2a5
commit 7e291e0bfa
7 changed files with 101 additions and 39 deletions

View File

@ -44,9 +44,24 @@ namespace RhythmHeavenMania.Games
public int firstEnable = 0;
public string name = "";
public virtual void OnGameSwitch()
{
//Below is a template that can be used for handling previous entities. There are multiple sections that have different functions, you don't need to use all of them
float beat = Conductor.instance.songPositionInBeats;
List<Beatmap.Entity> prevEntities = GameManager.instance.Beatmap.entities.FindAll(c => c.beat <= beat && c.datamodel.Split(0) == name);
//section below is if you only want to look at entities that overlap the game switch
foreach(Beatmap.Entity entity in prevEntities)
{
if(entity.beat + entity.length >= beat)
{
}
}
}
public virtual void OnTimeChange()