mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-13 21:25:09 +00:00
Trick on the Class: new minigame definition
This commit is contained in:
parent
fda9f3612d
commit
a882f45ebd
1 changed files with 21 additions and 0 deletions
|
@ -6,6 +6,27 @@ using UnityEngine;
|
||||||
|
|
||||||
using HeavenStudio.Util;
|
using HeavenStudio.Util;
|
||||||
|
|
||||||
|
namespace HeavenStudio.Games.Loaders
|
||||||
|
{
|
||||||
|
using static Minigames;
|
||||||
|
public static class MobTrickLoader
|
||||||
|
{
|
||||||
|
public static Minigame AddGame(EventCaller eventCaller) {
|
||||||
|
return new Minigame("trickClass", "Trick on the Class\n<color=#eb5454>[WIP don't use]</color>", "C0171D", false, false, new List<GameAction>()
|
||||||
|
{
|
||||||
|
new GameAction("bop", delegate { var e = eventCaller.currentEntity; TrickClass.instance.Bop(e.beat, e.length); }, 1, true),
|
||||||
|
new GameAction("toss", delegate
|
||||||
|
{
|
||||||
|
TrickClass.instance.TossObject(eventCaller.currentEntity.beat, eventCaller.currentEntity.type);
|
||||||
|
}, 3, false, new List<Param>()
|
||||||
|
{
|
||||||
|
new Param("type", TrickClass.TrickObjType.Ball, "Object", "The object to toss")
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
namespace HeavenStudio.Games
|
namespace HeavenStudio.Games
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue