rooms

package
v0.0.0-...-cc63efc Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRoom

func BuildRoom(name string) *game.Room

func GetRoom

func GetRoom(name string) *game.Room

func GetRoomNames

func GetRoomNames() (names []string)

Types

type EntityDef

type EntityDef struct {
	Actor      string
	OnCreate   actors.CreateFunc
	OnInteract actors.InteractFunc
}

type EntityDefs

type EntityDefs map[string]EntityDef

type Room

type Room struct {
	// contains filtered or unexported fields
}

func (*Room) ToGameRoom

func (r *Room) ToGameRoom() *game.Room

type TileDef

type TileDef struct {
	Name       string
	Sprite     string
	BlocksMove bool
	Rotation   float64
}

type TileDefs

type TileDefs map[string]TileDef

Jump to

Keyboard shortcuts

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