Beispiel #1
0
 public static Behavior ToViewModel(this BehaviorXml behavior)
 {
     return(new Behavior()
     {
         Type = behavior.Type.ToBehavior()
     });
 }
Beispiel #2
0
        public override void Export(BehaviorXml details)
        {
            details.SetParameter("x_velocity", Velocity.X);

            details.SetParameter("y_velocity", Velocity.Y);

            details.SetParameter("z_velocity", Velocity.Z);
        }
        public override void Export(BehaviorXml details)
        {
            for (var index = 0; index < Branches.Count; index++)
            {
                var branch = Branches[index];

                details.SetParameter($"behavior {index + 1}", branch);
            }
        }
Beispiel #4
0
        public override void Export(BehaviorXml details)
        {
            details.SetParameter("lookat_x", LookAt.X);

            details.SetParameter("lookat_y", LookAt.Y);

            details.SetParameter("lookat_z", LookAt.Z);

            details.SetParameter("pos_x", Position.X);

            details.SetParameter("pos_y", Position.Y);

            details.SetParameter("pos_z", Position.Z);
        }
Beispiel #5
0
 public virtual void Export(BehaviorXml details)
 {
 }