npcgrid

package
v0.0.0-...-48f4d91 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sql

func Sql(srcYaml, dstSql string) error

func Yaml

func Yaml(path string, filters []string) error

Yaml takes database info and dumps to yaml

Types

type NpcYaml

type NpcYaml struct {
	ZoneID        int         `yaml:"zone_id,omitempty" db:"zoneid"`
	ZoneShortName string      `yaml:"zone_short_name,omitempty" db:"short_name"`
	Spawn2        []*Spawn2   `yaml:"spawn2,omitempty"`
	Grids         []*PathGrid `yaml:"grids,omitempty"`
}

type PathGrid

type PathGrid struct {
	Id      int              `yaml:"grid_id" db:"id"`              // int(10) NOT NULL DEFAULT 0,
	Zoneid  int              `yaml:"zoneid,omitempty" db:"zoneid"` // int(10) NOT NULL DEFAULT 0,
	Type    int              `yaml:"type" db:"type"`               // int(10) NOT NULL DEFAULT 0,
	Type2   int              `yaml:"type2" db:"type2"`             // int(10) NOT NULL DEFAULT 0,
	Entries []*PathGridEntry `yaml:"entries,omitempty" db:"entries"`
}

type PathGridEntry

type PathGridEntry struct {
	Gridid      int     `yaml:"gridid,omitempty" db:"gridid"` // int(10) NOT NULL DEFAULT 0,
	Zoneid      int     `yaml:"zoneid,omitempty" db:"zoneid"` // int(10) NOT NULL DEFAULT 0,
	Number      int     `yaml:"number" db:"number"`           // int(10) NOT NULL DEFAULT 0,
	X           float32 `yaml:"grid_x" db:"x"`                // float NOT NULL DEFAULT 0,
	Y           float32 `yaml:"grid_y" db:"y"`                // float NOT NULL DEFAULT 0,
	Z           float32 `yaml:"grid_z" db:"z"`                // float NOT NULL DEFAULT 0,
	Heading     float32 `yaml:"grid_heading" db:"heading"`    // float NOT NULL DEFAULT 0,
	Pause       int     `yaml:"pause" db:"pause"`             // int(10) NOT NULL DEFAULT 0,
	Centerpoint int     `yaml:"centerpoint" db:"centerpoint"` // tinyint(4) NOT NULL DEFAULT 0,
}

type Spawn2

type Spawn2 struct {
	ID           int     `yaml:"spawn2_id" db:"id"`               // int(11) NOT NULL AUTO_INCREMENT,
	SpawngroupID int     `yaml:"spawngroup_id" db:"spawngroupid"` // int(11) NOT NULL DEFAULT 0,
	Zone         string  `yaml:"zone,omitempty" db:"zone"`        // varchar(32) NOT NULL DEFAULT ”,
	X            float32 `yaml:"spawn_x" db:"x"`                  // float(14,6) NOT NULL DEFAULT 0.000000,
	Y            float32 `yaml:"spawn_y" db:"y"`                  // float(14,6) NOT NULL DEFAULT 0.000000,
	Z            float32 `yaml:"spawn_z" db:"z"`                  // float(14,6) NOT NULL DEFAULT 0.000000,
	Heading      float32 `yaml:"heading" db:"heading"`            // float(14,6) NOT NULL DEFAULT 0.000000,
	Pathgrid     int     `yaml:"pathgrid" db:"pathgrid"`          // int(11) NOT NULL DEFAULT 0,
}

Jump to

Keyboard shortcuts

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