old0_0_1

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	ID            AssetID        `json:"id"`
	Name          string         `json:"name"`
	Path          string         `json:"path"`
	BoundingBoxes []*BoundingBox `json:"boundingBoxes"`
}

func NewAssetFromJson

func NewAssetFromJson(contents []byte) (*Asset, error)

func (*Asset) Migrate

func (a *Asset) Migrate() (*model.Asset, bool)

type AssetID

type AssetID uint64

type BoundingBox

type BoundingBox struct {
	ID     BoundingBoxID `json:"id"`
	Tag    *Tag          `json:"tag"`
	X      int           `json:"x"`
	Y      int           `json:"y"`
	Width  int           `json:"width"`
	Height int           `json:"height"`
}

func (*BoundingBox) Migrate

func (b *BoundingBox) Migrate() (*model.BoundingBox, bool)

type BoundingBoxID

type BoundingBoxID uint64

type Tag

type Tag struct {
	ID   TagID  `json:"id"`
	Name string `json:"name"`
}

type TagID

type TagID uint64

Jump to

Keyboard shortcuts

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