mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 09:47:39 +02:00
Trick on the Class: new minigame definition
This commit is contained in:
@ -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
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user