From 74a83c46c5a8d875a6a0a2185e64c0610064ea28 Mon Sep 17 00:00:00 2001
From: minenice55 <43734252+minenice55@users.noreply.github.com>
Date: Wed, 13 Apr 2022 10:14:13 -0400
Subject: [PATCH] Trick on the Class: new minigame definition
---
Assets/Scripts/Games/TrickClass/TrickClass.cs | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/Assets/Scripts/Games/TrickClass/TrickClass.cs b/Assets/Scripts/Games/TrickClass/TrickClass.cs
index ab07fdd9f..cabf08b9f 100644
--- a/Assets/Scripts/Games/TrickClass/TrickClass.cs
+++ b/Assets/Scripts/Games/TrickClass/TrickClass.cs
@@ -6,6 +6,27 @@ using UnityEngine;
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[WIP don't use]", "C0171D", false, false, new List()
+ {
+ 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()
+ {
+ new Param("type", TrickClass.TrickObjType.Ball, "Object", "The object to toss")
+ }),
+ });
+ }
+ }
+}
+
namespace HeavenStudio.Games
{
/**