mock

package
v0.0.0-...-9ffe791 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnityBridge

type UnityBridge struct {
	mock.Mock
	// contains filtered or unexported fields
}

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL