AssemblyTool/Templates/MappingTemplate.jsonc
2024-06-13 12:32:21 -04:00

58 lines
3.3 KiB
JSON

[
// TEMPLATE
// NOTE: Only add the properties you need inside of `SearchParams`
// The remapper will take any and all consideration you give it
// it uses any input you give it its matching, so only use parameters you need.
// Tldr; The remapper is a giant state machine, you get what you ask for
{
"NewTypeName": "TEMPLATE", // This is the name we want to change it to
"OriginalTypeName": "", // This is the name of the object in the assembly, Can be used to store what type you're changing as its not read unless "UseDirectRename" is true, it is also written to after remapping
"UseForceRename": false, // If this is true, directly remap using the name in the assembly from the above property
"SearchParams": { // null means disabled
// Bool parameters
"IsPublic": false, // Is the Type public?
"IsAbstract": false, // Is the Type Abstract?
"IsInterface": false, // Is the Type an Interface?
"IsEnum": false, // Is the Type an Enum?
"IsNested": false, // Is the Type Nested?
"IsSealed": false, // Is the Type Sealed?
"HasAttribute": false, // Does the Type have an attribute?
"IsDerived": false, // Does the Type inherit from another Type?
"HasGenericParameters": false, // Does the type have generic parameters?
// String parameters
"ParentName": "", // The Name of the parent type (IsNested must be enabled)
"MatchBaseClass": "", // Base class to match (IsDerived must be enabled)
"IgnoreBaseClass": "", // Base class to ignore (IsDerived must be enabled)
// Integer parameters
"ConstructorParameterCount": 0, // Match types that have a constructor parameter count of this length
"MethodCount": 0, // Match types that have this many methods
"FieldCount": 0, // Match types that have this many fields
"PropertyCount": 0, // Match types that have this many properties
"NestedTypeCount": 0, // Match types that have this many nested types
// List parameters
"IncludeMethods": [ // This is a list of methods we want to match
],
"ExcludeMethods": [ // This is a list of methods we want to ignore
],
"IncludeFields": [ // This is a list of fields we want to match
],
"ExcludeFields": [ // This is a list of fields we want to ignore
],
"IncludeProperties": [ // This is a list of properties we want to match
],
"ExcludeProperties": [ // This is a list of properties we want to ignore
],
"IncludeNestedTypes": [ // This is a list of nested types we want to match
],
"ExcludeNestedTypes": [ // This is a list of nested types we want to match ignore
]
}
}
]