예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
        }
예제 #3
0
 public ActionProviderEntry(SimpleDataLine line, IActionProvider provider)
 {
     Line     = line;
     Provider = provider;
 }
예제 #4
0
 public void SetupEntity(Entity entity, SimpleDataLine lineData, DataEntry allData)
 {
 }