vmf

package module
v0.0.0-...-23b6792 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVec3FromString

func NewVec3FromString(marshalled string) math32.Vector3

Types

type Camera

type Camera struct {
	Position math32.Vector3
	Look     math32.Vector3
}

func NewCamera

func NewCamera(position math32.Vector3, look math32.Vector3) *Camera

type Cameras

type Cameras struct {
	ActiveCamera int
	CameraList   []Camera
}

func NewCameras

func NewCameras(activeCameraIndex int, cameras []Camera) *Cameras

type Cordon

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

type VersionInfo

type VersionInfo struct {
	EditorVersion int
	EditorBuild   int
	MapVersion    int
	FormatVersion int
	Prefab        bool
}

func NewVersionInfo

func NewVersionInfo(version int, build int, mapRevision int, format int, isPrefab bool) *VersionInfo

type ViewSettings

type ViewSettings struct {
	SnapToGrid      bool
	ShowGrid        bool
	ShowLogicalGrid bool
	GridSpacing     int
	Show3DGrid      bool
}

type VisGroups

type VisGroups struct {
}

type Vmf

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

func LoadVmf

func LoadVmf(filepath string) (*Vmf, error)

Public loader function to open and import a vmf file Will error out if the file is malformed or cannot be opened

func NewVmf

func NewVmf(version *VersionInfo,
	visgroups *VisGroups,
	worldSpawn *world.World,

	cameras *Cameras) *Vmf

func (*Vmf) Cameras

func (vmf *Vmf) Cameras() *Cameras

func (*Vmf) Cordons

func (vmf *Vmf) Cordons() *Cordon

func (*Vmf) VersionInfo

func (vmf *Vmf) VersionInfo() *VersionInfo

func (*Vmf) ViewSettings

func (vmf *Vmf) ViewSettings() *ViewSettings

func (*Vmf) Visgroups

func (vmf *Vmf) Visgroups() *VisGroups

func (*Vmf) Worldspawn

func (vmf *Vmf) Worldspawn() *world.World

Jump to

Keyboard shortcuts

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