Documentation ¶
Index ¶
- Constants
- type State
- func (instance *State) Events() *gg_events.Emitter
- func (instance *State) Get(key string) interface{}
- func (instance *State) GetState() map[string]interface{}
- func (instance *State) Name() string
- func (instance *State) Off(eventName string, callback ...func(event *gg_events.Event)) *State
- func (instance *State) OffStateChanged(callback ...func(event *gg_events.Event)) *State
- func (instance *State) On(eventName string, callback func(event *gg_events.Event)) *State
- func (instance *State) OnStateChanged(callback func(event *gg_events.Event)) *State
- func (instance *State) Put(key string, value interface{}) *State
- func (instance *State) SetState(m map[string]interface{}) *State
- type StateHelper
Constants ¶
View Source
const (
EventOnChangeState = "_on_change_state"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State simple state object that store data and emit events
func (*State) OffStateChanged ¶
func (*State) OnStateChanged ¶
type StateHelper ¶
type StateHelper struct { }
var StateH *StateHelper
func (*StateHelper) New ¶
func (instance *StateHelper) New(name string) *State
Click to show internal directories.
Click to hide internal directories.