-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaboteur.cs
More file actions
49 lines (35 loc) · 1.22 KB
/
Saboteur.cs
File metadata and controls
49 lines (35 loc) · 1.22 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using Il2Cpp;
using Il2CppInterop.Runtime.Injection;
using MelonLoader;
namespace RevealDilemmaMod;
[RegisterTypeInIl2Cpp]
public class Saboteur : Role
{
public Saboteur() : base(ClassInjector.DerivedConstructorPointer<Saboteur>())
{
ClassInjector.DerivedConstructorBody(this);
}
// public override ActedInfo GetInfo(Character charRef)
// {
// // return infoRoles[UnityEngine.Random.Range(0, infoRoles.Count)].GetInfo(charRef);
// ActedInfo info = new ActedInfo("");
// return info;
// }
public override void Act(ETriggerPhase trigger, Character charRef)
{
if (trigger != ETriggerPhase.Day) return;
// onActed?.Invoke(GetInfo(charRef));
}
public override void BluffAct(ETriggerPhase trigger, Character charRef)
{
if (trigger != ETriggerPhase.Day) return;
// onActed?.Invoke(GetBluffInfo(charRef));
}
// public override ActedInfo GetBluffInfo(Character charRef)
// {
// Role role = infoRoles[UnityEngine.Random.Range(0, infoRoles.Count)];
// ActedInfo newInfo = role.GetBluffInfo(charRef);
// return newInfo;
// }
// public Il2CppSystem.Collections.Generic.List<Role> infoRoles;
}