Beispiel #1
0
 public StartItemDialogueService(
     StartDialogueEventRepository startDialogueEventRepository,
     DialogueRepository dialogueRepository,
     string itemId,
     Sprite iconForDialogue,
     IconForDialogueRepository iconForDialogueRepository,
     Dialogue dialogue)
 {
     this.startDialogueEventRepository = startDialogueEventRepository ?? throw new ArgumentNullException(nameof(startDialogueEventRepository));
     this.dialogueRepository           = dialogueRepository ?? throw new ArgumentNullException(nameof(dialogueRepository));
     this.itemId                    = itemId ?? throw new ArgumentNullException(nameof(itemId));
     this.iconForDialogue           = iconForDialogue;
     this.iconForDialogueRepository = iconForDialogueRepository ?? throw new ArgumentNullException(nameof(iconForDialogueRepository));
     this.dialogue                  = dialogue;
 }
 public NpcImageService(IconForDialogueRepository iconForDialogueRepository, Icon icon)
 {
     this.icon = icon ?? throw new ArgumentNullException(nameof(icon));
     this.iconForDialogueRepository = iconForDialogueRepository ??
                                      throw new ArgumentNullException(nameof(iconForDialogueRepository));
 }