Documentation ¶
Index ¶
Constants ¶
View Source
const ( CharacterRaceDefault = "Human" CharacterSexualityHeterosexual = 0 CharacterSexualityHomosexual = 2 CharacterSexualityBisexual = 3 CharacterSexualityAsexual = 4 )
View Source
const ( LocationTypeWorld = 0 LocationTypeContinent = 1 LocationTypeCountry = 2 LocationTypeProvince = 3 LocationTypeCity = 4 LocationTypeTown = 5 LocationTypeVillage = 6 LocationTypeHamlet = 7 LocationTypeThorp = 8 LocationTypeDistrict = 9 LocationTypeUnit = 10 )
Variables ¶
View Source
var ( CharacterSexualities = []uint8{ CharacterSexualityHeterosexual, CharacterSexualityHomosexual, CharacterSexualityBisexual, CharacterSexualityAsexual, } CharacterSexualitiesWeights = []uint{10, 4, 1, 1} )
View Source
var ( LargeLocationTypes = []uint8{LocationTypeContinent, LocationTypeCountry, LocationTypeProvince} CityLocationTypes = []uint8{LocationTypeCity, LocationTypeTown, LocationTypeVillage, LocationTypeHamlet, LocationTypeThorp} LocalLocationTypes = []uint8{LocationTypeDistrict, LocationTypeUnit} SmallestLocationType uint8 = LocationTypeUnit )
Functions ¶
func GenerateCityLocationType ¶
func GenerateCityLocationType() uint8
func GenerateLargeLocationType ¶
func GenerateLargeLocationType() uint8
func GenerateLocalLocationType ¶
func GenerateLocalLocationType() uint8
Types ¶
type Campaign ¶
type Campaign struct { Name string ID primitive.ObjectID `bson:"_id,omitempty"` StartDate uint PlayerCharacters []*Character }
func NewCampaign ¶
type Character ¶
type Character struct { ID primitive.ObjectID `bson:"_id,omitempty"` Name string Race string Culture string Profession string Gender string Sexuality uint8 Religion string Characteristics map[string]EntityTag `json:"-"` Level uint64 GenerationDelta int `json:"Generation Delta,omitempty"` YOBDelta int `json:"Year of Birth Delta,omitempty"` YODDelta int `json:"Year of Death Delta,omitempty"` DateDeltas []Date `json:"Date Deltas,omitempty"` MotherID primitive.ObjectID `json:"Mother ID,omitempty"` FatherID primitive.ObjectID `json:"Father ID,omitempty"` LocationID primitive.ObjectID `json:"Location ID,omitempty"` PC bool `json:"-"` }
func NewCharacter ¶
type Date ¶
type Date struct { Delta uint AddSpouseID uint `json:",omitempty" bson:",omitempty"` RemoveSpouseID uint `json:",omitempty" bson:",omitempty"` EmployerID uint `json:",omitempty" bson:",omitempty"` AddCharacteristic uint `json:",omitempty" bson:",omitempty"` RemoveCharacteristic uint `json:",omitempty" bson:",omitempty"` }
type Region ¶
type Region struct { Location Connections []*Region `json:"-" bson:"-"` Subregions []Region `json:",omitempty" bson:",omitempty"` }
func MakeRegion ¶
func (*Region) IsLargeLocation ¶
type Settlement ¶
Click to show internal directories.
Click to hide internal directories.