blob: dffd5e58856691e01b19d711d8e500d535b26880 (
plain)
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
|
using System;
public class WinningPlayerData
{
public string Name;
public bool IsDead;
public bool IsImpostor;
public int ColorId;
public uint SkinId;
public uint HatId;
public uint PetId;
public bool IsYou;
public WinningPlayerData()
{
}
public WinningPlayerData(GameData.PlayerInfo player)
{
this.IsYou = (player.Object == PlayerControl.LocalPlayer);
this.Name = player.PlayerName;
this.IsDead = (player.IsDead || player.Disconnected);
this.IsImpostor = player.IsImpostor;
this.ColorId = (int)player.ColorId;
this.SkinId = player.SkinId;
this.PetId = player.PetId;
this.HatId = player.HatId;
}
}
|