Documentation ¶
Index ¶
- func ExecuteBuild(data BuildData, cgData *cgfile.CodeGameFileData) error
- func ExecuteNewClient(data NewClientData) error
- func ExecuteNewServer(data NewServerData) error
- func ExecuteRun(data RunData, cgData *cgfile.CodeGameFileData) error
- func ExecuteUpdate(data UpdateData, cgData *cgfile.CodeGameFileData) error
- func ReadCommandConfig[T any]() (T, error)
- type BuildData
- type NewClientData
- type NewServerData
- type RunData
- type UpdateData
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 ¶
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 UpdateData ¶
Click to show internal directories.
Click to hide internal directories.