Exemplo n.º 1
0
 private VisitArgs(string name, LevelType type, uint index, EnigmaSerializationAttributes attributes, object state, bool isRoot)
 {
     Name       = name;
     Type       = type;
     Index      = index;
     Attributes = attributes;
     State      = state;
     IsRoot     = isRoot;
 }
Exemplo n.º 2
0
        public virtual VisitArgs Construct(string propertyName)
        {
            var property   = SerializableType.FindProperty(propertyName);
            var levelType  = GetLevelTypeFromClass(property.Ext.Classification);
            var name       = property.Ref.Name;
            var idx        = property.Metadata.Index;
            var attributes = EnigmaSerializationAttributes.FromMember(property.Ref);

            var args = new ConstructStateArgs(property, attributes, levelType);

            OnConstructState(args);

            return(new VisitArgs(name, levelType, idx, attributes, args.State));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of <see cref="ConstructStateArgs"/>
 /// </summary>
 /// <param name="property"></param>
 /// <param name="attributes"></param>
 /// <param name="levelType"></param>
 public ConstructStateArgs(SerializableProperty property, EnigmaSerializationAttributes attributes, LevelType levelType)
 {
     Property   = property;
     Attributes = attributes;
     LevelType  = levelType;
 }
Exemplo n.º 4
0
 public VisitArgs(string name, LevelType type, uint index, EnigmaSerializationAttributes attributes, object state)
     : this(name, type, index, attributes, state, isRoot : false)
 {
 }