Beispiel #1
0
 public static void Start()
 {
     RuntimeObject.Init();
     RigidBody.Init();
     CollisionBody.Init();
     CollisionSensor.Init();
     TransportSurface.Init();
     CollisionMaterial.Init();
     HingeJoint.Init();
     SlidingJoint.Init();
     CylindricalJoint.Init();
     FixedJoint.Init();
     BallJoint.Init();
     AngularLimit.Init();
     LinearLimit.Init();
     AngularSpring.Init();
     LinearSpring.Init();
     SpeedControl.Init();
     PositionControl.Init();
     BreakingConstraint.Init();
     GearCoupling.Init();
     CamCoupling.Init();
     ElecCamCoupling.Init();
     PreventCollision.Init();
     ChangeMaterial.Init();
     ComponentPart.Init();
     SourceBehavior.Init();
     SinkBehavior.Init();
     GraphControl.Init();
     ExternalConnection.Init();
     SignalAdapter.Init();
     Signal.Init();
     ProxyObject.Init();
     RuntimeParameters.Init();
 }
Beispiel #2
0
        /// <summary>
        /// Called when the effective value of the <see cref="SourceProperty"/> changes.
        /// </summary>
        /// <param name="d">The <see cref="DependencyObject"/> on which the property has changed value.</param>
        /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (d is ToolBarTray tray)
            {
                SourceBehavior behavior = tray.ReadLocalValue(BehaviorProperty) as SourceBehavior;

                if (behavior == null)
                {
                    behavior = new SourceBehavior(tray);

                    tray.SetValue(BehaviorProperty, behavior);
                }

                behavior.OnSourceChanged(e.OldValue as IEnumerable, e.NewValue as IEnumerable);
            }
        }
Beispiel #3
0
 public void Connect(string strName, out SourceBehavior item)
 {
     ExAddProperty(this.m_pSelf, strName, 4, 0x11558);
     item = null;
 }
 public void Connect(string strName, out SourceBehavior item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x11558)) as SourceBehavior;
 }