mbases_mapped

package
v0.51.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILENAME = "mbases.ini"
)

Variables

This section is empty.

Functions

func FactionRephacks

func FactionRephacks(config *Config) map[string]map[string]float64

Types

type Base

type Base struct {
	semantic.Model

	Nickname     *semantic.String
	LocalFaction *semantic.String
	Diff         *semantic.Int

	BaseFactions    []*BaseFaction
	BaseFactionsMap map[string]*BaseFaction
	NPCs            []*NPC
	Bar             *Mroom
}

type BaseChance

type BaseChance struct {
	Base   string
	Chance float64
}

type BaseFaction

type BaseFaction struct {
	semantic.Model

	Faction *semantic.String
	Weight  *semantic.Int
	Npcs    []*semantic.String
}

type Bribe

type Bribe struct {
	semantic.Model
	Faction *semantic.String
}

type Config

type Config struct {
	semantic.ConfigModel

	File    *iniload.IniLoader
	Bases   []*Base
	BaseMap map[string]*Base
}

func Read

func Read(input_file *iniload.IniLoader) *Config

func (*Config) Write

func (frelconfig *Config) Write() *file.File

type Know

type Know struct {
	semantic.Model
}

type Mission

type Mission struct {
	semantic.Model
}

type Mroom

type Mroom struct {
	semantic.Model
	Nickname         *semantic.String
	CharacterDensity *semantic.Int
	Bartrender       *semantic.String
}

type NPC

type NPC struct {
	semantic.Model

	Nickname    *semantic.String
	Room        *semantic.String
	Bribes      []*Bribe
	Rumors      []*Rumor
	Missions    []*Mission
	Knows       []*Know
	Affiliation *semantic.String
}

type Rumor

type Rumor struct {
	semantic.Model
}

Jump to

Keyboard shortcuts

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