level

package
v0.7.35 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(currDoc *gltf.Document) func(ctx *extractor.Context) error

func ConvertOpts

func ConvertOpts(ctx *extractor.Context, gltfDoc *gltf.Document) error

func ExtractLevelJSON

func ExtractLevelJSON(ctx *extractor.Context) error

func GetLevelExtrasID

func GetLevelExtrasID(fileId stingray.FileID) string

Types

type SimpleExtraPrefab added in v0.7.18

type SimpleExtraPrefab struct {
	UUID string `json:"uuid"`
	Path string `json:"path"`
	stingray.Transform
	UnkFloats [3]float32 `json:"unk_floats"`
	UnkInt    uint32     `json:"unk_int"`
}

type SimpleExtraUnit added in v0.7.18

type SimpleExtraUnit struct {
	UUID string `json:"uuid"`
	Path string `json:"path"`
	Name string `json:"name"`
	stingray.Transform
	UnkFloats [3]float32 `json:"unk_floats"`
	UnkInt    uint32     `json:"unk_int"`
	UnkInt2   uint32     `json:"unk_int_2"`
}

type SimpleExtraUnitsContainer added in v0.7.18

type SimpleExtraUnitsContainer struct {
	UnkInt              uint32               `json:"unk_int"`
	UnkInt2             uint32               `json:"unk_int_2"`
	LevelName           string               `json:"level_name"`
	ExtraUnits          []SimpleExtraUnit    `json:"extra_units"`
	ExtraPrefabs        []SimpleExtraPrefab  `json:"extra_prefabs"`
	UnkIntList          []uint32             `json:"unk_int_list"`
	UnkFloatTwoIntsList []level.FloatTwoInts `json:"unk_float_two_ints_list"`
	UnkIntsAndFloatList []level.IntsAndFloat `json:"unk_ints_and_float"`
}

type SimpleHashIndexRange added in v0.7.18

type SimpleHashIndexRange struct {
	Hash  string `json:"hash"`
	Start uint32 `json:"start"`
	End   uint32 `json:"end"`
}

type SimpleLevel

type SimpleLevel struct {
	Name                 string                         `json:"name"`
	Metadata             map[int][]SimpleMetadata       `json:"metadata"`
	Prefabs              []SimplePrefab                 `json:"prefabs"`
	MaterialOverrides    []SimpleMaterialOverride       `json:"material_overrides"`
	Units                []SimpleUnit                   `json:"units"`
	Speedtrees           []SimpleSpeedtree              `json:"speedtrees"`
	UnkTransformedItems  []SimpleUnknownTransformedItem `json:"unk_transformed_item"`
	UnkExtraUnits        []SimpleExtraUnitsContainer    `json:"unk_extra_units"`
	UnitHashIndexRange   []SimpleHashIndexRange         `json:"unit_hash_index_range"`
	UnkHashIndexRange1   []SimpleHashIndexRange         `json:"unk_hash_index_range_1"`
	UnkHashIndexRange2   []SimpleHashIndexRange         `json:"unk_hash_index_range_2"`
	UnkHashIndexRange3   []SimpleHashIndexRange         `json:"unk_hash_index_range_3"`
	PrefabHashIndexRange []SimpleHashIndexRange         `json:"prefab_hash_index_range"`
	UnkHashIndexRange4   []SimpleHashIndexRange         `json:"unk_hash_index_range_4"`
	UnkHashIndexRange5   []SimpleHashIndexRange         `json:"unk_hash_index_range_5"`
}

type SimpleMaterial

type SimpleMaterial struct {
	Slot string `json:"slot"`
	Path string `json:"path"`
}

type SimpleMaterialOverride

type SimpleMaterialOverride struct {
	Index     uint32            `json:"index"`
	Materials map[string]string `json:"materials"`
}

type SimpleMetadata

type SimpleMetadata struct {
	Names []string                `json:"names"`
	Type  level.LevelMetadataType `json:"type"`
	Value any                     `json:"value"`
}

type SimplePrefab

type SimplePrefab struct {
	UUID string `json:"uuid"`
	Path string `json:"path"`
	stingray.Transform
	UnkExtraRotation mgl32.Vec4 `json:"extra_rotation"`
}

type SimpleSpeedtree added in v0.7.26

type SimpleSpeedtree struct {
	Path                string                     `json:"path"`
	Layers              []SimpleSpeedtreeLayer     `json:"layers"`
	SpeedtreeTransforms []SimpleSpeedtreeTransform `json:"transforms"`
}

type SimpleSpeedtreeLayer added in v0.7.26

type SimpleSpeedtreeLayer struct {
	Name     string `json:"name"`
	UnkInt00 uint32 `json:"unk_int00"`
	UnkInt01 uint32 `json:"unk_int01"`
}

type SimpleSpeedtreeTransform added in v0.7.26

type SimpleSpeedtreeTransform struct {
	Position    [4]float32 `json:"position"`
	MinRotation [4]float32 `json:"min_rotation"`
	MaxRotation [4]float32 `json:"max_rotation"`
}

type SimpleUnit

type SimpleUnit struct {
	UUID string `json:"uuid"`
	Name string `json:"name"`
	Path string `json:"path"`
	stingray.Transform
	UnkFloats [6]float32 `json:"unk_floats"`
}

type SimpleUnknownTransformedItem added in v0.7.18

type SimpleUnknownTransformedItem struct {
	Hash string `json:"hash"`
	stingray.Transform
	UnkFloats [6]float32 `json:"unk_floats"`
}

type SpeedtreeTransformed added in v0.7.26

type SpeedtreeTransformed struct {
	level.Speedtree
	stingray.Transform
}

Jump to

Keyboard shortcuts

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