plugins

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Paths lists the filepaths for all accessible plugins in the current
	// project directory.
	Paths []string

	// Root is the root path of the project directory
	Root string

	// PluginRoot is the root for all plugins, essnetially just
	// Root + "/plugins"
	PluginRoot string

	// GameRoot is the root for all player written game files, essentially just
	// Root + "/game"
	GameRoot string

	// Names is a list of names for each of the plugins loaded.
	Names []string
)

Functions

func GetScriptLoadPaths

func GetScriptLoadPaths() []string

GetScriptLoadPaths returns the paths used for loading scripts via Lua. This is converting all plugin paths into ?.lua and ?/init.lua paths.

func LoadClient

func LoadClient(eng *lua.Engine) error

LoadClient runs all the init.lua files for client in the users codebase and with all plugins.

func LoadCommands

func LoadCommands(eng *lua.Engine) error

LoadCommands runs all the init.lua files for commands in the users codebase and with all plugins.

func LoadServer

func LoadServer(eng *lua.Engine) error

LoadServer runs all the init.lua files for server in the users codebase and with all plugins.

func LoadViews

func LoadViews() error

LoadViews will read all plugin views and compile them, then perform the sam eoperation on root views. Root view definitions can overwrite

Types

This section is empty.

Jump to

Keyboard shortcuts

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