Ejemplo n.º 1
0
        public static Stamp From(SerializedItem serializedStamp)
        {
            Stamp stamp = new Stamp();

            serializedStamp.AssignPropertiesTo(stamp);
            return(stamp);
        }
Ejemplo n.º 2
0
        public static IItemProperties From(SerializedItem stamp)
        {
            MapCharacter mapCharacter = new MapCharacter();

            stamp.AssignPropertiesTo(mapCharacter);
            return(mapCharacter);
        }
Ejemplo n.º 3
0
        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);
        }