public void ReceiveBasicPropertyChange(BasicPropertyChangeEventType type, bool value) { if (type == BasicPropertyChangeEventType.IsSensor) { IsSensor = value; } if (type == BasicPropertyChangeEventType.IsStatic) { IsStatic = value; } }
private void RaiseBasicPropertyChange(BasicPropertyChangeEventType type, float oldValue, float newValue) { if (_eventsEnabled) { Game.EventEngine.RaiseGameObjectBasicPropertyChanged(new BasicPropertyChangeArgs { Type = type, FloatValue = newValue, OldFloatValue = oldValue, Owner = this }); } }
public void ReceiveBasicPropertyChange(BasicPropertyChangeEventType type, Vector2 value) { if (type == BasicPropertyChangeEventType.LinearVelocity) { LinearVelocity = value; } if (type == BasicPropertyChangeEventType.Size) { Size = value; } if (type == BasicPropertyChangeEventType.Position) { Position = value; } }
public void ReceiveBasicPropertyChange(BasicPropertyChangeEventType type, float value) { if (type == BasicPropertyChangeEventType.AngularVelocity) { AngularVelocity = value; } if (type == BasicPropertyChangeEventType.Rotation) { Rotation = value; } if (type == BasicPropertyChangeEventType.Restitution) { Restitution = value; } if (type == BasicPropertyChangeEventType.Health) { Health = value; } }