public UnturnedUser(IUserDataStore userDataStore, Player player, UnturnedPendingUser pending = null) : base(userDataStore) { Type = KnownActorTypes.Player; Player = player; SteamPlayer = Player.channel.owner; var steamPlayerIdId = SteamPlayer.playerID; SteamId = steamPlayerIdId.steamID; DisplayName = SteamPlayer.playerID.characterName; Session = new UnturnedUserSession(this, pending?.Session); }
protected internal UnturnedUser( UnturnedUserProvider userProvider, IUserDataStore userDataStore, Player player, UnturnedPendingUser pending = null) : base(userProvider, userDataStore) { var steamPlayerIdId = player.channel.owner.playerID; SteamId = steamPlayerIdId.steamID; Player = new UnturnedPlayer(player); DisplayName = player.channel.owner.playerID.characterName; Type = KnownActorTypes.Player; Session = new UnturnedUserSession(this, pending?.Session); }