-
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 {
gd.Class[Model, gd.Node]
actions map[string]actions.Action
activeAction actions.Action
parentRoot gd.CharacterBody2D
} 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: 1 comment 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 make the method private, is that not an option here?