lumps

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2018 License: Unlicense Imports: 40 Imported by: 14

Documentation

Index

Constants

View Source
const MAX_MAP_LEAFS = 65536

Lump 10: Leaf

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 20: Areas

func (*Area) FromBytes

func (lump *Area) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Area) GetData

func (lump *Area) GetData() []primitives.Area

Get internal format structure data

func (*Area) ToBytes

func (lump *Area) ToBytes() []byte

Dump this lump back to raw byte data

type AreaPortal

type AreaPortal struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 21: Areaportals

func (*AreaPortal) FromBytes

func (lump *AreaPortal) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*AreaPortal) GetData

func (lump *AreaPortal) GetData() []primitives.AreaPortal

Get internal format structure data

func (*AreaPortal) ToBytes

func (lump *AreaPortal) ToBytes() []byte

Dump this lump back to raw byte data

type Brush

type Brush struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 18: Brush

func (*Brush) FromBytes

func (lump *Brush) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Brush) GetData

func (lump *Brush) GetData() []primitives.Brush

Get internal format structure data

func (*Brush) ToBytes

func (lump *Brush) ToBytes() []byte

Dump this lump back to raw byte data

type BrushSide

type BrushSide struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 19: BrushSide

func (*BrushSide) FromBytes

func (lump *BrushSide) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*BrushSide) GetData

func (lump *BrushSide) GetData() []primitives.BrushSide

Get internal format structure data

func (*BrushSide) ToBytes

func (lump *BrushSide) ToBytes() []byte

Dump this lump back to raw byte data

type ClipPortalVerts

type ClipPortalVerts struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 41: ClipPortalVerts

func (*ClipPortalVerts) FromBytes

func (lump *ClipPortalVerts) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*ClipPortalVerts) GetData

func (lump *ClipPortalVerts) GetData() []mgl32.Vec3

Get internal format structure data

func (*ClipPortalVerts) ToBytes

func (lump *ClipPortalVerts) ToBytes() []byte

Dump this lump back to raw byte data

type Cubemap

type Cubemap struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 42: Cubemaps

func (*Cubemap) FromBytes

func (lump *Cubemap) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Cubemap) GetData

func (lump *Cubemap) GetData() []primitives.CubemapSample

Get internal format structure data

func (*Cubemap) ToBytes

func (lump *Cubemap) ToBytes() []byte

Dump this lump back to raw byte data

type DispInfo

type DispInfo struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 26: DispInfo

func (*DispInfo) FromBytes

func (lump *DispInfo) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*DispInfo) GetData

func (lump *DispInfo) GetData() []primitives.DispInfo

Get internal format structure data

func (*DispInfo) ToBytes

func (lump *DispInfo) ToBytes() []byte

Dump this lump back to raw byte data

type DispLightmapSamplePosition

type DispLightmapSamplePosition struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 34: DispLightmapSamplePosition NOTE: This does NOT have a mapped format yet, and is readable as []byte only

func (*DispLightmapSamplePosition) FromBytes

func (lump *DispLightmapSamplePosition) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*DispLightmapSamplePosition) GetData

func (lump *DispLightmapSamplePosition) GetData() []byte

Get internal format structure data

func (*DispLightmapSamplePosition) ToBytes

func (lump *DispLightmapSamplePosition) ToBytes() []byte

Dump this lump back to raw byte data

type DispTris

type DispTris struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 48: DispTris

func (*DispTris) FromBytes

func (lump *DispTris) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*DispTris) GetData

func (lump *DispTris) GetData() []primitives.DispTri

Get internal format structure data

func (*DispTris) ToBytes

func (lump *DispTris) ToBytes() []byte

Dump this lump back to raw byte data

type DispVert

type DispVert struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 33: DispVert

func (*DispVert) FromBytes

func (lump *DispVert) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*DispVert) GetData

func (lump *DispVert) GetData() []primitives.DispVert

Get internal format structure data

func (*DispVert) ToBytes

func (lump *DispVert) ToBytes() []byte

Dump this lump back to raw byte data

type Edge

type Edge struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 12: Edge

func (*Edge) FromBytes

func (lump *Edge) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Edge) GetData

func (lump *Edge) GetData() [][2]uint16

Get internal format structure data

func (*Edge) ToBytes

func (lump *Edge) ToBytes() []byte

Dump this lump back to raw byte data

type EntData

type EntData struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 0: Entdata

func (*EntData) FromBytes

func (lump *EntData) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*EntData) GetData

func (lump *EntData) GetData() string

Get internal format structure data

func (*EntData) ToBytes

func (lump *EntData) ToBytes() []byte

Dump this lump back to raw byte data

type Face

type Face struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 7: Face

func (*Face) FromBytes

func (lump *Face) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Face) GetData

func (lump *Face) GetData() []primitives.Face

Get internal format structure data

func (*Face) ToBytes

func (lump *Face) ToBytes() []byte

Dump this lump back to raw byte data

type FaceHDR

type FaceHDR struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 58: FaceHDR

func (*FaceHDR) FromBytes

func (lump *FaceHDR) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*FaceHDR) GetData

func (lump *FaceHDR) GetData() []primitives.Face

Get internal format structure data

func (*FaceHDR) ToBytes

func (lump *FaceHDR) ToBytes() []byte

Dump this lump back to raw byte data

type FaceId

type FaceId struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 11: FaceIds

func (*FaceId) FromBytes

func (lump *FaceId) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*FaceId) GetData

func (lump *FaceId) GetData() []primitives.FaceId

Get internal format structure data

func (*FaceId) ToBytes

func (lump *FaceId) ToBytes() []byte

Dump this lump back to raw byte data

type FaceMacroTextureInfo

type FaceMacroTextureInfo struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 47: FaceMacroTextureInfo

func (*FaceMacroTextureInfo) FromBytes

func (lump *FaceMacroTextureInfo) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*FaceMacroTextureInfo) GetData

Get internal format structure data

func (*FaceMacroTextureInfo) ToBytes

func (lump *FaceMacroTextureInfo) ToBytes() []byte

Dump this lump back to raw byte data

type Game

type Game struct {
	LumpGeneric
	Header     primitives.Header
	GameLumps  []primitives.GenericGameLump
	LumpOffset int32
	// contains filtered or unexported fields
}

Lump 35. @TODO NOTE: This really needs per-game implementations to be completely useful, otherwise we only get staticprop data from it

func (*Game) FromBytes

func (lump *Game) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Game) GetData

func (lump *Game) GetData() *Game

Get internal format structure data

func (*Game) GetStaticPropLump

func (lump *Game) GetStaticPropLump() *primitives.StaticPropLump

func (*Game) ToBytes

func (lump *Game) ToBytes() []byte

Dump this lump back to raw byte data

func (*Game) UpdateInternalOffsets

func (lump *Game) UpdateInternalOffsets(fileOffset int32) *Game

This update the lumps offsets to be relative to the lump, rather than the bsp start

type ILump

type ILump interface {
	// Import a []byte to a defined lump structure(s).
	FromBytes([]byte, int32)

	// Export lump structure back to []byte.
	ToBytes() []byte
}

Lump interface. Organise Lump data in a cleaner and more accessible manner

type Leaf

type Leaf struct {
	LumpGeneric
	// contains filtered or unexported fields
}

func (*Leaf) FromBytes

func (lump *Leaf) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Leaf) GetData

func (lump *Leaf) GetData() []primitives.Leaf

Get internal format structure data

func (*Leaf) ToBytes

func (lump *Leaf) ToBytes() []byte

Dump this lump back to raw byte data

type LeafAmbientIndex

type LeafAmbientIndex struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 52: Leaf Ambient Index

func (*LeafAmbientIndex) FromBytes

func (lump *LeafAmbientIndex) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*LeafAmbientIndex) GetData

func (lump *LeafAmbientIndex) GetData() []primitives.LeafAmbientIndex

Get internal format structure data

func (*LeafAmbientIndex) ToBytes

func (lump *LeafAmbientIndex) ToBytes() []byte

Dump this lump back to raw byte data

type LeafAmbientIndexHDR

type LeafAmbientIndexHDR struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 51: Leaf Ambient Index HDR

func (*LeafAmbientIndexHDR) FromBytes

func (lump *LeafAmbientIndexHDR) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*LeafAmbientIndexHDR) GetData

Get internal format structure data

func (*LeafAmbientIndexHDR) ToBytes

func (lump *LeafAmbientIndexHDR) ToBytes() []byte

Dump this lump back to raw byte data

type LeafAmbientLighting

type LeafAmbientLighting struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 56: LeafAmbientLighting

func (*LeafAmbientLighting) FromBytes

func (lump *LeafAmbientLighting) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*LeafAmbientLighting) GetData

Get internal format structure data

func (*LeafAmbientLighting) ToBytes

func (lump *LeafAmbientLighting) ToBytes() []byte

Dump this lump back to raw byte data

type LeafAmbientLightingHDR

type LeafAmbientLightingHDR struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 55: LeafAmbientLightingHDR

func (*LeafAmbientLightingHDR) FromBytes

func (lump *LeafAmbientLightingHDR) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*LeafAmbientLightingHDR) GetData

Get internal format structure data

func (*LeafAmbientLightingHDR) ToBytes

func (lump *LeafAmbientLightingHDR) ToBytes() []byte

Dump this lump back to raw byte data

type LeafBrush

type LeafBrush struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 17: LeafBrush

func (*LeafBrush) FromBytes

func (lump *LeafBrush) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*LeafBrush) GetData

func (lump *LeafBrush) GetData() []uint16

Get internal format structure data

func (*LeafBrush) ToBytes

func (lump *LeafBrush) ToBytes() []byte

Dump this lump back to raw byte data

type LeafFace

type LeafFace struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 16: LeafFace

func (*LeafFace) FromBytes

func (lump *LeafFace) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*LeafFace) GetData

func (lump *LeafFace) GetData() []uint16

Get internal format structure data

func (*LeafFace) ToBytes

func (lump *LeafFace) ToBytes() []byte

Dump this lump back to raw byte data

type LeafMinDistToWater

type LeafMinDistToWater struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 46: LeafMinDistToWater

func (*LeafMinDistToWater) FromBytes

func (lump *LeafMinDistToWater) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*LeafMinDistToWater) GetData

func (lump *LeafMinDistToWater) GetData() []uint16

Get internal format structure data

func (*LeafMinDistToWater) ToBytes

func (lump *LeafMinDistToWater) ToBytes() []byte

Dump this lump back to raw byte data

type LeafWaterData

type LeafWaterData struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 36: leafwaterdata

func (*LeafWaterData) FromBytes

func (lump *LeafWaterData) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*LeafWaterData) GetData

func (lump *LeafWaterData) GetData() []primitives.LeafWaterData

Get internal format structure data

func (*LeafWaterData) ToBytes

func (lump *LeafWaterData) ToBytes() []byte

Dump this lump back to raw byte data

type Lighting

type Lighting struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 8: Lighting

func (*Lighting) FromBytes

func (lump *Lighting) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Lighting) GetData

func (lump *Lighting) GetData() []primitives.ColorRGBExponent32

Get internal format structure data

func (*Lighting) ToBytes

func (lump *Lighting) ToBytes() []byte

Dump this lump back to raw byte data

type LumpGeneric

type LumpGeneric struct {
	LumpInfo
	// contains filtered or unexported fields
}

func (*LumpGeneric) FromBytes

func (lump *LumpGeneric) FromBytes(data []byte, length int32)

Import this lump from raw byte data

func (*LumpGeneric) ToBytes

func (lump *LumpGeneric) ToBytes() []byte

Dump this lump back to raw byte data

type LumpInfo

type LumpInfo struct {
	// contains filtered or unexported fields
}

Helper info for a lump

func (LumpInfo) GetLength

func (info LumpInfo) GetLength() int32

Return lump import length in bytes.

func (LumpInfo) SetLength

func (info LumpInfo) SetLength(length int32)

Set lump import length in bytes

func (LumpInfo) SetVersion

func (info LumpInfo) SetVersion(version int32)

Set bsp version of lump

type MapFlags

type MapFlags struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 59: MapFlags

func (*MapFlags) FromBytes

func (lump *MapFlags) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*MapFlags) GetData

func (lump *MapFlags) GetData() *primitives.MapFlags

Get internal format structure data

func (*MapFlags) ToBytes

func (lump *MapFlags) ToBytes() []byte

Dump this lump back to raw byte data

type Model

type Model struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 14: Model

func (*Model) FromBytes

func (lump *Model) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Model) GetData

func (lump *Model) GetData() []primitives.Model

Get internal format structure data

func (*Model) ToBytes

func (lump *Model) ToBytes() []byte

Dump this lump back to raw byte data

type Node

type Node struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 5: Node

func (*Node) FromBytes

func (lump *Node) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Node) GetData

func (lump *Node) GetData() []primitives.Node

Get internal format structure data

func (*Node) ToBytes

func (lump *Node) ToBytes() []byte

Dump this lump back to raw byte data

type Occlusion

type Occlusion struct {
	LumpGeneric
	Count            int32
	Data             []primitives.OcclusionData // len(slice) = Count
	PolyDataCount    int32
	PolyData         []primitives.OcclusionPolyData //len(slice) = PolyDataCount
	VertexIndexCount int32
	VertexIndices    []int32 //len(slice) = VertexIndexCount
}

Lump 9: Occlusion

func (*Occlusion) FromBytes

func (lump *Occlusion) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Occlusion) GetData

func (lump *Occlusion) GetData() *Occlusion

Get internal format structure data

func (*Occlusion) ToBytes

func (lump *Occlusion) ToBytes() []byte

Dump this lump back to raw byte data

type Overlay

type Overlay struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 45: Overlay Consists of an array of Overlay structs

func (*Overlay) FromBytes

func (lump *Overlay) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Overlay) GetData

func (lump *Overlay) GetData() []primitives.Overlay

Get internal format structure data

func (*Overlay) ToBytes

func (lump *Overlay) ToBytes() []byte

Dump this lump back to raw byte data

type OverlayFade

type OverlayFade struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 60: Overlayfades

func (*OverlayFade) FromBytes

func (lump *OverlayFade) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*OverlayFade) GetData

func (lump *OverlayFade) GetData() []primitives.OverlayFade

Get internal format structure data

func (*OverlayFade) ToBytes

func (lump *OverlayFade) ToBytes() []byte

Dump this lump back to raw byte data

type Pakfile

type Pakfile struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 40: Pakfile

func (*Pakfile) FromBytes

func (lump *Pakfile) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Pakfile) GetData

func (lump *Pakfile) GetData() *zip.Reader

GetData Get internal format structure data

func (*Pakfile) GetFile

func (lump *Pakfile) GetFile(filePath string) ([]byte, error)

GetFile Get a specific file from the pak This function does have the expectation that filenames are case-insensitive, so in the (shouldn't happen) case of name collisions over case-insensitivity, there may be issues

func (*Pakfile) ToBytes

func (lump *Pakfile) ToBytes() []byte

ToBytes Returns the contents of this lump as a []byte

type PhysCollide

type PhysCollide struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 20: PhysCollide

func (*PhysCollide) FromBytes

func (lump *PhysCollide) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*PhysCollide) GetData

func (lump *PhysCollide) GetData() []primitives.PhysCollideEntry

Get internal format structure data

func (*PhysCollide) ToBytes

func (lump *PhysCollide) ToBytes() []byte

Dump this lump back to raw byte data

type PhysDisp

type PhysDisp struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 28: PhysDisp

func (*PhysDisp) FromBytes

func (lump *PhysDisp) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*PhysDisp) GetData

func (lump *PhysDisp) GetData() []byte

Get internal format structure data

func (*PhysDisp) ToBytes

func (lump *PhysDisp) ToBytes() []byte

Dump this lump back to raw byte data

type Planes

type Planes struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 1: Planes

func (*Planes) FromBytes

func (lump *Planes) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Planes) GetData

func (lump *Planes) GetData() []primitives.Plane

Get internal format structure data

func (*Planes) ToBytes

func (lump *Planes) ToBytes() []byte

Dump this lump back to raw byte data

type PrimIndice

type PrimIndice struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 39: PrimIndice

func (*PrimIndice) FromBytes

func (lump *PrimIndice) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*PrimIndice) GetData

func (lump *PrimIndice) GetData() []uint16

Get internal format structure data

func (*PrimIndice) ToBytes

func (lump *PrimIndice) ToBytes() []byte

Dump this lump back to raw byte data

type PrimVert

type PrimVert struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 37: PrimVert

func (*PrimVert) FromBytes

func (lump *PrimVert) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*PrimVert) GetData

func (lump *PrimVert) GetData() []primitives.PrimVert

Get internal format structure data

func (*PrimVert) ToBytes

func (lump *PrimVert) ToBytes() []byte

Dump this lump back to raw byte data

type Primitive

type Primitive struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 36: Primitive

func (*Primitive) FromBytes

func (lump *Primitive) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Primitive) GetData

func (lump *Primitive) GetData() []primitives.Primitive

Get internal format structure data

func (*Primitive) ToBytes

func (lump *Primitive) ToBytes() []byte

Dump this lump back to raw byte data

type Surfedge

type Surfedge struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 13: Surfedge

func (*Surfedge) FromBytes

func (lump *Surfedge) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Surfedge) GetData

func (lump *Surfedge) GetData() []int32

Get internal format structure data

func (*Surfedge) ToBytes

func (lump *Surfedge) ToBytes() []byte

Dump this lump back to raw byte data

type TexData

type TexData struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 2: TexData

func (*TexData) FromBytes

func (lump *TexData) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*TexData) GetData

func (lump *TexData) GetData() []primitives.TexData

Get internal format structure data

func (*TexData) ToBytes

func (lump *TexData) ToBytes() []byte

Dump this lump back to raw byte data

type TexDataStringTable

type TexDataStringTable struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 44: TexDataStringTable

func (*TexDataStringTable) FromBytes

func (lump *TexDataStringTable) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*TexDataStringTable) GetData

func (lump *TexDataStringTable) GetData() []int32

Get internal format structure data

func (*TexDataStringTable) ToBytes

func (lump *TexDataStringTable) ToBytes() []byte

Dump this lump back to raw byte data

type TexInfo

type TexInfo struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 6: TexInfo

func (*TexInfo) FromBytes

func (lump *TexInfo) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*TexInfo) GetData

func (lump *TexInfo) GetData() []primitives.TexInfo

Get internal format structure data

func (*TexInfo) ToBytes

func (lump *TexInfo) ToBytes() []byte

Dump this lump back to raw byte data

type TexdataStringData

type TexdataStringData struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 43: TexdataStringData

func (*TexdataStringData) FromBytes

func (lump *TexdataStringData) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*TexdataStringData) GetData

func (lump *TexdataStringData) GetData() string

Get internal format structure data

func (*TexdataStringData) ToBytes

func (lump *TexdataStringData) ToBytes() []byte

Dump this lump back to raw byte data

type Unimplemented

type Unimplemented struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump n: Unimplemented lump type

func (*Unimplemented) FromBytes

func (lump *Unimplemented) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Unimplemented) GetData

func (lump *Unimplemented) GetData() []byte

Get internal format structure data

func (*Unimplemented) ToBytes

func (lump *Unimplemented) ToBytes() []byte

Dump this lump back to raw byte data

type VertNormal

type VertNormal struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 30: VertNormal

func (*VertNormal) FromBytes

func (lump *VertNormal) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*VertNormal) GetData

func (lump *VertNormal) GetData() []primitives.VertNormal

Get internal format structure data

func (*VertNormal) ToBytes

func (lump *VertNormal) ToBytes() []byte

Dump this lump back to raw byte data

type VertNormalIndice

type VertNormalIndice struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 31: VertNormalIndice

func (*VertNormalIndice) FromBytes

func (lump *VertNormalIndice) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*VertNormalIndice) GetData

func (lump *VertNormalIndice) GetData() []uint16

Get internal format structure data

func (*VertNormalIndice) ToBytes

func (lump *VertNormalIndice) ToBytes() []byte

Dump this lump back to raw byte data

type Vertex

type Vertex struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 3: Vertex

func (*Vertex) FromBytes

func (lump *Vertex) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Vertex) GetData

func (lump *Vertex) GetData() []mgl32.Vec3

Get internal format structure data

func (*Vertex) ToBytes

func (lump *Vertex) ToBytes() []byte

Dump this lump back to raw byte data

type Visibility

type Visibility struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 4: Visibility

func (*Visibility) FromBytes

func (lump *Visibility) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*Visibility) GetData

func (lump *Visibility) GetData() *primitives.Vis

Get internal format structure data

func (*Visibility) ToBytes

func (lump *Visibility) ToBytes() []byte

Dump this lump back to raw byte data

type WorldLight

type WorldLight struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 15: Worldlight

func (*WorldLight) FromBytes

func (lump *WorldLight) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*WorldLight) GetData

func (lump *WorldLight) GetData() []primitives.WorldLight

Get internal format structure data

func (*WorldLight) ToBytes

func (lump *WorldLight) ToBytes() []byte

Dump this lump back to raw byte data

type WorldLightHDR

type WorldLightHDR struct {
	LumpGeneric
	// contains filtered or unexported fields
}

Lump 15: Worldlight

func (*WorldLightHDR) FromBytes

func (lump *WorldLightHDR) FromBytes(raw []byte, length int32)

Import this lump from raw byte data

func (*WorldLightHDR) GetData

func (lump *WorldLightHDR) GetData() []primitives.WorldLight

Get internal format structure data

func (*WorldLightHDR) ToBytes

func (lump *WorldLightHDR) ToBytes() []byte

Dump this lump back to raw byte data

Jump to

Keyboard shortcuts

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