layout

package
v0.0.0-...-042122a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CellSeat = iota + 1
	CellTable
	CellBookshelf
	CellWall
	CellDoor
	CellWindow
)

1-座位,2-桌子,3-书架,4-墙,5-门,6-窗户

View Source
const (
	CellStatusFree = iota + 1
	CellStatusUsing
	CellStatusLock
)

1-空闲,2-使用中,3-锁定

View Source
const (
	StatusAll = iota
	StatusEnable
	StatusDisable
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	X       int        `json:"x"`
	Y       int        `json:"y"`
	VectorX int        `json:"vx"`
	VectorY int        `json:"vy"`
	No      int        `json:"n"`
	Label   string     `json:"l"`
	Type    CellType   `json:"t"`
	Status  CellStatus `json:"s"`
}

Cell 一个格子的信息

type CellStatus

type CellStatus int

CellStatus 格子状态

type CellType

type CellType int

CellType 格子类型

type Status

type Status int

Jump to

Keyboard shortcuts

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