nodes

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Create() Builder
	WithID(id *uuid.UUID) Builder
	WithPosition(pos fl32.Vec2) Builder
	WithPositionVariable(posVar string) Builder
	WithOrientationAngle(angle float32) Builder
	WithOrientationDirection(direction fl32.Vec3) Builder
	WithOrientationVariable(oriVar string) Builder
	WithModel(model models.Model) Builder
	WithDisplay(display displays.Display) Builder
	WithChildren(children []Node) Builder
	Now() (Node, error)
}

Builder represents the node builder

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder instance

type Content

type Content interface {
	IsModel() bool
	Model() models.Model
	IsDisplay() bool
	Display() displays.Display
}

Content represents the node content

type Node

type Node interface {
	ID() *uuid.UUID
	Position() Position
	Orientation() Orientation
	HasContent() bool
	Content() Content
	HasChildren() bool
	Children() []Node
}

Node represents a node

type Orientation

type Orientation interface {
	Angle() float32
	Direction() fl32.Vec3
	Variable() string
}

Orientation represents an orientation

type Position

type Position interface {
	Vector() fl32.Vec2
	Variable() string
}

Position represents a position

Jump to

Keyboard shortcuts

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