godot

package module
v0.0.0-...-97d28b2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package godot provides methods for working with Godot data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name     string
	Type     NodeType
	Instance *Resource
	Parent   *Node
	Children []Node
}

Node represents a Godot scene node.

type NodeType

type NodeType string

NodeType identifies the type of a node.

type Project

type Project struct {
	Path string
}

func Open

func Open(path string) (*Project, error)

type Resource

type Resource struct {
	Path string
	Type ResourceType
}

Resource represents a Godot resource.

type ResourceType

type ResourceType string

ResourceType identifies the type of a resource.

const (
	PackedScene ResourceType = "PackedScene"
)

type Scene

type Scene struct {
	Nodes []Node
}

Scene represents a Godot scene.

func (Scene) MarshalText

func (s Scene) MarshalText() (string, error)

MarshalText returns the scene in escn/tscn format.

Jump to

Keyboard shortcuts

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