raw

package
v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidEnumType = errors.New("enumに無効な値が指定された")

Functions

This section is empty.

Types

type Attack added in v1.21.0

type Attack struct {
	Accuracy       int    // 命中率
	Damage         int    // 攻撃力
	AttackCount    int    // 攻撃回数
	Element        string // 攻撃属性
	AttackCategory string // 攻撃種別
}

type Attributes added in v1.19.0

type Attributes struct {
	Vitality  int
	Strength  int
	Sensation int
	Dexterity int
	Agility   int
	Defense   int
}

type Card added in v1.21.0

type Card struct {
	Cost        int
	TargetGroup string
	TargetNum   string
}

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 CommandTableEntry struct {
	Card   string
	Weight float64
}

type Consumable

type Consumable struct {
	UsableScene string
	TargetGroup string
	TargetNum   string
}

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

func (ct DropTable) SelectByWeight() string

type DropTableEntry added in v1.65.0

type DropTableEntry struct {
	Material string
	Weight   float64
}

type EquipBonus added in v1.20.0

type EquipBonus struct {
	Vitality  int
	Strength  int
	Sensation int
	Dexterity int
	Agility   int
}

type Image added in v1.63.0

type Image struct {
	SheetName   string
	SheetNumber *int
}

resource の sprite sheet から画像を特定するために必要な情報

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 Material

type Material struct {
	Name        string
	Description string
}

material ================

type Member

type Member struct {
	Name       string
	Attributes Attributes `toml:"attributes"`
}

member ================

type ProvidesHealing added in v1.20.1

type ProvidesHealing struct {
	ValueType ValueType
	Amount    int
	Ratio     float64
}

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 Load

func Load(entityMetadataContent string) RawMaster

func LoadFromFile

func LoadFromFile(path string) RawMaster

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

func (rw *RawMaster) GetDropTable(name string) DropTable

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 RecipeInput

type RecipeInput struct {
	Name   string
	Amount int
}

合成の元になる素材

type SpriteSheet added in v1.63.0

type SpriteSheet struct {
	Name string
	// 戦闘時の立ち絵
	BattleBody *Image `toml:"battle_body"`
}

type ValueType added in v1.20.1

type ValueType string
const (
	PercentageType ValueType = "PERCENTAGE"
	NumeralType              = "NUMERAL"
)

func (ValueType) Valid added in v1.20.1

func (enum ValueType) Valid() error

type Wearable

type Wearable struct {
	Defense           int
	EquipmentCategory string
}

Jump to

Keyboard shortcuts

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