Documentation ¶
Index ¶
- func CGGenEvents(cgeVersion, outputDir, cgePath, languages string) error
- func GetEventNames(url, cgeVersion string) (eventNames []string, commandNames []string, err error)
- func InstallCGGenEvents(cgeVersion string) (string, error)
- func LatestCGEVersion() (string, error)
- func ParseCGEVersion(cge string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CGGenEvents ¶
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 ¶
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
InstallCGGenEvents installs the correct version of cg-gen-events if neccessary.
func LatestCGEVersion ¶
LatestCGEVersion returns the latest CGE version in the format 'x.y'.
func ParseCGEVersion ¶
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.
Click to show internal directories.
Click to hide internal directories.