public SpriteJSON(SerializationInfo info, StreamingContext context) { resourceID = info.GetString("resourceID"); animationsIncludedIn = (string[])info.GetValue("animationsIncludedIn", typeof(string[])); sourceRect = (RectangleJSON)info.GetValue("sourceRect", typeof(RectangleJSON)); }
public SpriteJSON(string resourceID, string[] animationsIncludedIn, RectangleJSON sourceRect) { this.resourceID = resourceID; this.animationsIncludedIn = animationsIncludedIn; this.sourceRect = sourceRect; }