entity

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignProperties

func AssignProperties(ent entity3.IEntity, fs filesystem.IFileSystem)

AssignProperties assigns type specific properties. @TODO This is probably going to grow massively as more common types get implemented. It should probably be refactored.

func AssignStudioModelToEntity

func AssignStudioModelToEntity(entity entity.IEntity, fs filesystem.IFileSystem)

AssignStudioModelToEntity sets a renderable entity's model

func CreateEntity

func CreateEntity(ent *entity.Entity, fs filesystem.IFileSystem) entity3.IEntity

CreateEntity creates a new entity with common properties e.g. origin and angles

func DoesEntityReferenceStudioModel

func DoesEntityReferenceStudioModel(ent entity.IEntity) bool

DoesEntityReferenceStudioModel tests if an entity is tied to a model (normally prop_* classnames, but not exclusively)

func ParseEntities

func ParseEntities(data string) (vmf.Vmf, error)

ParseEntities Parse Base block. Vmf lib is actually capable of doing this; contents are loaded into Vmf.Unclassified

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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