예제 #1
0
 public void ReceiveBasicPropertyChange(BasicPropertyChangeEventType type, bool value)
 {
     if (type == BasicPropertyChangeEventType.IsSensor)
     {
         IsSensor = value;
     }
     if (type == BasicPropertyChangeEventType.IsStatic)
     {
         IsStatic = value;
     }
 }
예제 #2
0
 private void RaiseBasicPropertyChange(BasicPropertyChangeEventType type, float oldValue, float newValue)
 {
     if (_eventsEnabled)
     {
         Game.EventEngine.RaiseGameObjectBasicPropertyChanged(new BasicPropertyChangeArgs
         {
             Type          = type,
             FloatValue    = newValue,
             OldFloatValue = oldValue,
             Owner         = this
         });
     }
 }
예제 #3
0
 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;
     }
 }
예제 #4
0
 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;
     }
 }