Beispiel #1
0
 public override void Move(int src, int dst, Component component)
 {
     var body = component as Body;
     body.Weight[dst] = Weight[src];
     body.Bounciness[dst] = Bounciness[src];
     body.Friction[dst] = Friction[src];
 }
Beispiel #2
0
 public override void Move(int src, int dst, Component component)
 {
     var view = component as Viewport;
     view.Left = Left;
     view.Top = Top;
     view.Width = Width;
     view.Height = Height;
 }
Beispiel #3
0
        public override void Move(int src, int dst, Component component)
        {
            var h = component as Hotspots;
            h.Left[dst] = Left[src];
            h.Right[dst] = Right[src];
            h.Top[dst] = Top[src];
            h.Bottom[dst] = Bottom[src];

            h.LeftHit[dst] = LeftHit[src];
            h.RightHit[dst] = RightHit[src];
            h.TopHit[dst] = TopHit[src];
            h.BottomHit[dst] = BottomHit[src];
        }
Beispiel #4
0
 public override void Move(int src, int dst, Component component)
 {
     var anim = component as Animation;
     anim.Sprite = Sprite;
 }
Beispiel #5
0
 public override void Move(int src, int dst, Component component)
 {
 }
Beispiel #6
0
 public override void Move(int src, int dst, Component component)
 {
     var aabb = component as AABB;
     aabb.Width[dst] = Width[src];
     aabb.Height[dst] = Height[src];
 }
Beispiel #7
0
 public override void Move(int src, int dst, Component component)
 {
     var health = component as Health;
     health.Value[dst] = Value[src];
 }