This commit is contained in:
Alex38Lyon
2025-06-03 12:00:47 +02:00
parent ed8041abcd
commit 878ea46cac
1300 changed files with 527178 additions and 0 deletions
+66
View File
@@ -0,0 +1,66 @@
using UnityEngine;
namespace Unity.FPS.Game
{
// The Game Events used across the Game.
// Anytime there is a need for a new event, it should be added here.
public static class Events
{
public static ObjectiveUpdateEvent ObjectiveUpdateEvent = new ObjectiveUpdateEvent();
public static AllObjectivesCompletedEvent AllObjectivesCompletedEvent = new AllObjectivesCompletedEvent();
public static GameOverEvent GameOverEvent = new GameOverEvent();
public static PlayerDeathEvent PlayerDeathEvent = new PlayerDeathEvent();
public static EnemyKillEvent EnemyKillEvent = new EnemyKillEvent();
public static PickupEvent PickupEvent = new PickupEvent();
public static AmmoPickupEvent AmmoPickupEvent = new AmmoPickupEvent();
public static DamageEvent DamageEvent = new DamageEvent();
public static DisplayMessageEvent DisplayMessageEvent = new DisplayMessageEvent();
}
public class ObjectiveUpdateEvent : GameEvent
{
public Objective Objective;
public string DescriptionText;
public string CounterText;
public bool IsComplete;
public string NotificationText;
}
public class AllObjectivesCompletedEvent : GameEvent { }
public class GameOverEvent : GameEvent
{
public bool Win;
}
public class PlayerDeathEvent : GameEvent { }
public class EnemyKillEvent : GameEvent
{
public GameObject Enemy;
public int RemainingEnemyCount;
}
public class PickupEvent : GameEvent
{
public GameObject Pickup;
}
public class AmmoPickupEvent : GameEvent
{
public WeaponController Weapon;
}
public class DamageEvent : GameEvent
{
public GameObject Sender;
public float DamageValue;
}
public class DisplayMessageEvent : GameEvent
{
public string Message;
public float DelayBeforeDisplay;
}
}