Versions in this module Expand all Collapse all v0 v0.2.5 Nov 7, 2024 v0.2.4 Nov 3, 2024 v0.2.3 Nov 3, 2024 v0.2.2 Nov 3, 2024 v0.2.1 Nov 3, 2024 v0.2.0 Nov 3, 2024 v0.1.2 Oct 31, 2024 v0.1.1 Oct 31, 2024 v0.1.0 Oct 31, 2024 Changes in this version + const CUBE_FACTOR + const DEFAULT_GEOM + const DEFAULT_SKY + const ET_EMPTY + const ET_ENVMAP + const ET_GAMESPECIFIC + const ET_LIGHT + const ET_MAPMODEL + const ET_PARTICLES + const ET_PLAYERSTART + const ET_SOUND + const ET_SPOTLIGHT + const F_EMPTY + const F_SOLID + const LAYER_BLEND + const LAYER_BOTTOM + const LAYER_DUP + const LAYER_TOP + const LMID_AMBIENT + const LMID_AMBIENT1 + const LMID_BRIGHT + const LMID_BRIGHT1 + const LMID_DARK + const LMID_DARK1 + const LMID_RESERVED + const MATF_CLIP + const MATF_CLIP_SHIFT + const MATF_FLAGS + const MATF_FLAG_SHIFT + const MATF_INDEX + const MATF_INDEX_SHIFT + const MATF_VOLUME + const MATF_VOLUME_SHIFT + const MAT_AIR + const MAT_ALPHA + const MAT_CLIP + const MAT_DEATH + const MAT_GAMECLIP + const MAT_GLASS + const MAT_LAVA + const MAT_NOCLIP + const MAT_WATER + const MAXFACEVERTS + const OCTSAV_CHILDREN + const OCTSAV_EMPTY + const OCTSAV_LODCUB + const OCTSAV_NORMAL + const OCTSAV_SOLID + const VSLOT_ALPHA + const VSLOT_COLOR + const VSLOT_LAYER + const VSLOT_NUM + const VSLOT_OFFSET + const VSLOT_ROTATION + const VSLOT_SCALE + const VSLOT_SCROLL + const VSLOT_SHPARAM + var DEFAULT_MAP_SLOTS []byte + func InsideWorld(size int32, vector Vector) bool + func LoadDefaultSlots(map_ *GameMap) error + func LoadPartial(p *gIO.Buffer, header Header) (worldio.MapState, error) + func MapToCXX(cube *Cube) worldio.Cube + func SaveChildren(p *io.Buffer, cube *Cube, size int32) error + func SavePartial(p *io.Buffer, header Header, state worldio.MapState) error + type BVec struct + X byte + Y byte + Z byte + type CCube worldio.Cube + type Cube struct + Children []*Cube + Edges [12]byte + Escaped byte + Material uint16 + Merged byte + SurfaceInfo [6]SurfaceInfo + Texture [6]uint16 + func EmptyMap(scale int) *Cube + func MapToGo(parent worldio.Cube) *Cube + func NewCubes(face uint32, mat uint16) *Cube + func (c *Cube) Count() uint + func (c *Cube) EmptyFaces() + func (c *Cube) GetFace(n int) uint32 + func (c *Cube) IsEmpty() bool + func (c *Cube) IsEntirelySolid() bool + func (c *Cube) Print() + func (c *Cube) SetFace(n int, val uint32) + func (c *Cube) SetFaces(val uint32) + func (c *Cube) SolidFaces() + type Entity struct + Attr1 int16 + Attr2 int16 + Attr3 int16 + Attr4 int16 + Attr5 int16 + Position Vector + Reserved byte + Type C.EntityType + type FileHeader struct + HeaderSize int32 + LightMaps int32 + Magic [4]byte + NumEnts int32 + NumPVs int32 + Version int32 + WorldSize int32 + type GameMap struct + C worldio.MapState + Entities []Entity + Header Header + VSlots []*VSlot + Vars V.Variables + WorldRoot *Cube + func BasicsFromGZ(data []byte) (*GameMap, error) + func Decode(data []byte) (*GameMap, error) + func DecodeBasics(data []byte) (*GameMap, error) + func FromFile(filename string) (*GameMap, error) + func FromGZ(data []byte) (*GameMap, error) + func NewMap() (*GameMap, error) + func (m *GameMap) Destroy() + func (m *GameMap) Encode() ([]byte, error) + func (m *GameMap) EncodeOGZ() ([]byte, error) + func (m *GameMap) ToAPI() (*api.Map, error) + func (m *GameMap) ToFile(path string) error + type Header struct + BlendMap int32 + GameType string + HeaderSize int32 + LightMaps int32 + NumPVs int32 + NumVSlots int32 + NumVars int32 + Version int32 + WorldSize int32 + func NewHeader() *Header + type IVec2 struct + X int32 + Y int32 + type MergeCompat struct + U1 uint16 + U2 uint16 + V1 uint16 + V2 uint16 + type NewFooter struct + BlendMap int32 + NumVSlots int32 + NumVars int32 + type NormalsCompat struct + Normals [4]BVec + type OldFooter struct + Ambient byte + BlendMap byte + BumpError byte + LavaColor [3]byte + LerpAngle byte + LerpSubDiv byte + LerpSubDivSize byte + LightError int32 + LightLOD int32 + LightPrecision int32 + MapTitle [128]byte + Reserved [10]byte + SkyLight [3]byte + WaterColor [3]byte + WaterfallColor [3]byte + type Slot struct + Index int32 + Loaded bool + Sts []TexSlot + Variants *VSlot + func NewSlot() *Slot + func (slot *Slot) AddSts(name string) *TexSlot + type SlotShaderParam struct + Loc int32 + Name string + Val [4]float32 + type SurfaceCompat struct + Height byte + Layer byte + Lmid byte + TexCoords [8]byte + Width byte + X uint16 + Y uint16 + type SurfaceInfo struct + Lmid [2]byte + NumVerts byte + Verts byte + func (surface *SurfaceInfo) TotalVerts() byte + type TexSlot struct + Name string + type VSlot struct + AlphaBack float32 + AlphaFront float32 + Changed int32 + ColorScale Vector + GlowColor Vector + Index int32 + Layer int32 + Linked bool + Next *VSlot + Offset IVec2 + Params []SlotShaderParam + Rotation int32 + Scale float32 + Scroll Vec2 + Slot *Slot + func NewVSlot(owner *Slot, index int32) *VSlot + func VSlotsToGo(state worldio.MapState) []*VSlot + func (vslot *VSlot) AddVariant(slot *Slot) + type Vec2 struct + X float32 + Y float32 + type Vector struct + X float32 + Y float32 + Z float32