Пример #1
0
 public CharacterBuilder(INpcDefList npcDefList, WorldList worldList, CharacterService characterService)
 {
     _NpcDefList       = npcDefList ?? throw new ArgumentNullException(nameof(npcDefList));
     _WorldList        = worldList ?? throw new ArgumentNullException(nameof(worldList));
     _CharacterService = characterService ?? throw new ArgumentNullException(nameof(characterService));
 }
Пример #2
0
 internal Character(int characterId, CharacterService characterService)
 {
     _CharacterService = characterService;
     CharacterId       = characterId;
 }