lumps

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Unlicense Imports: 40 Imported by: 14

Documentation

Index

Constants

View Source
const (
	// MaxMapLeafs is the maximum number of leafs the engine can handle
	MaxMapLeafs = 65536
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

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

Area is Lump 20: Areas

func (*Area) GetData

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

GetData gets internal format structure data

func (*Area) Marshall added in v0.2.0

func (lump *Area) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Area) Unmarshall added in v0.2.0

func (lump *Area) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type AreaPortal

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

AreaPortal is Lump 21: Areaportals

func (*AreaPortal) GetData

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

GetData gets internal format structure data

func (*AreaPortal) Marshall added in v0.2.0

func (lump *AreaPortal) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*AreaPortal) Unmarshall added in v0.2.0

func (lump *AreaPortal) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Brush

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

Brush is Lump 18: Brush

func (*Brush) GetData

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

GetData gets internal format structure data

func (*Brush) Marshall added in v0.2.0

func (lump *Brush) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Brush) Unmarshall added in v0.2.0

func (lump *Brush) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type BrushSide

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

BrushSide is Lump 19: BrushSide

func (*BrushSide) GetData

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

GetData gets internal format structure data

func (*BrushSide) Marshall added in v0.2.0

func (lump *BrushSide) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*BrushSide) Unmarshall added in v0.2.0

func (lump *BrushSide) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type ClipPortalVerts

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

ClipPortalVerts is Lump 41: ClipPortalVerts

func (*ClipPortalVerts) GetData

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

GetData gets internal format structure data

func (*ClipPortalVerts) Marshall added in v0.2.0

func (lump *ClipPortalVerts) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*ClipPortalVerts) Unmarshall added in v0.2.0

func (lump *ClipPortalVerts) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Cubemap

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

Cubemap is Lump 42: Cubemaps

func (*Cubemap) GetData

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

GetData gets internal format structure data

func (*Cubemap) Marshall added in v0.2.0

func (lump *Cubemap) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Cubemap) Unmarshall added in v0.2.0

func (lump *Cubemap) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type DispInfo

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

DispInfo is Lump 26: DispInfo

func (*DispInfo) GetData

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

GetData gets internal format structure data

func (*DispInfo) Marshall added in v0.2.0

func (lump *DispInfo) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*DispInfo) Unmarshall added in v0.2.0

func (lump *DispInfo) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type DispLightmapSamplePosition

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

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

func (*DispLightmapSamplePosition) GetData

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

GetData gets internal format structure data

func (*DispLightmapSamplePosition) Marshall added in v0.2.0

func (lump *DispLightmapSamplePosition) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*DispLightmapSamplePosition) Unmarshall added in v0.2.0

func (lump *DispLightmapSamplePosition) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type DispTris

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

DispTris is Lump 48: DispTris

func (*DispTris) GetData

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

GetData gets internal format structure data

func (*DispTris) Marshall added in v0.2.0

func (lump *DispTris) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*DispTris) Unmarshall added in v0.2.0

func (lump *DispTris) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type DispVert

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

DispVert is Lump 33: DispVert

func (*DispVert) GetData

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

GetData gets internal format structure data

func (*DispVert) Marshall added in v0.2.0

func (lump *DispVert) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*DispVert) Unmarshall added in v0.2.0

func (lump *DispVert) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Edge

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

Edge is Lump 12: Edge

func (*Edge) GetData

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

GetData gets internal format structure data

func (*Edge) Marshall added in v0.2.0

func (lump *Edge) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Edge) Unmarshall added in v0.2.0

func (lump *Edge) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type EntData

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

EntData is Lump 0: Entdata

func (*EntData) GetData

func (lump *EntData) GetData() string

GetData gets internal format structure data

func (*EntData) Marshall added in v0.2.0

func (lump *EntData) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*EntData) Unmarshall added in v0.2.0

func (lump *EntData) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Face

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

Face is Lump 7: Face

func (*Face) GetData

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

GetData gets internal format structure data

func (*Face) Marshall added in v0.2.0

func (lump *Face) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Face) Unmarshall added in v0.2.0

func (lump *Face) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type FaceHDR

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

FaceHDR is Lump 58: FaceHDR

func (*FaceHDR) GetData

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

GetData gets internal format structure data

func (*FaceHDR) Marshall added in v0.2.0

func (lump *FaceHDR) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*FaceHDR) Unmarshall added in v0.2.0

func (lump *FaceHDR) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type FaceId

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

FaceId is Lump 11: FaceIds

func (*FaceId) GetData

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

GetData gets internal format structure data

func (*FaceId) Marshall added in v0.2.0

func (lump *FaceId) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*FaceId) Unmarshall added in v0.2.0

func (lump *FaceId) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type FaceMacroTextureInfo

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

FaceMacroTextureInfo is Lump 47: FaceMacroTextureInfo

func (*FaceMacroTextureInfo) GetData

GetData gets internal format structure data

func (*FaceMacroTextureInfo) Marshall added in v0.2.0

func (lump *FaceMacroTextureInfo) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*FaceMacroTextureInfo) Unmarshall added in v0.2.0

func (lump *FaceMacroTextureInfo) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Game

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

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

func (*Game) GetData

func (lump *Game) GetData() *Game

GetData gets internal format structure data

func (*Game) GetStaticPropLump

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

GetStaticPropLump returns the staticprop lump

func (*Game) Marshall added in v0.2.0

func (lump *Game) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Game) Unmarshall added in v0.2.0

func (lump *Game) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

func (*Game) UpdateInternalOffsets

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

UpdateInternalOffsets updates the lumps offsets to be relative to the lump, rather than the bsp start

type Generic added in v0.2.0

type Generic struct {
	Metadata
	// contains filtered or unexported fields
}

Generic is a raw byte lump It should be used in cases where the data has no or unknown structures.

func (*Generic) Marshall added in v0.2.0

func (lump *Generic) Marshall() ([]byte, error)

Marshall Dumps this lump back to raw byte data

func (*Generic) Unmarshall added in v0.2.0

func (lump *Generic) Unmarshall(data []byte) (err error)

Unmarshall Imports this lump from raw byte data

type ILump

type ILump interface {
	// Unmarshall Imports a []byte to a defined lump structure(s).
	Unmarshall([]byte) error

	// Marshall Exports lump structure back to []byte.
	Marshall() ([]byte, error)

	SetVersion(version int32)
}

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

type Leaf

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

Leaf is Lump 10: Leaf

func (*Leaf) GetData

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

GetData gets internal format structure data

func (*Leaf) Marshall added in v0.2.0

func (lump *Leaf) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Leaf) Unmarshall added in v0.2.0

func (lump *Leaf) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type LeafAmbientIndex

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

LeafAmbientIndex is Lump 52: Leaf Ambient Index

func (*LeafAmbientIndex) GetData

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

GetData gets internal format structure data

func (*LeafAmbientIndex) Marshall added in v0.2.0

func (lump *LeafAmbientIndex) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*LeafAmbientIndex) Unmarshall added in v0.2.0

func (lump *LeafAmbientIndex) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type LeafAmbientIndexHDR

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

LeafAmbientIndexHDR is Lump 51: Leaf Ambient Index HDR

func (*LeafAmbientIndexHDR) GetData

GetData gets internal format structure data

func (*LeafAmbientIndexHDR) Marshall added in v0.2.0

func (lump *LeafAmbientIndexHDR) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*LeafAmbientIndexHDR) Unmarshall added in v0.2.0

func (lump *LeafAmbientIndexHDR) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type LeafAmbientLighting

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

LeafAmbientLighting is Lump 56: LeafAmbientLighting

func (*LeafAmbientLighting) GetData

GetData gets internal format structure data

func (*LeafAmbientLighting) Marshall added in v0.2.0

func (lump *LeafAmbientLighting) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*LeafAmbientLighting) Unmarshall added in v0.2.0

func (lump *LeafAmbientLighting) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type LeafAmbientLightingHDR

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

LeafAmbientLightingHDR is Lump 55: LeafAmbientLightingHDR

func (*LeafAmbientLightingHDR) GetData

GetData gets internal format structure data

func (*LeafAmbientLightingHDR) Marshall added in v0.2.0

func (lump *LeafAmbientLightingHDR) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*LeafAmbientLightingHDR) Unmarshall added in v0.2.0

func (lump *LeafAmbientLightingHDR) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type LeafBrush

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

LeafBrush is Lump 17: LeafBrush

func (*LeafBrush) GetData

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

GetData gets internal format structure data

func (*LeafBrush) Marshall added in v0.2.0

func (lump *LeafBrush) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*LeafBrush) Unmarshall added in v0.2.0

func (lump *LeafBrush) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type LeafFace

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

LeafFace is Lump 16: LeafFace

func (*LeafFace) GetData

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

GetData gets internal format structure data

func (*LeafFace) Marshall added in v0.2.0

func (lump *LeafFace) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*LeafFace) Unmarshall added in v0.2.0

func (lump *LeafFace) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type LeafMinDistToWater

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

LeafMinDistToWater is Lump 46: LeafMinDistToWater

func (*LeafMinDistToWater) GetData

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

GetData gets internal format structure data

func (*LeafMinDistToWater) Marshall added in v0.2.0

func (lump *LeafMinDistToWater) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*LeafMinDistToWater) Unmarshall added in v0.2.0

func (lump *LeafMinDistToWater) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type LeafWaterData

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

LeafWaterData is Lump 36: leafwaterdata

func (*LeafWaterData) GetData

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

GetData gets internal format structure data

func (*LeafWaterData) Marshall added in v0.2.0

func (lump *LeafWaterData) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*LeafWaterData) Unmarshall added in v0.2.0

func (lump *LeafWaterData) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Lighting

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

Lighting is Lump 8: Lighting

func (*Lighting) GetData

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

GetData gets internal format structure data

func (*Lighting) Marshall added in v0.2.0

func (lump *Lighting) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Lighting) Unmarshall added in v0.2.0

func (lump *Lighting) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type MapFlags

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

MapFlags is Lump 59: MapFlags

func (*MapFlags) GetData

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

GetData gets internal format structure data

func (*MapFlags) Marshall added in v0.2.0

func (lump *MapFlags) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*MapFlags) Unmarshall added in v0.2.0

func (lump *MapFlags) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Metadata added in v0.2.0

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

Metadata is a Helper info for a lump

func (*Metadata) Length added in v0.2.0

func (info *Metadata) Length() int

Length Returns lump import length in bytes.

func (*Metadata) SetLength added in v0.2.0

func (info *Metadata) SetLength(length int)

SetLength sets lump import length in bytes

func (*Metadata) SetVersion added in v0.2.0

func (info *Metadata) SetVersion(version int32)

SetVersion sets bsp version of lump

func (*Metadata) Version added in v0.2.0

func (info *Metadata) Version() int32

Version Returns lump import version in bytes.

type Model

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

Model is Lump 14: Model

func (*Model) GetData

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

GetData gets internal format structure data

func (*Model) Marshall added in v0.2.0

func (lump *Model) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Model) Unmarshall added in v0.2.0

func (lump *Model) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Node

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

Node is Lump 5: Node

func (*Node) GetData

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

GetData gets internal format structure data

func (*Node) Marshall added in v0.2.0

func (lump *Node) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Node) Unmarshall added in v0.2.0

func (lump *Node) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Occlusion

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

Occlusion is Lump 9: Occlusion

func (*Occlusion) GetData

func (lump *Occlusion) GetData() *Occlusion

GetData gets internal format structure data

func (*Occlusion) Marshall added in v0.2.0

func (lump *Occlusion) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Occlusion) Unmarshall added in v0.2.0

func (lump *Occlusion) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Overlay

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

Overlay is Lump 45: Overlay Consists of an array of Overlay structs

func (*Overlay) GetData

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

GetData gets internal format structure data

func (*Overlay) Marshall added in v0.2.0

func (lump *Overlay) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Overlay) Unmarshall added in v0.2.0

func (lump *Overlay) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type OverlayFade

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

OverlayFade is Lump 60: Overlayfades

func (*OverlayFade) GetData

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

GetData gets internal format structure data

func (*OverlayFade) Marshall added in v0.2.0

func (lump *OverlayFade) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*OverlayFade) Unmarshall added in v0.2.0

func (lump *OverlayFade) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Pakfile

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

Pakfile is Lump 40: Pakfile

func (*Pakfile) GetData

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

GetData GetData gets 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) Marshall added in v0.2.0

func (lump *Pakfile) Marshall() ([]byte, error)

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

func (*Pakfile) Unmarshall added in v0.2.0

func (lump *Pakfile) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type PhysCollide

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

PhysCollide is Lump 20: PhysCollide

func (*PhysCollide) GetData

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

GetData gets internal format structure data

func (*PhysCollide) Marshall added in v0.2.0

func (lump *PhysCollide) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*PhysCollide) Unmarshall added in v0.2.0

func (lump *PhysCollide) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type PhysDisp

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

PhysDisp is Lump 28: PhysDisp

func (*PhysDisp) GetData

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

GetData gets internal format structure data

func (*PhysDisp) Marshall added in v0.2.0

func (lump *PhysDisp) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*PhysDisp) Unmarshall added in v0.2.0

func (lump *PhysDisp) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Planes

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

Planes is Lump 1: Planes

func (*Planes) GetData

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

GetData gets internal format structure data

func (*Planes) Marshall added in v0.2.0

func (lump *Planes) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Planes) Unmarshall added in v0.2.0

func (lump *Planes) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type PrimIndice

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

PrimIndice is Lump 39: PrimIndice

func (*PrimIndice) GetData

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

GetData gets internal format structure data

func (*PrimIndice) Marshall added in v0.2.0

func (lump *PrimIndice) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*PrimIndice) Unmarshall added in v0.2.0

func (lump *PrimIndice) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type PrimVert

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

PrimVert is Lump 37: PrimVert

func (*PrimVert) GetData

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

GetData gets internal format structure data

func (*PrimVert) Marshall added in v0.2.0

func (lump *PrimVert) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*PrimVert) Unmarshall added in v0.2.0

func (lump *PrimVert) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Primitive

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

Primitive is Lump 36: Primitive

func (*Primitive) GetData

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

GetData gets internal format structure data

func (*Primitive) Marshall added in v0.2.0

func (lump *Primitive) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Primitive) Unmarshall added in v0.2.0

func (lump *Primitive) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Surfedge

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

Surfedge is Lump 13: Surfedge

func (*Surfedge) GetData

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

GetData gets internal format structure data

func (*Surfedge) Marshall added in v0.2.0

func (lump *Surfedge) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Surfedge) Unmarshall added in v0.2.0

func (lump *Surfedge) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type TexData

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

TexData is Lump 2: TexData

func (*TexData) GetData

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

GetData gets internal format structure data

func (*TexData) Marshall added in v0.2.0

func (lump *TexData) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*TexData) Unmarshall added in v0.2.0

func (lump *TexData) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type TexDataStringData added in v0.2.0

type TexDataStringData struct {
	Generic
	// contains filtered or unexported fields
}

TexDataStringData is Lump 43: TexDataStringData

func (*TexDataStringData) GetData added in v0.2.0

func (lump *TexDataStringData) GetData() string

GetData gets internal format structure data

func (*TexDataStringData) Marshall added in v0.2.0

func (lump *TexDataStringData) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*TexDataStringData) Unmarshall added in v0.2.0

func (lump *TexDataStringData) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type TexDataStringTable

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

TexDataStringTable is Lump 44: TexDataStringTable

func (*TexDataStringTable) GetData

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

GetData gets internal format structure data

func (*TexDataStringTable) Marshall added in v0.2.0

func (lump *TexDataStringTable) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*TexDataStringTable) Unmarshall added in v0.2.0

func (lump *TexDataStringTable) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type TexInfo

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

TexInfo is Lump 6: TexInfo

func (*TexInfo) GetData

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

GetData gets internal format structure data

func (*TexInfo) Marshall added in v0.2.0

func (lump *TexInfo) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*TexInfo) Unmarshall added in v0.2.0

func (lump *TexInfo) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Unimplemented

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

Unimplemented is Lump n: Unimplemented lump type

func (*Unimplemented) GetData

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

GetData gets internal format structure data

func (*Unimplemented) Marshall added in v0.2.0

func (lump *Unimplemented) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Unimplemented) Unmarshall added in v0.2.0

func (lump *Unimplemented) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type VertNormal

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

VertNormal is Lump 30: VertNormal

func (*VertNormal) GetData

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

GetData gets internal format structure data

func (*VertNormal) Marshall added in v0.2.0

func (lump *VertNormal) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*VertNormal) Unmarshall added in v0.2.0

func (lump *VertNormal) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type VertNormalIndice

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

VertNormalIndice is Lump 31: VertNormalIndice

func (*VertNormalIndice) GetData

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

GetData gets internal format structure data

func (*VertNormalIndice) Marshall added in v0.2.0

func (lump *VertNormalIndice) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*VertNormalIndice) Unmarshall added in v0.2.0

func (lump *VertNormalIndice) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Vertex

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

Vertex is Lump 3: Vertex

func (*Vertex) GetData

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

GetData gets internal format structure data

func (*Vertex) Marshall added in v0.2.0

func (lump *Vertex) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Vertex) Unmarshall added in v0.2.0

func (lump *Vertex) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type Visibility

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

Visibility is Lump 4: Visibility

func (*Visibility) GetData

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

GetData gets internal format structure data

func (*Visibility) Marshall added in v0.2.0

func (lump *Visibility) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*Visibility) Unmarshall added in v0.2.0

func (lump *Visibility) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type WorldLight

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

WorldLight is Lump 15: Worldlight

func (*WorldLight) GetData

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

GetData gets internal format structure data

func (*WorldLight) Marshall added in v0.2.0

func (lump *WorldLight) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*WorldLight) Unmarshall added in v0.2.0

func (lump *WorldLight) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

type WorldLightHDR

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

WorldLightHDR is Lump 15: Worldlight

func (*WorldLightHDR) GetData

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

GetData gets internal format structure data

func (*WorldLightHDR) Marshall added in v0.2.0

func (lump *WorldLightHDR) Marshall() ([]byte, error)

Marshall dumps this lump back to raw byte data

func (*WorldLightHDR) Unmarshall added in v0.2.0

func (lump *WorldLightHDR) Unmarshall(raw []byte) (err error)

Unmarshall Imports this lump from raw byte data

Jump to

Keyboard shortcuts

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