config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigParameters

type ConfigParameters struct {
	FoodOnPlatform food.FoodType `json:"FoodOnPlatform"`
	Team1Agents    int           `json:"Team1Agents"`
	Team2Agents    int           `json:"Team2Agents"`
	Team3Agents    int           `json:"Team3Agents"`
	Team4Agents    int           `json:"Team4Agents"`
	Team5Agents    int           `json:"Team5Agents"`
	Team6Agents    int           `json:"Team6Agents"`
	RandomAgents   int           `json:"RandomAgents"`
	AgentHP        int           `json:"AgentHP"`
	AgentsPerFloor int           `json:"AgentsPerFloor"`
	TicksPerFloor  int           `json:"TicksPerFloor"`
	SimDays        int           `json:"SimDays"`
	ReshuffleDays  int           `json:"ReshuffleDays"`
	MaxHP          int           `json:"maxHP"`
	WeakLevel      int           `json:"weakLevel"`
	Width          float64       `json:"width"`
	Tau            float64       `json:"tau"`
	HpReqCToW      int           `json:"hpReqCToW"`
	HpCritical     int           `json:"hpCritical"`
	MaxDayCritical int           `json:"maxDayCritical"`
	HPLossBase     int           `json:"HPLossBase"`
	HPLossSlope    float64       `json:"HPLossSlope"`
	NumOfAgents    []int
	NumberOfFloors int
	TicksPerDay    int
	DayInfo        *day.DayInfo
}

func LoadParamFromJson

func LoadParamFromJson(path string) (ConfigParameters, error)

Jump to

Keyboard shortcuts

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