mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
add "updater" for the old marching entity
This commit is contained in:
parent
118cd4993d
commit
10f8fa7f5a
1 changed files with 14 additions and 7 deletions
|
@ -41,6 +41,8 @@ namespace HeavenStudio.Games.Loaders
|
|||
}
|
||||
entity.CreateProperty("direction", entity["type"]);
|
||||
entity.CreateProperty("point", false);
|
||||
// don't actually need to do this here
|
||||
//entity.version = 1;
|
||||
|
||||
entity.dynamicData.Remove("type");
|
||||
entity.dynamicData.Remove("type2");
|
||||
|
@ -50,6 +52,17 @@ namespace HeavenStudio.Games.Loaders
|
|||
}
|
||||
RiqBeatmap.OnUpdateEntity += FaceTurnUpdater;
|
||||
|
||||
RiqEntity MarchUpdater(string datamodel, RiqEntity entity)
|
||||
{
|
||||
if (datamodel == "marchingOrders/marching")
|
||||
{
|
||||
entity.beat = double.NaN;
|
||||
return entity;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
RiqBeatmap.OnUpdateEntity += MarchUpdater;
|
||||
|
||||
return new Minigame("marchingOrders", "Marching Orders", "ffb108", false, false, new List<GameAction>()
|
||||
{
|
||||
new GameAction("bop", "Bop")
|
||||
|
@ -163,13 +176,7 @@ namespace HeavenStudio.Games.Loaders
|
|||
// hidden in the editor but here cuz backwards compatibility
|
||||
new GameAction("marching", "Start Marching (old)")
|
||||
{
|
||||
hidden = false,
|
||||
preFunction = delegate {
|
||||
var e = eventCaller.currentEntity;
|
||||
MarchingOrders.instance.ForceMarching(e.beat, e.length);
|
||||
},
|
||||
preFunctionLength = 0.2f,
|
||||
resizable = true,
|
||||
hidden = true,
|
||||
},
|
||||
new GameAction("face turn", "Direction to Turn (old)")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue