How could one create a custom data type? Not something to be saved to memory (or loaded from it) like a resource, just something to be used while the game is running
I’m assuming one can just make a new class without extending anything, and then you declare variables, functions, etc. as normal. But I thought it was better to make sure I’m not missing anything
no. everything in godot is a variant, it inherits from variant.
there is nothing wrong with it.
use a resource. don’t reinvent the wheel.
everything is in memory. a resource is the smallest class that is also safe, it will be garbage collected and doesn’t need your attention once it goes out of scope.
you can also inherit from Object, which is the smallest, well, object. but it takes a lot of work.
if what you need is some type of variable like a new type of Array, it would be better to create it using a resource or even a node or autoload. Otherwise you need to implement it at the C++ level, which is a lot of work.
Could you tell us more? I don’t see anything that couldn’t be made using the standard godot types.