public ValueAnimationInfo(Urho.UrhoObject target, ValueAnimation animation, WrapMode wrapMode, float speed) : base(UrhoObjectFlag.Empty) { Runtime.Validate(typeof(ValueAnimationInfo)); handle = ValueAnimationInfo_ValueAnimationInfo0((object)target == null ? IntPtr.Zero : target.Handle, (object)animation == null ? IntPtr.Zero : animation.Handle, wrapMode, speed); Runtime.RegisterObject(this); OnValueAnimationInfoCreated(); }
/// <summary> /// Register a subsystem. /// </summary> public void RegisterSubsystem(Urho.UrhoObject subsystem) { Runtime.ValidateRefCounted(this); Context_RegisterSubsystem(handle, (object)subsystem == null ? IntPtr.Zero : subsystem.Handle); }
/// <summary> /// Return event receivers for a sender and event type, or null if they do not exist. /// </summary> public EventReceiverGroup GetEventReceivers(Urho.UrhoObject sender, StringHash eventType) { Runtime.ValidateRefCounted(this); return(Runtime.LookupRefCounted <EventReceiverGroup> (Context_GetEventReceivers(handle, (object)sender == null ? IntPtr.Zero : sender.Handle, eventType.Code))); }
/// <summary> /// Return whether has subscribed to a specific sender's event. /// </summary> public bool HasSubscribedToEvent(Urho.UrhoObject sender, StringHash eventType) { Runtime.ValidateRefCounted(this); return(UrhoObject_HasSubscribedToEvent3(handle, (object)sender == null ? IntPtr.Zero : sender.Handle, eventType.Code)); }
/// <summary> /// Unsubscribe from a specific sender's events. /// </summary> public void UnsubscribeFromEvents(Urho.UrhoObject sender) { Runtime.ValidateRefCounted(this); UrhoObject_UnsubscribeFromEvents(handle, (object)sender == null ? IntPtr.Zero : sender.Handle); }
/// <summary> /// Unsubscribe from a specific sender's event. /// </summary> public void UnsubscribeFromEvent(Urho.UrhoObject sender, StringHash eventType) { Runtime.ValidateRefCounted(this); UrhoObject_UnsubscribeFromEvent2(handle, (object)sender == null ? IntPtr.Zero : sender.Handle, eventType.Code); }
/// <summary> /// Subscribe to a specific sender's event. /// </summary> public void SubscribeToEvent(Urho.UrhoObject sender, StringHash eventType, IntPtr handler) { Runtime.ValidateRefCounted(this); UrhoObject_SubscribeToEvent1(handle, (object)sender == null ? IntPtr.Zero : sender.Handle, eventType.Code, handler); }
/// <summary> /// Remove receiver. Leave holes during send, which requires later cleanup. /// </summary> public void Remove(Urho.UrhoObject @object) { Runtime.ValidateRefCounted(this); EventReceiverGroup_Remove(handle, (object)@object == null ? IntPtr.Zero : @object.Handle); }