Inline resourceName and resourceType.

Sure they're private, but even then they shouldn't be writable.
This commit is contained in:
Joseph Cloutier
2024-02-24 19:13:49 -05:00
parent 3b04a053b7
commit 95cef72616

View File

@@ -144,7 +144,7 @@ class AssetsMacro
var definition = macro class Temp
{
private static var resourceType:String = $v{ resourceType };
private static inline var resourceType:String = $v{ resourceType };
};
fields.push(definition.fields[0]);
@@ -159,7 +159,7 @@ class AssetsMacro
var definition = macro class Temp
{
private static var resourceName:String = $v{ resourceName };
private static inline var resourceName:String = $v{ resourceName };
};
fields.push(definition.fields[0]);