Beispiel #1
0
        public void SetActiveCharacter(Character.Character character)
        {
            if (character == null)
            {
                throw new ArgumentNullException(nameof(character));
            }

            _ActiveCharacter = character.CharacterId;
        }
Beispiel #2
0
 public bool TryGetActiveCharacter(out Character.Character character)
 {
     character = _Characters.FirstOrDefault(ch => ch.CharacterId == _ActiveCharacter);
     return(character != null);
 }