cggenevents

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 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, url, language string) error

CGGenEvents downloads and executes the correct version of cg-gen-events.

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