public SsRect(SsRect r) { Left = r.Left; Top = r.Top; Right = r.Right; Bottom = r.Bottom; }
static public SsRect[] CreateArray(int num) { var a = new SsRect[num]; for (int i = 0; i < a.Length; ++i) a[i] = new SsRect(); return a; }
SsPartRes() { Name = null; PicArea = new SsRect(); InheritState = new SsInheritanceState(); // create individual key frame list PosXKeys = new List <SsIntKeyFrame>(); PosYKeys = new List <SsIntKeyFrame>(); AngleKeys = new List <SsFloatKeyFrame>(); ScaleXKeys = new List <SsFloatKeyFrame>(); ScaleYKeys = new List <SsFloatKeyFrame>(); TransKeys = new List <SsFloatKeyFrame>(); PrioKeys = new List <SsIntKeyFrame>(); FlipHKeys = new List <SsBoolKeyFrame>(); FlipVKeys = new List <SsBoolKeyFrame>(); HideKeys = new List <SsBoolKeyFrame>(); PartsColKeys = new List <SsColorBlendKeyFrame>(); PartsPalKeys = new List <SsPaletteKeyFrame>(); VertexKeys = new List <SsVertexKeyFrame>(); UserKeys = new List <SsUserDataKeyFrame>(); SoundKeys = new List <SsSoundKeyFrame>(); ImageOffsetXKeys = new List <SsIntKeyFrame>(); ImageOffsetYKeys = new List <SsIntKeyFrame>(); ImageOffsetWKeys = new List <SsIntKeyFrame>(); ImageOffsetHKeys = new List <SsIntKeyFrame>(); OriginOffsetXKeys = new List <SsIntKeyFrame>(); OriginOffsetYKeys = new List <SsIntKeyFrame>(); }
static public SsRect[] CreateArray(int num) { var a = new SsRect[num]; for (int i = 0; i < a.Length; ++i) { a[i] = new SsRect(); } return(a); }
public SsUserDataKeyValue(SsUserDataKeyValue r) { IsNum = r.IsNum; Num = r.Num; IsRect = r.IsRect; this.Rect = r.Rect.Clone(); IsPoint = r.IsPoint; this.Point = r.Point.Clone(); IsString = r.IsString; this.String = System.String.Copy(r.String); }
_GetRect( SsRect o, XmlNode n, string path) { if (path != null) { n = _SelectSingleNode(n, path); } o.Top = _ToInt(_GetNodeValue(n, "./cur:Top")); o.Left = _ToInt(_GetNodeValue(n, "./cur:Left")); o.Bottom = _ToInt(_GetNodeValue(n, "./cur:Bottom")); o.Right = _ToInt(_GetNodeValue(n, "./cur:Right")); }
public SsInterpolatable GetInterpolated(SsCurveParams curve, float time, SsInterpolatable start, SsInterpolatable end, int startTime, int endTime) { var v = new SsRect(); return v.Interpolate(curve, time, start, end, startTime, endTime); }
_GetRect(SsRect o, XmlNode n) { _GetRect(o, n, null); }
public SsInterpolatable GetInterpolated(SsCurveParams curve, float time, SsInterpolatable start, SsInterpolatable end, int startTime, int endTime) { var v = new SsRect(); return(v.Interpolate(curve, time, start, end, startTime, endTime)); }