public void SetupEntity(Entity entity, SimpleDataLine lineData, DataEntry allData) { var damageStat = DiceStat.Parse(entity, Stats.Damage, lineData.Config); if (damageStat != null) { entity.Get <StatsContainer>().Add(damageStat); } }
public void SetupEntity(Entity entity, SimpleDataLine lineData, DataEntry allData) { var component = entity.GetOrAdd <GenericDataComponent>(); if (!int.TryParse(lineData.Config, out var uses)) { uses = 1; } component.SetData(Label, Label); component.SetData(Amount, lineData.Amount); component.SetData(Uses, uses); }
public ActionProviderEntry(SimpleDataLine line, IActionProvider provider) { Line = line; Provider = provider; }
public void SetupEntity(Entity entity, SimpleDataLine lineData, DataEntry allData) { }