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; }
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)); }
/// <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; }
public VisitArgs(string name, LevelType type, uint index, EnigmaSerializationAttributes attributes, object state) : this(name, type, index, attributes, state, isRoot : false) { }