public override void UpdateFrom(IAuxiliaryObject other)
 {
     if (other is VAuxObject vaux)
     {
         Object = vaux.Object;
     }
 }
Beispiel #2
0
 public override void UpdateFrom(IAuxiliaryObject other)
 {
     if (other is VEnvironmentData venvdat)
     {
         NodeSpecific = venvdat.NodeSpecific;
     }
 }
Beispiel #3
0
 /// <inheritdoc cref="AuxiliaryObject"/>
 public override void UpdateFrom(IAuxiliaryObject other)
 {
     if (!(other is BehaviorState bs))
     {
         return;
     }
     DeltaPos = bs.DeltaPos;
 }
Beispiel #4
0
 /// <inheritdoc cref="AuxiliaryObject"/>
 public override void UpdateFrom(IAuxiliaryObject other)
 {
     if (!(other is BehaviorState bs))
     {
         return;
     }
     DeltaPos   = bs.DeltaPos;
     DeltaAngle = bs.DeltaAngle;
     DeltaSize  = bs.DeltaSize;
     TotalAngle = bs.TotalAngle;
 }
Beispiel #5
0
 /// <summary>
 /// Convinience function to set a state for an element corresponding to this behavior
 /// </summary>
 /// <param name="element"></param>
 /// <param name="value">The state to be assigned</param>
 /// <returns></returns>
 public void SetState(NotuiElement element, IAuxiliaryObject value)
 {
     if (element.Value == null)
     {
         element.Value = new AttachedValues();
     }
     if (IsStateAvailable(element))
     {
         element.Value.Auxiliary[BehaviorStatePrefix + Id] = value;
     }
     else
     {
         element.Value.Auxiliary.Add(BehaviorStatePrefix + Id, value);
     }
 }
Beispiel #6
0
 /// <inheritdoc cref="AuxiliaryObject"/>
 public override void UpdateFrom(IAuxiliaryObject other)
 {
 }
Beispiel #7
0
 /// <inheritdoc cref="IUpdateable{T}"/>
 public abstract void UpdateFrom(IAuxiliaryObject other);