cache

package
v1.4.120 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorAction

type ActorAction struct {
	Unk1 uint32
	Lods []float32
}

type ActorDef added in v1.4.118

type ActorDef struct {
	Tag              string
	Flags            uint32
	Callback         string
	ActionCount      uint32
	FragmentRefCount uint32
	BoundsRef        int32
	CurrentAction    uint32
	Location         [6]float32
	Unk1             uint32
	Actions          []ActorAction
	FragmentRefs     []uint32
	Unk2             uint32
	// contains filtered or unexported fields
}

type ActorInst added in v1.4.118

type ActorInst struct {
	Tag            string
	ActorDefTag    string
	Flags          uint32
	SphereTag      string
	CurrentAction  uint32
	Location       [6]float32
	Unk1           uint32
	BoundingRadius float32
	Scale          float32
	Sound          string
	Unk2           int32
	// contains filtered or unexported fields
}

type AlternateMesh

type AlternateMesh struct {
	Tag            string
	Flags          uint32
	Fragment1Maybe int16
	Material       string
	Fragment3      uint32
	CenterPosition model.Vector3
	Params2        uint32
	Something2     uint32
	Something3     uint32
	Verticies      []model.Vector3
	TexCoords      []model.Vector3
	Normals        []model.Vector3
	Colors         []int32
	Polygons       []*AlternateMeshSpritePolygon
	VertexPieces   []*AlternateMeshVertexPiece
	PostVertexFlag uint32
	RenderGroups   []*AlternateMeshRenderGroup
	VertexTex      []model.Vector2
	Size6Pieces    []*AlternateMeshSize6Entry
	// contains filtered or unexported fields
}

type AlternateMeshRenderGroup

type AlternateMeshRenderGroup struct {
	PolygonCount int16
	MaterialId   int16
}

type AlternateMeshSize6Entry

type AlternateMeshSize6Entry struct {
	Unk1 uint32
	Unk2 uint32
	Unk3 uint32
	Unk4 uint32
	Unk5 uint32
}

type AlternateMeshSpritePolygon

type AlternateMeshSpritePolygon struct {
	Flag int16
	Unk1 int16
	Unk2 int16
	Unk3 int16
	Unk4 int16
	I1   int16
	I2   int16
	I3   int16
}

type AlternateMeshVertexPiece

type AlternateMeshVertexPiece struct {
	Count  int16
	Offset int16
}

type AmbientLightInstance

type AmbientLightInstance struct {
	Tag        string
	LightTag   string
	Flags      uint32
	RegionTags []string
	// contains filtered or unexported fields
}

type Animation

type Animation struct {
	Tag        string
	Flags      uint32
	Transforms []*AnimationTransform
	// contains filtered or unexported fields
}

type AnimationInstance

type AnimationInstance struct {
	Tag       string
	Animation string
	Flags     uint32
	Sleep     uint32
	// contains filtered or unexported fields
}

type AnimationTransform

type AnimationTransform struct {
	RotateDenominator int16
	RotateX           int16
	RotateY           int16
	RotateZ           int16
	ShiftX            int16
	ShiftY            int16
	ShiftZ            int16
	ShiftDenominator  int16
}

type Bitmap

type Bitmap struct {
	Tag             string
	Textures        []string
	SimpleSpriteDef SimpleSpriteDef
	SimpleSprite    SpriteInstance
	// contains filtered or unexported fields
}

Bitmap is a struct representing a material

type BspTree

type BspTree struct {
	Tag   string
	Nodes []*BspTreeNode
	// contains filtered or unexported fields
}

type BspTreeNode

type BspTreeNode struct {
	Normal    model.Vector3
	Distance  float32
	RegionTag string
	Front     *BspTreeNode
	Back      *BspTreeNode
}

type CacheManager

type CacheManager struct {
	FileName              string
	GlobalAmbientLight    string
	Version               uint32
	Bitmaps               []*Bitmap
	SimpleSpriteDefs      []*SimpleSpriteDef
	SpriteInstances       []*SpriteInstance
	Particles             []*Particle
	ParticleInstances     []*ParticleInstance
	MaterialDefs          []*MaterialDef
	MaterialPalettes      []*MaterialPalette
	DmSpriteDef2s         []*DmSpriteDef2
	MeshInstances         []*MeshInstance
	AlternateMeshes       []*AlternateMesh
	ActorDefs             []*ActorDef
	ActorInsts            []*ActorInst
	Animations            []*Animation
	AnimationInstances    []*AnimationInstance
	Skeletons             []*Skeleton
	SkeletonInstances     []*SkeletonInstance
	LightDefs             []*LightDef
	LightInstances        []*LightInstance
	AmbientLightInstances []*AmbientLightInstance
	PointLights           []*PointLight
	Sprite3DDefs          []*Sprite3DDef
	CameraInstances       []*CameraInstance
	BspTrees              []*BspTree
	Regions               []*Region
	RegionInstances       []*RegionInstance
	Spheres               []*Sphere
}

func (*CacheManager) Close

func (cm *CacheManager) Close()

func (*CacheManager) Load

func (cm *CacheManager) Load(src *raw.Wld) error

type CameraBspNode

type CameraBspNode struct {
	FrontTree                   uint32
	BackTree                    uint32
	VertexIndexes               []uint32
	RenderMethod                string
	RenderFlags                 uint8
	RenderPen                   uint32
	RenderBrightness            float32
	RenderScaledAmbient         float32
	RenderSimpleSpriteReference uint32
	RenderUVInfoOrigin          [3]float32
	RenderUVInfoUAxis           [3]float32
	RenderUVInfoVAxis           [3]float32
	RenderUVMapEntries          []CameraBspNodeUVMapEntry
}

type CameraBspNodeUVMapEntry

type CameraBspNodeUVMapEntry struct {
	UvOrigin [3]float32
	UAxis    [3]float32
	VAxis    [3]float32
}

type CameraInstance

type CameraInstance struct {
	Tag       string
	CameraTag string
	Flags     uint32
	// contains filtered or unexported fields
}

type DmSpriteDef2

type DmSpriteDef2 struct {
	Tag                  string
	Flags                uint32
	MaterialPaletteTag   string
	DmTrackTag           string
	Fragment3Ref         int32
	Fragment4Ref         int32
	CenterOffset         [3]float32
	Params2              [3]uint32
	MaxDistance          float32
	Min                  [3]float32
	Max                  [3]float32
	Scale                uint16
	Vertices             [][3]int16
	UVs                  [][2]int16
	VertexNormals        [][3]int8
	Colors               [][4]uint8
	Faces                []Face
	FaceMaterialGroups   [][2]uint16
	SkinAssignmentGroups [][2]uint16
	VertexMaterialGroups [][2]int16
	MeshOps              []MeshOp
	// contains filtered or unexported fields
}

type Face

type Face struct {
	Index [3]uint16
	Flags uint16
}

type LightDef added in v1.4.118

type LightDef struct {
	Tag             string
	Flags           uint32
	FrameCurrentRef uint32
	Sleep           uint32
	LightLevels     []float32
	Colors          [][3]float32
	// contains filtered or unexported fields
}

type LightInstance

type LightInstance struct {
	Tag   string
	Light string
	Flags uint32
	// contains filtered or unexported fields
}

type MaterialDef

type MaterialDef struct {
	Tag                  string
	Flags                uint32
	RenderMethod         string
	RGBPen               [4]uint8
	Brightness           float32
	ScaledAmbient        float32
	SimpleSpriteInstTag  string
	SimpleSpriteInstFlag uint32

	Pair1   uint32
	Pair2   float32
	Palette MaterialPalette
	// contains filtered or unexported fields
}

MaterialDef is a struct representing a material

type MaterialPalette

type MaterialPalette struct {
	Tag       string
	Flags     uint32
	Materials []string
	// contains filtered or unexported fields
}

MaterialPalette is a struct representing a material palette

type MeshInstance

type MeshInstance struct {
	Tag    string
	Mesh   string
	Params uint32
	// contains filtered or unexported fields
}

type MeshOp

type MeshOp struct {
	Index1    uint16  `yaml:"index_1"`
	Index2    uint16  `yaml:"index_2"`
	Offset    float32 `yaml:"offset"`
	Param1    uint8   `yaml:"param_1"`
	TypeField uint8   `yaml:"type_field"`
}

type Particle

type Particle struct {
	Tag       string
	Flags     uint32
	SpriteTag string
	Unknown   int32
	// contains filtered or unexported fields
}

Particle is also known as BlitSpriteDef

type ParticleInstance

type ParticleInstance struct {
	Tag                   string
	Unk1                  uint32
	Unk2                  uint32
	ParticleMovement      uint32
	Flags                 uint32 //Flag 1, High Opacity, Flag 3, Follows Item
	SimultaneousParticles uint32
	Unk6                  uint32
	Unk7                  uint32
	Unk8                  uint32
	Unk9                  uint32
	Unk10                 uint32
	SpawnRadius           float32
	SpawnAngle            float32
	SpawnLifespan         uint32
	SpawnVelocity         float32
	SpawnNormalZ          float32
	SpawnNormalX          float32
	SpawnNormalY          float32
	SpawnRate             uint32
	SpawnScale            float32
	Color                 model.RGBA
	// contains filtered or unexported fields
}

type PointLight added in v1.4.118

type PointLight struct {
	Tag         string
	LightDefTag string
	Flags       uint32
	Location    [3]float32
	Radius      float32
	// contains filtered or unexported fields
}

type Region

type Region struct {
	Tag                  string
	Flags                uint32
	AmbientLightRef      int32
	RegionVertexCount    uint32
	RegionProximalCount  uint32
	RenderVertexCount    uint32
	WallCount            uint32
	ObstacleCount        uint32
	CuttingObstacleCount uint32
	VisibleNodeCount     uint32
	RegionVertices       []model.Vector3
	RegionProximals      []model.Vector2
	RenderVertices       []model.Vector3
	Walls                []*RegionWall
	// contains filtered or unexported fields
}

type RegionInstance

type RegionInstance struct {
	Tag        string
	Flags      uint32
	RegionTags []string
	UserData   string
	// contains filtered or unexported fields
}

type RegionWall

type RegionWall struct {
	Flags                       uint32
	VertexCount                 uint32
	RenderMethod                uint32
	RenderFlags                 uint32
	RenderPen                   uint32
	RenderBrightness            float32
	RenderScaledAmbient         float32
	RenderSimpleSpriteReference uint32
	RenderUVInfoOrigin          model.Vector3
	RenderUVInfoUAxis           model.Vector3
	RenderUVInfoVAxis           model.Vector3
	RenderUVMapEntryCount       uint32
	RenderUVMapEntries          []model.Vector2
	Normal                      model.Quad4
	Vertices                    []uint32
}

type SimpleSpriteDef

type SimpleSpriteDef struct {
	Tag          string
	Flags        uint32
	CurrentFrame int32
	Sleep        uint32
	BMInfos      [][2]string
	// contains filtered or unexported fields
}

type Skeleton

type Skeleton struct {
	Tag                string
	Flags              uint32
	CollisionVolumeRef uint32
	CenterOffset       [3]uint32
	BoundingRadius     float32
	Bones              []*SkeletonEntry
	Skins              []uint32
	SkinLinks          []uint32
	// contains filtered or unexported fields
}

type SkeletonEntry

type SkeletonEntry struct {
	Tag          string
	Flags        uint32
	Track        string
	MeshOrSprite string
	SubBones     []uint32
}

type SkeletonInstance

type SkeletonInstance struct {
	Tag      string
	Skeleton string
	Flags    uint32
	// contains filtered or unexported fields
}

type Sphere

type Sphere struct {
	Tag    string
	Radius float32
	// contains filtered or unexported fields
}

type Sprite3DDef added in v1.4.118

type Sprite3DDef struct {
	Tag           string
	Flags         uint32
	SphereListRef uint32
	CenterOffset  [3]float32
	Radius        float32
	Vertices      [][3]float32
	BspNodes      []*CameraBspNode
	// contains filtered or unexported fields
}

type SpriteInstance

type SpriteInstance struct {
	Tag    string
	Flags  uint32
	Sprite string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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