assets_2d

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assets2d

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

func NewAssets2d

func NewAssets2d(db database.DB) *Assets2d

func (*Assets2d) AddAsset2d

func (a *Assets2d) AddAsset2d(asset2d universe.Asset2d, updateDB bool) error

func (*Assets2d) AddAssets2d

func (a *Assets2d) AddAssets2d(assets2d []universe.Asset2d, updateDB bool) error

func (*Assets2d) CreateAsset2d

func (a *Assets2d) CreateAsset2d(asset2dID umid.UMID) (universe.Asset2d, error)

func (*Assets2d) FilterAssets2d

func (a *Assets2d) FilterAssets2d(predicateFn universe.Assets2dFilterPredicateFn) map[umid.UMID]universe.Asset2d

func (*Assets2d) GetAsset2d

func (a *Assets2d) GetAsset2d(asset2dID umid.UMID) (universe.Asset2d, bool)

func (*Assets2d) GetAssets2d

func (a *Assets2d) GetAssets2d() map[umid.UMID]universe.Asset2d

func (*Assets2d) Initialize

func (a *Assets2d) Initialize(ctx types.NodeContext) error

func (*Assets2d) Load

func (a *Assets2d) Load() error

func (*Assets2d) RegisterAPI

func (a *Assets2d) RegisterAPI(r *gin.Engine)

func (*Assets2d) RemoveAsset2d

func (a *Assets2d) RemoveAsset2d(asset2d universe.Asset2d, updateDB bool) (bool, error)

func (*Assets2d) RemoveAssets2d

func (a *Assets2d) RemoveAssets2d(assets2d []universe.Asset2d, updateDB bool) (bool, error)

func (*Assets2d) Save

func (a *Assets2d) Save() error

Jump to

Keyboard shortcuts

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