scripting

package
v0.0.0-...-a7a3610 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ServerPool is the global pool for server Lua engines. unlike Client and
	// Entity pools which are unique to their resource (1 per resource).
	ServerPool *lua.EnginePool

	// ServerEmitter is a server-level event emitter, it will ping the
	// ServerPool.
	ServerEmitter *events.Emitter

	// ClientEmitter is a client-level event emitter, it will ping every client
	// pool.
	ClientEmitter *events.Emitter

	// EntityEmitter is an entity-level event emitter, it will ping every
	// entity pool in the game (potentially a large number of entities).
	EntityEmitter *events.Emitter
)

Functions

func ClientEngineMutator

func ClientEngineMutator(eng *lua.Engine)

ClientEngineMutator is a mutator function for the client EnginePool to use to "build" a client engine.

func GlobalEmit

func GlobalEmit(evt string, data events.Data)

GlobalEmit will emit to all tiers of engines, primarily used for tick emissions from the server.

func Initialize

func Initialize()

Initialize sets up the engine tools, creating emitters and various engine pools.

func OpenLibs

func OpenLibs(e *lua.Engine, modules ...string)

OpenLibs will open all modules given to the function as defined in the scripting/modules directory.

func ServerEngineMutator

func ServerEngineMutator(eng *lua.Engine)

ServerEngineMutator is a mutator function for the server EnginePool to use to "build" a server engine.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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