Documentation ¶
Index ¶
- Variables
- type Attack
- type Attributes
- type Card
- type CommandTable
- type CommandTableEntry
- type Consumable
- type DropTable
- type DropTableEntry
- type EquipBonus
- type Image
- type Item
- type Material
- type Member
- type ProvidesHealing
- type RawMaster
- func (rw *RawMaster) GenerateEnemy(name string) components.GameComponentList
- func (rw *RawMaster) GenerateFighter(name string) components.GameComponentList
- func (rw *RawMaster) GenerateItem(name string, locationType gc.ItemLocationType) components.GameComponentList
- func (rw *RawMaster) GenerateMaterial(name string, amount int, locationType gc.ItemLocationType) components.GameComponentList
- func (rw *RawMaster) GenerateMember(name string, inParty bool) components.GameComponentList
- func (rw *RawMaster) GenerateRecipe(name string) components.GameComponentList
- func (rw *RawMaster) GetCommandTable(name string) CommandTable
- func (rw *RawMaster) GetDropTable(name string) DropTable
- type Raws
- type Recipe
- type RecipeInput
- type SpriteSheet
- type ValueType
- type Wearable
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidEnumType = errors.New("enumに無効な値が指定された")
Functions ¶
This section is empty.
Types ¶
type Attributes ¶ added in v1.19.0
type CommandTable ¶ added in v1.61.0
type CommandTable struct { Name string Entries []CommandTableEntry `toml:"entries"` }
func (CommandTable) SelectByWeight ¶ added in v1.61.0
func (ct CommandTable) SelectByWeight() string
type CommandTableEntry ¶ added in v1.61.0
type Consumable ¶
type DropTable ¶ added in v1.65.0
type DropTable struct { Name string XpBase float64 Entries []DropTableEntry `toml:"entries"` }
func (DropTable) SelectByWeight ¶ added in v1.65.0
type DropTableEntry ¶ added in v1.65.0
type EquipBonus ¶ added in v1.20.0
type Item ¶
type Item struct { Name string Description string InflictsDamage int Consumable *Consumable `toml:"consumable"` ProvidesHealing *ProvidesHealing `toml:"provides_healing"` Wearable *Wearable `toml:"wearable"` EquipBonus *EquipBonus `toml:"equip_bonus"` Card *Card `toml:"card"` Attack *Attack `toml:"attack"` }
items ================
type Member ¶
type Member struct { Name string Attributes Attributes `toml:"attributes"` }
member ================
type ProvidesHealing ¶ added in v1.20.1
type RawMaster ¶
type RawMaster struct { Raws Raws ItemIndex map[string]int MaterialIndex map[string]int RecipeIndex map[string]int MemberIndex map[string]int CommandTableIndex map[string]int DropTableIndex map[string]int SpriteSheetIndex map[string]int }
func LoadFromFile ¶
func (*RawMaster) GenerateEnemy ¶ added in v1.52.0
func (rw *RawMaster) GenerateEnemy(name string) components.GameComponentList
func (*RawMaster) GenerateFighter ¶ added in v1.52.0
func (rw *RawMaster) GenerateFighter(name string) components.GameComponentList
func (*RawMaster) GenerateItem ¶
func (rw *RawMaster) GenerateItem(name string, locationType gc.ItemLocationType) components.GameComponentList
func (*RawMaster) GenerateMaterial ¶
func (rw *RawMaster) GenerateMaterial(name string, amount int, locationType gc.ItemLocationType) components.GameComponentList
func (*RawMaster) GenerateMember ¶
func (rw *RawMaster) GenerateMember(name string, inParty bool) components.GameComponentList
func (*RawMaster) GenerateRecipe ¶
func (rw *RawMaster) GenerateRecipe(name string) components.GameComponentList
func (*RawMaster) GetCommandTable ¶ added in v1.61.0
func (rw *RawMaster) GetCommandTable(name string) CommandTable
func (*RawMaster) GetDropTable ¶ added in v1.65.0
type Raws ¶
type Raws struct { Items []Item `toml:"item"` Materials []Material `toml:"material"` Recipes []Recipe `toml:"recipe"` Members []Member `toml:"member"` CommandTables []CommandTable `toml:"command_table"` DropTables []DropTable `toml:"drop_table"` SpriteSheets []SpriteSheet `toml:"sprite_sheet"` }
type Recipe ¶
type Recipe struct { Name string Inputs []RecipeInput `toml:"inputs"` }
recipe ================
type SpriteSheet ¶ added in v1.63.0
Click to show internal directories.
Click to hide internal directories.