Beispiel #1
0
        public static Stamp From(SerializedItem serializedStamp)
        {
            Stamp stamp = new Stamp();

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

            stamp.AssignPropertiesTo(mapCharacter);
            return(mapCharacter);
        }
Beispiel #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);
        }