mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
Trick on the Class: new minigame definition
This commit is contained in:
parent
64897819a8
commit
74a83c46c5
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