Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultLocation() string
- func GenerateTLSKeyPair(at string) error
- func ListHomeConfigs(dir string) ([]string, error)
- func ListWorldConfigs(dir string) ([]string, error)
- func WorldExists(at string) bool
- type Home
- type HomeFile
- type Realm
- type RealmType
- type RealmsFile
- type World
- type WorldFile
- type WorldVarType
- type WorldVars
Constants ¶
View Source
const ( RealmTypeNone = 0 RealmTypePvP = 1 RealmTypeNormal = 4 RealmTypeRP = 6 RealmTypeRP_PvP = 8 )
View Source
const DefaultWorld = `` /* 1533-byte string literal not displayed */
Variables ¶
View Source
var (
ErrAlreadyExists = fmt.Errorf("config: already exists")
)
View Source
var (
Presets map[RealmType]WorldVars
)
View Source
var WorldVarList = map[string]WorldVarType{ "XP.Rate": Uint, "Network.ConnectionsPerAddress": Int, "Network.SessionsPerAccount": Int, "Network.MaxPlayers": Int, "Network.WaitQueue": Bool, "Sync.VisibilityRange": Float, "PvP.CombatantUponEnteringContestedTerritory": Bool, "PvP.Deathmatch": Bool, "PvP.AtWar": Bool, "PvP.CrossFactionGroups": Bool, "PvP.AllowTreason": Bool, "Chat.LanguageBarrier": Bool, "Chat.MutualIntelligibility": Bool, "Chat.HostAnnounceChannel": Bool, "Char.AllowSpecialCombos": Bool, "Char.StartLevel": Int, "Char.Cinematic": Bool, "Char.StartPosition": String, "Item.Binding": Bool, "Item.LootQuality": Float, "Item.IgnoreRestrictions": Bool, "Weather.On": Bool, "Weather.Crazy": Bool, }
Functions ¶
func DefaultLocation ¶
func DefaultLocation() string
func GenerateTLSKeyPair ¶
func ListHomeConfigs ¶
List all home configs in the chosen Gophercraft root directory. On a typical deployment, it will return []string{"Home"}, nil
func ListWorldConfigs ¶
List all World configs in the chosen Gophercraft root directory.
func WorldExists ¶
Types ¶
type Home ¶
type Home struct {
Dir string
Certificate tls.Certificate
HomeFile
}
func (*Home) Fingerprint ¶
func (*Home) GenerateKeyPair ¶
type RealmsFile ¶
type World ¶
type World struct {
Dir string
WorldFile
Certificate tls.Certificate
}
func (*World) Fingerprint ¶
func (*World) GenerateKeyPair ¶
type WorldFile ¶
type WorldFile struct {
Version vsn.Build
Listen string
Redirect string
PublicRedirect string
RealmID uint64
Timezone i18n.Timezone
RealmType RealmType
RealmName string
RealmDescription string
FederalSovereignty bool
DBDriver string
DBURL string
PublicAddress string
WardenEnabled bool
ShowSQL bool
HomeServer string
HomeServerFingerprint string
CPUProfile string
WorldVars WorldVars
}
Click to show internal directories.
Click to hide internal directories.