Documentation ¶
Index ¶
- Constants
- Variables
- func AdjustedSkill(port string, skill int) int
- func CanonicalName(port string) string
- func ConfigFileExtension(port string) string
- func Family(port string) (t int)
- func SaveDirParam(port string) string
- func SaveFileExtension(port string) string
- func SaveGameName(port, save string) string
Constants ¶
const ( Zdoom = iota Chocolate Boom ZdoomSaveExtension = ".zds.json" BoomSaveExtension = ".dsg" ChocolateSaveExtension = ".dsg" )
Variables ¶
var (
PortCanonicalNames = map[string]string{
"gzdoom": "gzdoom",
"zandronum": "zandronum",
"lzdoom": "lzdoom",
"crispy": "crispydoom",
"chocolate": "chocolatedoom",
"prboomplus": "prboomplus",
"boom": "boom",
"dsda-doom": "dsda",
"woof": "woof",
"na": "unknown_port",
}
)
Functions ¶
func AdjustedSkill ¶
AdjustedSkill for source port default(zdoom): 0-4 (documenation seems wrong?, so 1-5) chocolate: 1-5 boom: 1-5
func CanonicalName ¶
CanonicalName translates the given port name to a canonical version by looking it up
func ConfigFileExtension ¶
ConfigFileExtension returns the file extension of config files for the give port
func Family ¶
Family checks the games engine type by inspecting the string known keyphrases will be interpreted as a certain source port family
func SaveDirParam ¶
SaveDirParam returns the right paramter key for specifying the savegame directory accounts for zdoom-, chocolate-doom and boom ports at the moments
func SaveFileExtension ¶
SaveFileExtension gives the appropriate file extension adjusted for the games source port
func SaveGameName ¶
SaveGameName gives the appropriate syntax for save names adjusted for the games source port
Types ¶
This section is empty.