private void HandleLand(EntityUid uid, LightBulbComponent component, LandEvent args)
 {
     component.PlayBreakSound();
     component.State = LightBulbState.Broken;
 }
Exemple #2
0
 private void OnInit(EntityUid uid, LightBulbComponent bulb, ComponentInit args)
 {
     // update default state of bulbs
     SetColor(uid, bulb.Color, bulb);
     SetState(uid, bulb.State, bulb);
 }
Exemple #3
0
 private void HandleLand(EntityUid uid, LightBulbComponent bulb, LandEvent args)
 {
     PlayBreakSound(uid, bulb);
     SetState(uid, LightBulbState.Broken, bulb);
 }
Exemple #4
0
 private void OnBreak(EntityUid uid, LightBulbComponent component, BreakageEventArgs args)
 {
     SetState(uid, LightBulbState.Broken, component);
 }