Documentation ¶
Index ¶
- type UnityBridge
- func (w *UnityBridge) Create(name string, debuggable bool, logPath string)
- func (w *UnityBridge) Destroy()
- func (w *UnityBridge) GenerateEvent(eventCode uint64, data []byte, tag uint64) error
- func (w *UnityBridge) GetSecurityKeyByKeyChainIndex(index int) string
- func (w *UnityBridge) Initialize() bool
- func (w *UnityBridge) SendEvent(eventCode uint64, output []byte, tag uint64)
- func (w *UnityBridge) SendEventWithNumber(eventCode uint64, data, tag uint64)
- func (w *UnityBridge) SendEventWithString(eventCode uint64, data string, tag uint64)
- func (w *UnityBridge) SetEventCallback(eventTypeCode uint64, c callback.Callback)
- func (w *UnityBridge) Uninitialize()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnityBridge ¶
func NewUnityBridgeWrapper ¶
func NewUnityBridgeWrapper() *UnityBridge
func (*UnityBridge) Create ¶
func (w *UnityBridge) Create(name string, debuggable bool, logPath string)
func (*UnityBridge) Destroy ¶
func (w *UnityBridge) Destroy()
func (*UnityBridge) GenerateEvent ¶
func (w *UnityBridge) GenerateEvent(eventCode uint64, data []byte, tag uint64) error
GenerateEvent generates an event with the given event code, data and tag. any callbacks registered for the same event type for the given event code will be called with the given data and tag.
func (*UnityBridge) GetSecurityKeyByKeyChainIndex ¶
func (w *UnityBridge) GetSecurityKeyByKeyChainIndex(index int) string
func (*UnityBridge) Initialize ¶
func (w *UnityBridge) Initialize() bool
func (*UnityBridge) SendEvent ¶
func (w *UnityBridge) SendEvent(eventCode uint64, output []byte, tag uint64)
func (*UnityBridge) SendEventWithNumber ¶
func (w *UnityBridge) SendEventWithNumber(eventCode uint64, data, tag uint64)
func (*UnityBridge) SendEventWithString ¶
func (w *UnityBridge) SendEventWithString(eventCode uint64, data string, tag uint64)
func (*UnityBridge) SetEventCallback ¶
func (w *UnityBridge) SetEventCallback(eventTypeCode uint64, c callback.Callback)
func (*UnityBridge) Uninitialize ¶
func (w *UnityBridge) Uninitialize()
Click to show internal directories.
Click to hide internal directories.