Initial commit
This commit is contained in:
18
code/Events/MinigameEndEvent.cs
Normal file
18
code/Events/MinigameEndEvent.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Sandbox;
|
||||
|
||||
namespace LuckerGame.Events;
|
||||
|
||||
public static partial class LuckerEvent
|
||||
{
|
||||
public const string MinigameEnd = "lucker.minigameEnd";
|
||||
|
||||
/// <summary>
|
||||
/// Event is run on the server whenever a minigame ends
|
||||
/// </summary>
|
||||
public class MinigameEndAttribute : EventAttribute
|
||||
{
|
||||
public MinigameEndAttribute() : base(MinigameEnd)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
20
code/Events/PlayerReadyEvent.cs
Normal file
20
code/Events/PlayerReadyEvent.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Sandbox;
|
||||
|
||||
namespace LuckerGame.Events;
|
||||
|
||||
public static partial class LuckerEvent
|
||||
{
|
||||
public const string PlayerReady = "lucker.playerReady";
|
||||
|
||||
/// <summary>
|
||||
/// Event is run on the server whenever a player changes ready state
|
||||
/// The event handler is given the player that readied up and their new ready state
|
||||
/// </summary>
|
||||
[MethodArguments(typeof(Entities.Lucker), typeof(bool))]
|
||||
public class PlayerReadyAttribute : EventAttribute
|
||||
{
|
||||
public PlayerReadyAttribute() : base(PlayerReady)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user