object

package
v0.0.0-...-2482a4e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeState

func ChangeState(handle *backend.Handle, stateName string, entityId int64) error

func HasEntityPixelCollision

func HasEntityPixelCollision(handle *backend.Handle, entityId int64, position backend.Position) (bool, error)

func InsertDot

func InsertDot(handle *backend.Handle, pos backend.Position, color backend.Color) (int64, error)

func InsertLine

func InsertLine(handle *backend.Handle, here backend.Position, there backend.Position, color backend.Color) (int64, error)

func QuerySceneId

func QuerySceneId(handle *backend.Handle, sceneName string) (int64, error)

func ScrollScene

func ScrollScene(handle *backend.Handle, sceneId int64, scrollX int32, scrollY int32) error

func UpdateLineThere

func UpdateLineThere(handle *backend.Handle, lineId int64, there backend.Position) error

Types

type Dot

type Dot struct {
	backend.Object
	backend.Position
	backend.Color
	Id int64
}

type Dots

type Dots struct {
	*backend.Rows
}

func QueryDots

func QueryDots(handle *backend.Handle) (*Dots, error)

func (Dots) Close

func (dots Dots) Close()

func (Dots) Next

func (dots Dots) Next() (*Dot, error)

type Image

type Image struct {
	Id        int64
	Name      string
	ImagePath string
}

type Images

type Images struct {
	*backend.Rows
}

func QueryImages

func QueryImages(handle *backend.Handle, sceneId int64) (*Images, error)

func (Images) Close

func (images Images) Close()

func (Images) Next

func (images Images) Next() (*Image, error)

type Line

type Line struct {
	backend.Object
	backend.Color
	Id    int64
	Here  backend.Position
	There backend.Position
}

type Lines

type Lines struct {
	*backend.Rows
}

func QueryLines

func QueryLines(handle *backend.Handle) (*Lines, error)

func (Lines) Close

func (lines Lines) Close()

func (Lines) Next

func (lines Lines) Next() (*Line, error)

type Sprite

type Sprite struct {
	Id         int64
	Name       string
	SrcLayout  *sdl.Rect
	DestLayout *sdl.Rect
}

type Sprites

type Sprites struct {
	*backend.Rows
}

func QuerySprites

func QuerySprites(handle *backend.Handle, sceneId int64) (*Sprites, error)

func (Sprites) Close

func (sprites Sprites) Close()

func (Sprites) Next

func (sprites Sprites) Next() (*Sprite, error)

Jump to

Keyboard shortcuts

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