private void HandleCompState(EntityUid uid, SharedPointLightComponent component, ref ComponentHandleState args) { if (args.Current is not PointLightComponentState newState) { return; } component.Enabled = newState.Enabled; component.Radius = newState.Radius; component.Offset = newState.Offset; component.Color = newState.Color; }
private void GetCompState(EntityUid uid, SharedPointLightComponent component, ref ComponentGetState args) { args.State = new PointLightComponentState(component.Enabled, component.Color, component.Radius, component.Offset, component.Energy, component.Softness); }