Пример #1
0
 public EncounterOption(string description, EncounterAction action, string emojiOverrideName = null)
 {
     this.description = description;
     this.action      = action;
     if (emojiOverrideName != null)
     {
         displayIcon = DiscordEmoji.FromName(Instance.Client, emojiOverrideName);
     }
 }
Пример #2
0
        public EncounterAction ToEncounterAction()
        {
            var action = new EncounterAction();

            if (go != null)
            {
                action.encounterId = go.id;
            }

            if (loot != null)
            {
                action.loot = loot.ToEncounterLoot();
            }

            return(action);
        }
Пример #3
0
 public EncounterOption(string description, EncounterAction action, DiscordEmoji emojiOverride)
 {
     this.description = description;
     this.action      = action;
     this.displayIcon = emojiOverride;
 }