public Output(JSONNode jNode_) { Numeric = jNode_["numeric"]; Subject = Serializer.ReadEnum <ESubject>(jNode_["subject"]); Category = Serializer.ReadEnum <Data.Skill.Unit.Stat.ECategory>(jNode_["category"]); Gauge = jNode_["gauge"]; }
public Skill(ECategory category_, NamedHash name_, string description_, string details_, List <Metric> metrics_) { Reference = this; Category = category_; Name = name_; Description = description_; Details = details_; Metrics = metrics_; switch (Category) { case ECategory.Ability: Material = App.Resource.Material.AbilityMaterial; break; case ECategory.Class: Material = App.Resource.Material.ClassMaterial; break; case ECategory.Kit: Material = App.Resource.Material.KitMaterial; break; } Reference = null; }
public Modifier( JSONNode jNode_) : base(jNode_) { Action = Serializer.ReadEnum <EAction>(jNode_["action"]); Amount = jNode_["amount"]; ModifierName = jNode_["modifierName"]; }
public Cooldown( Id id_, NamedHash hash_, MetricReference reference_) : base(id_) { Hash = hash_; Reference = reference_; }
public Output( MetricReference numeric_, ESubject subject_, Data.Skill.Unit.Stat.ECategory category_, NamedHash gauge_) { Numeric = numeric_; Subject = subject_; Category = category_; Gauge = gauge_; }
public Modifier( Id id_, EAction action_, MetricReference amount_, string modifierName_) : base(id_) { Action = action_; Amount = amount_; ModifierName = modifierName_; }
public Stat( Id id_, NamedHash hash_, Data.Skill.Unit.Stat.ECategory category_, MetricReference reference_) : base(id_) { Hash = hash_; Category = category_; Reference = reference_; }
public Metric(NamedHash name_, List <ETag> tags_, Numeric numeric_) { Name = name_; Tags = tags_; Numeric = numeric_; Regex regex = new Regex("^[a-zA-Z][a-zA-Z0-9]*$"); if (!regex.IsMatch(Name.String)) { throw new InvalidOperationException(); } }
public Gauge( Id id_, NamedHash hash_, ETarget target_, Data.Skill.Unit.Stat.ECategory category_, Data.Skill.Unit.Gauge.EInputType inputType_, MetricReference reference_) : base(id_) { Hash = hash_; Target = target_; Category = category_; InputType = inputType_; Reference = reference_; }
public ReferenceCooldown(List <string> fields) { Subject = Serializer.ReadEnum <ESubject>(fields[1]); Type = fields[2]; }
public Cooldown(NamedHash type_) { Type = type_; }
public ReferenceUnitGauge(List <string> fields) { Subject = Serializer.ReadEnum <ESubject>(fields[1]); Type = fields[2]; Extract = Serializer.ReadEnum <Unit.Gauge.EExtract>(fields[3]); }
public UnitChange(JSONNode jNode_) { Direction = Serializer.ReadEnum <EDirection>(jNode_["direction"]); StatType = Serializer.ReadEnum <EStatType>(jNode_["statType"]); Name = jNode_["name"]; }
public UnitChange(EDirection direction_, EStatType statType_, NamedHash name_) { Direction = direction_; StatType = statType_; Name = name_; }
public GaugeOutput(JSONNode jNode_) { Stat = jNode_["stat"]; }
public GaugeOutput(NamedHash stat_) { Stat = stat_; }
public Metric GetMetric(NamedHash name_) { return(Metrics.Find(x => x.Name.Equals(name_))); }