Documentation
¶
Index ¶
- func Import(db *sql.DB, r io.Reader) error
- func InsertActivityMaterialsStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertActivityProbabilitiesStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertActivityProductsStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertActivitySkillsStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertIndustryActivitiesStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertIndustryBlueprintsStmt(tx *sql.Tx) (*sql.Stmt, error)
- type Activities
- type Activity
- type ActivityID
- type Blueprint
- type Copying
- type Invention
- type Manufacturing
- type Material
- type ProductionActivity
- type Reaction
- type ResearchMaterial
- type ResearchTime
- type Skill
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activities ¶
type Activities struct { Copying *Copying Invention *Invention Manufacturing *Manufacturing Reaction *Reaction ResearchMaterial *ResearchMaterial `yaml:"research_material"` ResearchTime *ResearchTime `yaml:"research_time"` }
type Activity ¶
type Activity interface { GetTime() int64 ActivityID() ActivityID }
type ActivityID ¶
type ActivityID int
const ( ManufacturingID ActivityID = 1 ResearchTimeID ActivityID = 3 ResearchMaterialID ActivityID = 4 CopyingID ActivityID = 5 InventionID ActivityID = 8 ReactionID ActivityID = 11 )
type Blueprint ¶
type Blueprint struct { Activities Activities TypeID int64 `yaml:"blueprintTypeID"` MaxProductionLimit int64 `yaml:"maxProductionLimit"` }
type Copying ¶
type Copying struct {
Time int64
}
func (*Copying) ActivityID ¶
func (c *Copying) ActivityID() ActivityID
type Invention ¶
func (*Invention) ActivityID ¶
func (i *Invention) ActivityID() ActivityID
func (*Invention) GetMaterials ¶
func (*Invention) GetProducts ¶
type Manufacturing ¶
func (*Manufacturing) ActivityID ¶
func (m *Manufacturing) ActivityID() ActivityID
func (*Manufacturing) GetMaterials ¶
func (m *Manufacturing) GetMaterials() []Material
func (*Manufacturing) GetProducts ¶
func (m *Manufacturing) GetProducts() []Material
func (*Manufacturing) GetSkills ¶
func (m *Manufacturing) GetSkills() []Skill
func (*Manufacturing) GetTime ¶
func (m *Manufacturing) GetTime() int64
type ProductionActivity ¶
type Reaction ¶
func (*Reaction) ActivityID ¶
func (r *Reaction) ActivityID() ActivityID
func (*Reaction) GetMaterials ¶
func (*Reaction) GetProducts ¶
type ResearchMaterial ¶
type ResearchMaterial struct {
Time int64
}
func (*ResearchMaterial) ActivityID ¶
func (r *ResearchMaterial) ActivityID() ActivityID
func (*ResearchMaterial) GetTime ¶
func (r *ResearchMaterial) GetTime() int64
type ResearchTime ¶
type ResearchTime struct {
Time int64
}
func (*ResearchTime) ActivityID ¶
func (r *ResearchTime) ActivityID() ActivityID
func (*ResearchTime) GetTime ¶
func (r *ResearchTime) GetTime() int64
Click to show internal directories.
Click to hide internal directories.