cggenevents

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CGGenEvents

func CGGenEvents(cgeVersion, outputDir, cgePath, languages string) error

CGGenEvents downloads and executes the correct version of cg-gen-events. cgePath can be either a filepath or a url starting with either http:// or https://.

func GetEventNames

func GetEventNames(url, cgeVersion string) (eventNames []string, commandNames []string, err error)

GetEventNames uses CGGenEvents() to get a list of all the available event and command names of the game server at url. It only works for CGE versions >= 0.3.

func InstallCGGenEvents added in v0.2.3

func InstallCGGenEvents(cgeVersion string) (string, error)

InstallCGGenEvents installs the correct version of cg-gen-events if neccessary.

func LatestCGEVersion

func LatestCGEVersion() (string, error)

LatestCGEVersion returns the latest CGE version in the format 'x.y'.

func ParseCGEVersion

func ParseCGEVersion(cge string) (string, error)

CGEVersion parses the version field in the provided CGE file and returns the CGE version in the format 'x.y'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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