cgfile

package
v0.0.0-...-d3cc92b Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FeedbackPkg = feedback.Package("cgfile")

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() (string, error)

func FindProjectRootRelative

func FindProjectRootRelative() (string, error)

Types

type CodeGameFileData

type CodeGameFileData struct {
	GameName    string           `json:"game_name"`
	GameVersion string           `json:"game_version,omitempty"`
	ProjectType string           `json:"project_type"`
	Language    string           `json:"language"`
	LangConfig  map[string]any   `json:"lang_config,omitempty"`
	GameURL     string           `json:"game_url,omitempty"`
	ModVersion  versions.Version `json:"mod_version,omitempty"`
}

func Load

func Load(projectRoot string) (*CodeGameFileData, error)

func (*CodeGameFileData) Write

func (c *CodeGameFileData) Write(dir string) error

Jump to

Keyboard shortcuts

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