Versions in this module Expand all Collapse all v1 v1.0.0 Mar 10, 2024 Changes in this version + func ChooseTranslationTable(l *lua.LState, locale string) *lua.LFunction + func ParsePlayerTxt(content string) []string + func ToCaveLevelDataOverridesLua(overrides LevelDataOverrides) ([]byte, error) + func ToClusterInI(config ClusterConfig) ([]byte, error) + func ToMasterLevelDataOverridesLua(overrides LevelDataOverrides) ([]byte, error) + func ToModOverrideLua(options []ModOverRideOption) ([]byte, error) + func ToPlayerTxt(kleiIDs []string) ([]byte, error) + func ToServerInI(config ServerConfig) ([]byte, error) + type ChatLog struct + KleiId string + Msg string + Name string + Time string + Type string + func ParseServerChatLogs(content []byte) ([]ChatLog, error) + type ClusterConfig struct + GamePlay GamePlay + Misc Misc + NetWork ClusterNetwork + Shard ClusterShard + Steam ClusterSteam + func ParseClusterInI(data []byte) (ClusterConfig, error) + type ClusterNetwork struct + ClusterCloudId string + ClusterDescription string + ClusterLanguage string + ClusterName string + ClusterPassword string + LanOnly bool + Offline bool + TrickRate int + WhiteListSlots int + type ClusterShard struct + BindIP string + ClusterKey string + MasterIp string + MasterPort int + ShardEnable bool + type ClusterSteam struct + GroupAdmin bool + GroupId string + GroupOnly bool + type GamePlay struct + GameMode string + MaxPlayers int + PauseWhenEmpty bool + Pvp bool + VoteEnable bool + VoteKickEnable bool + type LevelDataOverrides struct + BackGroundNodeRange []float64 + Desc string + HideMiniMap bool + Id string + Location string + MaxPlayerListPosition float64 + MinPlayerListPosition float64 + Name string + NumRandomSetPieces int + OverrideLevelString bool + Overrides []LevelOverrideItem + PlayStyle string + RandomSetPieces []string + RequiredPrefabs []string + RequiredSetPieces []string + SettingDesc string + SettingId string + SettingName string + Substitutes []string + Version float64 + WorldGenDesc string + WorldGenId string + WorldGenName string + func ParseLevelDataOverrides(luaScript []byte) (LevelDataOverrides, error) + type LevelOverrideItem struct + Name string + Value any + type Misc struct + ConsoleEnable bool + MaxSnapShots int + type ModInfo struct + AllClientRequired bool + ApiVersion int + ApiVersionDst int + Author string + ClientOnly bool + ConfigurationOptions []ModOption + Description string + DontStarveCompatible bool + DstCompatible bool + FilterTags []string + ForgeCompatible bool + ForumThread string + HamletCompatible bool + Icon string + IconAtlas string + Id string + Name string + Priority float64 + ReignOfGiantsCompatible bool + ServerOnly bool + ShipWreckedCompatible bool + Version string + func ParseModInfo(luaScript []byte) (ModInfo, error) + func ParseModInfoWithEnv(luaScript []byte, folderName, locale string) (ModInfo, error) + type ModOption struct + Client bool + Default any + Hover string + Label string + Name string + Options []ModOptionItem + Tags []string + type ModOptionItem struct + Data any + Description string + type ModOverRideOption struct + Enabled bool + Id string + Items []ModOverRideOptionItem + func ParseModOverrides(luaScript []byte) ([]ModOverRideOption, error) + type ModOverRideOptionItem struct + Name string + Value any + type ServerAccount struct + EncodeUserPath bool + type ServerConfig struct + Account ServerAccount + Network ServerNetwork + Shard ServerShard + Steam ServerSteam + func ParseServerInI(data []byte) (ServerConfig, error) + type ServerNetwork struct + ServerPort int + type ServerShard struct + ID string + IsMaster bool + Name string + type ServerSteam struct + AuthenticationPort int + MasterServerPort int + type Table lua.LTable + func LTable(t *lua.LTable) *Table + func (t *Table) Get(key string) lua.LValue + func (t *Table) GetBool(key string) bool + func (t *Table) GetFloat64(key string) float64 + func (t *Table) GetInt64(key string) int64 + func (t *Table) GetString(key string) string + func (t *Table) GetTable(key string) *Table + func (t *Table) T() *lua.LTable