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