/// <summary>
 /// Initializes a new instance of the <see cref="T:RandomEvent"/> class.
 /// </summary>
 public RandomEvent(RandomEventType type, List<Choice> choices, string title, string description)
 {
     this.Type = type;
     this.Choices = choices;
     this.Title = title;
     this.Description = description;
 }
Esempio n. 2
0
    public RandomEvent(string _name, string _description, bool _isGoodEvent, RandomEventType _eventType, int _chance, System.Delegate _eventFunction, string _shopItemName)
    {
        ShopItemName = _shopItemName;

        Name           = _name;
        Description    = _description;
        IsGoodEvent    = _isGoodEvent;
        EventType      = _eventType;
        StartingChance = _chance;
        eventFunction  = _eventFunction;
    }