raw

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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
	TargetFaction string
	TargetNum     string
}

type Consumable

type Consumable struct {
	UsableScene   string
	TargetFaction string
	TargetNum     string
}

type EquipBonus added in v1.20.0

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

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"`
}

type Material

type Material struct {
	Name        string
	Description string
}

type Member

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

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
}

func Load

func Load(entityMetadataContent string) RawMaster

func LoadFromFile

func LoadFromFile(path string) RawMaster

func (*RawMaster) GenerateItem

func (rw *RawMaster) GenerateItem(name string, spawnType SpawnType) gloader.GameComponentList

func (*RawMaster) GenerateMaterial

func (rw *RawMaster) GenerateMaterial(name string, amount int, spawnType SpawnType) gloader.GameComponentList

func (*RawMaster) GenerateMember

func (rw *RawMaster) GenerateMember(name string, inParty bool) gloader.GameComponentList

func (*RawMaster) GenerateRecipe

func (rw *RawMaster) GenerateRecipe(name string) gloader.GameComponentList

type Raws

type Raws struct {
	Items     []Item     `toml:"item"`
	Materials []Material `toml:"material"`
	Recipes   []Recipe   `toml:"recipe"`
	Members   []Member   `toml:"member"`
}

type Recipe

type Recipe struct {
	Name   string
	Inputs []RecipeInput `toml:"inputs"`
}

レシピ

type RecipeInput

type RecipeInput struct {
	Name   string
	Amount int
}

合成の元になる素材

type SpawnType

type SpawnType string
var (
	SpawnInBackpack SpawnType = "IN_BACKPACK"
)

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