protected override void Initialize()
 {
     base.Initialize();
     DamageType = IoCManager.Resolve <IPrototypeManager>().Index <DamageTypePrototype>(_damageTypeID);
     if (Owner.TryGetComponent(out AppearanceComponent? appearance))
     {
         appearance.SetData(AsteroidRockVisuals.State, _random.Pick(SpriteStates));
     }
 }
Exemplo n.º 2
0
 protected override void Initialize()
 {
     base.Initialize();
     DamageType = IoCManager.Resolve <IPrototypeManager>().Index <DamageTypePrototype>(_damageTypeID);
 }
 protected override void Initialize()
 {
     base.Initialize();
     DamageType          = IoCManager.Resolve <IPrototypeManager>().Index <DamageTypePrototype>(_damageTypeID);
     _lightBulbContainer = Owner.EnsureContainer <ContainerSlot>("light_bulb");
 }
Exemplo n.º 4
0
 public DamageChangeData(DamageTypePrototype type, int newValue, int delta)
 {
     Type     = type;
     NewValue = newValue;
     Delta    = delta;
 }