Right now [OnReadyPath] generates GetNode, [OnReadyLoad] generates GD.Load.
Instead, there could be just one attribute that calls the right function depending on the type of the annotated field/property. If a subclass of Node, GetNode, if a subclass of Resource, GD.Load.
[OnReadyGet]?
This makes is more obvious how to combine these code paths, and could make it easier to implement some shared features like Private.
This could also combine with [OnReady], however none of the properties of [OnReadyPath] apply to methods so this makes less sense.
Right now
[OnReadyPath]
generatesGetNode
,[OnReadyLoad]
generatesGD.Load
.Instead, there could be just one attribute that calls the right function depending on the type of the annotated field/property. If a subclass of
Node
,GetNode
, if a subclass ofResource
,GD.Load
.[OnReadyGet]
?This makes is more obvious how to combine these code paths, and could make it easier to implement some shared features like
Private
.This could also combine with
[OnReady]
, however none of the properties of[OnReadyPath]
apply to methods so this makes less sense.