public static void RSDKvRS_Save_Hitbox(EditorAnimation.EditorHitbox hb, RSDKvRS.Animation.AnimationEntry.Frame.HitBox hbvRS) { hbvRS.Bottom = (sbyte)hb.Bottom; hbvRS.Right = (sbyte)hb.Right; hbvRS.Top = (sbyte)hb.Top; hbvRS.Left = (sbyte)hb.Left; }
public static void RSDKvRS_Save_Frame(EditorAnimation.EditorFrame frame, RSDKvRS.Animation.AnimationEntry.Frame framevRS) { framevRS.Height = (byte)frame.Height; framevRS.PivotX = (sbyte)frame.PivotX; framevRS.PivotY = (sbyte)frame.PivotY; framevRS.SpriteSheet = frame.SpriteSheet; framevRS.Width = (byte)frame.Width; framevRS.X = (byte)frame.X; framevRS.Y = (byte)frame.Y; RSDKvRS.Animation.AnimationEntry.Frame.HitBox hb = new RSDKvRS.Animation.AnimationEntry.Frame.HitBox(); RSDKvRS_Save_Hitbox(frame.HitBoxes[0], hb); framevRS.CollisionBox = hb; }