-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathInfectRule.cs
More file actions
32 lines (28 loc) · 979 Bytes
/
InfectRule.cs
File metadata and controls
32 lines (28 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace ScriptedEvents.Structures
{
using PlayerRoles;
/// <summary>
/// Represents a rule for an infection game.
/// </summary>
public readonly struct InfectRule
{
public InfectRule(RoleTypeId oldRole, RoleTypeId newRole, bool movePlayer)
{
OldRole = oldRole;
NewRole = newRole;
MovePlayer = movePlayer;
}
/// <summary>
/// Gets the role a player must be in order to get infected.
/// </summary>
public RoleTypeId OldRole { get; }
/// <summary>
/// Gets the role a user will become if infected with this rule.
/// </summary>
public RoleTypeId NewRole { get; }
/// <summary>
/// Gets a value indicating whether or not the player will be moved from the new role's spawn location to their death position.
/// </summary>
public bool MovePlayer { get; }
}
}