Skip to content

Virtual method for non-node instantiation? #94

Answered by Splizard
hmrrrrr asked this question in Q&A
Discussion options

You must be logged in to vote

@hmrrrrr thanks for your feedback, I've added the following to classdb.Register:

All exported fields and methods will be exposed to The Engine, so
take caution when embedding types, as their fields and methods
will be promoted. They will be exported as snake_case by default,
for fields, the exported name can be adjusted with the 'gd' tag.

This function accepts a variable number of additional arguments,
they may either be func, map[string]any (where each any is a func), 
or map[string]int, these arguments can be used to register static 
methods, rename existing methods, or to define constants respectively. 
As a special case, if a function is passed which name begins with 'New', 
accepts no 

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@hmrrrrr
Comment options

@hmrrrrr
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Splizard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants