Auto Spaceball dispense (#286)

This commit is contained in:
Braedon Lewis
2023-02-18 17:12:49 -05:00
committed by GitHub
parent dbe8f7dcf3
commit d1511af689
3 changed files with 19 additions and 8 deletions

View File

@ -13,7 +13,9 @@ namespace HeavenStudio.Games.Loaders
{
new GameAction("shoot", "Pitch Ball")
{
function = delegate { Spaceball.instance.Shoot(eventCaller.currentEntity.beat, false, eventCaller.currentEntity["type"]); },
function = delegate { Spaceball.instance.Shoot(eventCaller.currentEntity.beat, false, eventCaller.currentEntity["type"]); },
preFunction = delegate { Spaceball.instance.PrepareDispenser(); },
preFunctionLength = 1,
defaultLength = 2,
parameters = new List<Param>()
{
@ -22,7 +24,9 @@ namespace HeavenStudio.Games.Loaders
},
new GameAction("shootHigh", "Pitch High Ball")
{
function = delegate { Spaceball.instance.Shoot(eventCaller.currentEntity.beat, true, eventCaller.currentEntity["type"]); },
function = delegate { Spaceball.instance.Shoot(eventCaller.currentEntity.beat, true, eventCaller.currentEntity["type"]); },
preFunction = delegate { Spaceball.instance.PrepareDispenser(); },
preFunctionLength = 1,
defaultLength = 3,
parameters = new List<Param>()
{
@ -56,7 +60,7 @@ namespace HeavenStudio.Games.Loaders
{
function = delegate { Spaceball.instance.PrepareDispenser(); },
},
});
});;
}
}
}