public static Stamp From(SerializedItem serializedStamp) { Stamp stamp = new Stamp(); serializedStamp.AssignPropertiesTo(stamp); return(stamp); }
public static IItemProperties From(SerializedItem stamp) { MapCharacter mapCharacter = new MapCharacter(); stamp.AssignPropertiesTo(mapCharacter); return(mapCharacter); }
public static TGroup DeserializeGroup <TGroup>(SerializedItem stamp) where TGroup : IGroup, new() { TGroup result = new TGroup(); stamp.AssignPropertiesTo(result); if (stamp.Children != null) { foreach (SerializedItem childStamp in stamp.Children) { result.Children.Add(MapElementFactory.CreateItemFrom(childStamp)); } } return(result); }