modules

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: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteBuild

func ExecuteBuild(data BuildData, cgData *cgfile.CodeGameFileData) error

func ExecuteNewClient

func ExecuteNewClient(data NewClientData) error

func ExecuteNewServer

func ExecuteNewServer(data NewServerData) error

func ExecuteRun

func ExecuteRun(data RunData, cgData *cgfile.CodeGameFileData) error

func ExecuteUpdate

func ExecuteUpdate(data UpdateData, cgData *cgfile.CodeGameFileData) error

func ReadCommandConfig

func ReadCommandConfig[T any]() (T, error)

Types

type BuildData

type BuildData struct {
	// Lang contains the chosen programming language (in case one module supports multiple languages).
	Lang string `json:"lang"`
	// Output contains the output file name.
	Output string `json:"output"`
	// The target OS for compiled languages. (possible values: current,windows,macos,linux)
	OS string `json:"os"`
	// The target architecture for compiled languages. (possible values: current,x64,x86,arm32,arm64)
	Arch string `json:"arch"`
}

type NewClientData

type NewClientData struct {
	// Lang contains the chosen programming language (in case one module supports multiple languages).
	Lang string `json:"lang"`
	// Name contains the name of the game.
	Name string `json:"name"`
	// URL contains the URL of the game server.
	URL string `json:"url"`
	// LibraryVersion contains the version of the client library to use. (e.g. 0.9.2)
	LibraryVersion string `json:"library_version"`
}

type NewServerData

type NewServerData struct {
	// Lang contains the chosen programming language (in case one module supports multiple languages).
	Lang string `json:"lang"`
	// LibraryVersion contains the version of the server library to use. (e.g. 0.9.2)
	LibraryVersion string `json:"library_version"`
}

type RunData

type RunData struct {
	// Lang contains the chosen programming language (in case one module supports multiple languages).
	Lang string `json:"lang"`
	// Args contains a list of command line arguments for the application.
	Args []string `json:"args"`
}

type UpdateData

type UpdateData struct {
	// Lang contains the chosen programming language (in case one module supports multiple languages).
	Lang string `json:"lang"`
	// LibraryVersion contains the new version of the library to use. (e.g. 0.9.2)
	LibraryVersion string `json:"library_version"`
}

Jump to

Keyboard shortcuts

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