Пример #1
0
 public SpriteJSON(SerializationInfo info, StreamingContext context)
 {
     resourceID           = info.GetString("resourceID");
     animationsIncludedIn = (string[])info.GetValue("animationsIncludedIn", typeof(string[]));
     sourceRect           = (RectangleJSON)info.GetValue("sourceRect", typeof(RectangleJSON));
 }
Пример #2
0
 public SpriteJSON(string resourceID, string[] animationsIncludedIn, RectangleJSON sourceRect)
 {
     this.resourceID           = resourceID;
     this.animationsIncludedIn = animationsIncludedIn;
     this.sourceRect           = sourceRect;
 }