Documentation
¶
Index ¶
- func FragName(fragCode int) string
- func NewFrag(r io.ReadSeeker) helper.FragmentReadWriter
- type Ani
- type AniBone
- type AniBoneFrame
- type Bmp
- type Dat
- type DatArea
- type DatLayer
- type DatLightEffect
- type DatSinglePlacable
- type DatTile
- type DatTogRef
- type Dds
- type Edd
- type Lay
- type LayEntry
- type Light
- type Lit
- type Lod
- type LodEntry
- type MaterialParamType
- type Mds
- type MdsBoneWeight
- type MdsModel
- type Mod
- type ModBone
- type ModFace
- type ModFaceFlag
- type ModMaterial
- type ModMaterialAnimation
- type ModMaterialParam
- type ModVertex
- type Png
- type Prt
- type PrtEntry
- type Pts
- type PtsEntry
- type ReadWriter
- type Reader
- type Ter
- type Tog
- type TogEntry
- type Txt
- type Unk
- type V4Dat
- type V4DatTile
- type V4Info
- type Wld
- func (wld *Wld) FileName() string
- func (wld *Wld) Identity() string
- func (wld *Wld) Name(id int32) string
- func (wld *Wld) NameAdd(name string) int32
- func (wld *Wld) NameClear()
- func (wld *Wld) NameData() []byte
- func (wld *Wld) NameIndex(name string) int32
- func (wld *Wld) NameOffset(name string) int32
- func (wld *Wld) NameSet(newNames map[int32]string)
- func (wld *Wld) Read(r io.ReadSeeker) error
- func (wld *Wld) SetFileName(name string)
- func (wld *Wld) String() string
- func (wld *Wld) TagByFrag(srcFrag interface{}) string
- func (wld *Wld) Write(w io.Writer) error
- type WldAscii
- type Writer
- type Zon
- type ZonArea
- type ZonInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFrag ¶
func NewFrag(r io.ReadSeeker) helper.FragmentReadWriter
Types ¶
type Ani ¶
type Ani struct { MetaFileName string Version uint32 Bones []*AniBone IsStrict bool // contains filtered or unexported fields }
func (*Ani) SetFileName ¶
SetFileName sets the name of the file
type AniBone ¶
type AniBone struct { Name string Frames []*AniBoneFrame }
type AniBoneFrame ¶
type AniBoneFrame struct { Milliseconds uint32 Translation [3]float32 Rotation [4]float32 Scale [3]float32 }
AniBoneFrame is a bone animation frame
type Bmp ¶
Bmp takes a raw BMP type and converts it to png
func (*Bmp) SetFileName ¶
SetFileName sets the name of the file
type Dat ¶
type Dat struct { MetaFileName string Version uint32 Unk1 uint32 Unk2 uint32 Unk3 uint32 BaseTileTexture string QuadsPerTile int Tiles []*DatTile }
func (*Dat) Read ¶
func (dat *Dat) Read(r io.ReadSeeker) error
Decode reads a v4 zone dat file https://github.com/EQEmu/zone-utilities/blob/master/src/common/eqg_v4_loader.cpp#L115
func (*Dat) SetFileName ¶
SetName sets the name of the file
type DatLightEffect ¶
type DatSinglePlacable ¶
type DatTile ¶
type DatTile struct { Lng int32 Lat int32 Unk1 uint32 Floats []float32 Colors []uint32 Colors2 []uint32 Flags []uint8 BaseWaterLevel float32 Unk2 int32 Unk3 int8 Unk3Quad [4]float32 Unk3Float float32 LayerBaseMaterial string Layers []*DatLayer SinglePlacables []*DatSinglePlacable Areas []*DatArea LightEffects []*DatLightEffect TogRefs []*DatTogRef }
type Dds ¶
Dds takes a raw DDS type and converts it to an image.Image friendly format
func (*Dds) SetFileName ¶
SetFileName sets the name of the file
type Edd ¶
type Edd struct {
MetaFileName string
}
Edd contations particle definitions used by prt examples are in eq root, actoremittersnew.edd, environmentemittersnew.edd, spellsnew.edd
func (*Edd) SetFileName ¶
SetFileName sets the name of the file
type Lay ¶
type Lay struct { MetaFileName string Version uint32 Layers []*LayEntry // contains filtered or unexported fields }
Lay is a raw layer struct
func (*Lay) SetFileName ¶
SetFileName sets the name of the file
type Lit ¶
func (*Lit) SetFileName ¶
SetFileName sets the name of the file
type Lod ¶
LOD is level of detail information Typical usaeg is like so:
EQLOD LOD,OBJ_FIREPIT_STMFT,150 LOD,OBJ_FIREPIT_STMFT_LOD1,250 LOD,OBJ_FIREPIT_STMFT_LOD2,400 LOD,OBJ_FIREPIT_STMFT_LOD3,1000
func (*Lod) SetFileName ¶
SetFileName sets the name of the file
type MaterialParamType ¶ added in v1.4.302
type MaterialParamType uint32
const ( MaterialParamTypeUnused MaterialParamType = iota MaterialParamTypeInt MaterialParamTypeTexture MaterialParamTypeColor )
type Mds ¶
type Mds struct { MetaFileName string Version uint32 Materials []*ModMaterial Bones []*ModBone //MainNameIndex int32 //SubNameIndex int32 Models []*MdsModel // contains filtered or unexported fields }
func (*Mds) SetFileName ¶
SetFileName sets the name of the file
type MdsBoneWeight ¶ added in v1.4.302
type MdsModel ¶ added in v1.4.302
type MdsModel struct { MainPiece uint32 // 0: no, 1: yes, head is a mainpiece Name string Vertices []*ModVertex Faces []*ModFace BoneAssignments [][4]*MdsBoneWeight }
type Mod ¶
type Mod struct { MetaFileName string Version uint32 Materials []*ModMaterial Vertices []*ModVertex Faces []ModFace Bones []*ModBone // contains filtered or unexported fields }
func (*Mod) SetFileName ¶
SetFileName sets the name of the file
type ModBone ¶ added in v1.4.302
type ModBone struct { Name string Next int32 ChildrenCount uint32 ChildIndex int32 Pivot [3]float32 Quaternion [4]float32 Scale [3]float32 }
ModBone is a bone
type ModFaceFlag ¶ added in v1.4.302
type ModFaceFlag uint32
const ( ModFaceFlagNone ModFaceFlag = 0x00 ModFaceFlagPassable ModFaceFlag = 0x01 ModFaceFlagTransparent ModFaceFlag = 0x02 ModFaceFlagCollisionRequired ModFaceFlag = 0x04 ModFaceFlagCulled ModFaceFlag = 0x08 ModFaceFlagDegenerate ModFaceFlag = 0x10 )
type ModMaterial ¶ added in v1.4.302
type ModMaterial struct { ID int32 Name string EffectName string Flags uint32 Properties []*ModMaterialParam Animation ModMaterialAnimation }
type ModMaterialAnimation ¶ added in v1.4.302
type ModMaterialParam ¶ added in v1.4.302
type ModMaterialParam struct { Name string Type MaterialParamType Value string Data []byte }
ModMaterialParam is a material property
type ModVertex ¶ added in v1.4.302
type ModVertex struct { Position [3]float32 Normal [3]float32 Tint [4]uint8 Uv [2]float32 Uv2 [2]float32 }
ModVertex is a vertex
type Png ¶
Png takes a raw PNG type and converts it to an image.Image friendly format
func (*Png) SetFileName ¶
SetFileName sets the name of the file
type PrtEntry ¶
type PrtEntry struct { ID uint32 ID2 uint32 ParticlePoint string //ParticlePointSuffix []byte UnknownA1 uint32 UnknownA2 uint32 UnknownA3 uint32 UnknownA4 uint32 UnknownA5 uint32 Duration uint32 UnknownB uint32 UnknownFFFFFFFF int32 UnknownC uint32 }
PrtEntry is ParticleRender entry
type PtsEntry ¶
type PtsEntry struct { Name string BoneName string Translation [3]float32 Rotation [3]float32 Scale [3]float32 }
PtsEntry is a single entry in a particle point
type ReadWriter ¶
func New ¶
func New(ext string) ReadWriter
New takes an extension and returns a ReadWriter that can parse it
func Read ¶
func Read(ext string, r io.ReadSeeker) (ReadWriter, error)
Read takes an extension and a reader and returns a ReadWriter that can parse it
type Reader ¶
type Reader interface { Identity() string Read(r io.ReadSeeker) error SetFileName(name string) }
type Ter ¶
type Ter struct { MetaFileName string Version uint32 Materials []*ModMaterial Vertices []ModVertex Faces []ModFace // contains filtered or unexported fields }
func (*Ter) SetFileName ¶
SetFileName sets the name of the file
type Tog ¶
func (*Tog) SetFileName ¶
SetFileName sets the name of the file
type Unk ¶
Unk is a fallback type for raw data we can't parse
func (*Unk) SetFileName ¶
SetFileName sets the name of the file
type Wld ¶
type Wld struct { MetaFileName string Version uint32 IsNewWorld bool IsZone bool Fragments []helper.FragmentReadWriter Unk2 uint32 Unk3 uint32 // contains filtered or unexported fields }
func (*Wld) NameClear ¶ added in v1.4.187
func (wld *Wld) NameClear()
NameClear purges names and namebuf, called when encode starts
func (*Wld) NameIndex ¶ added in v1.4.187
NameIndex is used when reading, returns the index of a name, or -1 if not found
func (*Wld) NameOffset ¶ added in v1.4.187
func (*Wld) NameSet ¶ added in v1.4.187
NameSet is used during reading, sets the names within a buffer
func (*Wld) Read ¶
func (wld *Wld) Read(r io.ReadSeeker) error
Read reads a wld file that was prepped by Load
func (*Wld) SetFileName ¶
SetFileName sets the name of the file
type WldAscii ¶
func (*WldAscii) Read ¶
func (wld *WldAscii) Read(r io.ReadSeeker) error
Read reads a wld file that was prepped by Load
func (*WldAscii) SetFileName ¶
SetFileName sets the name of the file
type Zon ¶
type Zon struct { MetaFileName string Version uint32 Models []string Objects []ZonInstance Regions []ZonArea Lights []Light V4Info V4Info V4Dat V4Dat // contains filtered or unexported fields }
Zon is a zone EQGZ header
func (*Zon) ReadV4 ¶
func (zon *Zon) ReadV4(r io.ReadSeeker) error
Decode reads a v4 ZON file https://github.com/EQEmu/zone-utilities/blob/master/src/common/eqg_v4_loader.cpp#L736
func (*Zon) SetFileName ¶
SetFileName sets the name of the file
Source Files
¶
- ani_read.go
- ani_write.go
- bmp_read.go
- bmp_write.go
- dat_read.go
- dat_write.go
- dds_read.go
- dds_write.go
- edd_read.go
- edd_write.go
- eqg_name.go
- frag.go
- lay_read.go
- lay_write.go
- lit_read.go
- lit_write.go
- lod_read.go
- lod_write.go
- mds_read.go
- mds_write.go
- mod_read.go
- mod_write.go
- png_read.go
- png_write.go
- prt_read.go
- prt_write.go
- pts_read.go
- pts_write.go
- raw.go
- ter_read.go
- ter_write.go
- tog_read.go
- tog_write.go
- txt_read.go
- txt_write.go
- unk_read.go
- unk_write.go
- wld_ascii_read.go
- wld_ascii_write.go
- wld_read.go
- wld_write.go
- zon_read.go
- zon_read_v4.go
- zon_write.go
- zon_write_v4.go