level

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: BSD-3-Clause Imports: 10 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 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"`
}

type SimpleMaterial

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

type SimpleMaterialOverride

type SimpleMaterialOverride struct {
	Index     uint32           `json:"index"`
	Materials []SimpleMaterial `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 {
	UnkHash string `json:"unk_hash"`
	Path    string `json:"path"`
	stingray.Transform
	UnkExtraRotation mgl32.Vec4 `json:"extra_rotation"`
}

type SimpleUnit

type SimpleUnit struct {
	UnkHash00 string `json:"unk_hash_0"`
	UnkHash01 string `json:"unk_hash_1"`
	Path      string `json:"path"`
	stingray.Transform
	UnkFloats [6]float32 `json:"unk_floats"`
}

Jump to

Keyboard shortcuts

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