-
Hello! According to discussion #43 if we making exported field - that field will be exported to Godot. But can I do not export field and just use it internally? I mean: type Model struct {
classdb.Extension[Model, Node.Instance]
actions map[string]actions.Action
activeAction actions.Action
parentRoot CharacterBody2D.Instance
} On Register method in So is it possible to use regular go types in case we just don`t need godot types? That field will never be exported in editor and if it possible - i want to write basic logic on go using go types |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hah Actually I have found reason func (m *Model) SwtichAction(actionName string) {
m.activeAction.Exit()
m.activeAction = m.actions[actionName]
m.activeAction.Enter()
} All was cos if that method which accepts string as param. So am I understand correctly - it is impossible to accept params in methods which are godot classes? |
Beta Was this translation helpful? Give feedback.
-
You can now use Go types in a |
Beta Was this translation helpful? Give feedback.
You can now use Go types in a
classdb.Extension
struct, just make sure they are exported.