resourcemanager

package module
v0.0.0-...-90f0e2a Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 7 Imported by: 0

README

Ebitengine Resource Manager

Discord Subreddit

This project is built to manage the resources for an ebitengine application.

Features

  • Ability to use a provided Filesystem.
  • Management of:
    • Audio Tracks
    • Font Faces
    • ebiten.Images
    • JSON
    • Generic Resources

License

The template is licensed under the MIT license.

Maintainers

Contributing

Want to help improve the template? Check out our current issues.

Want to know the steps on how to start contributing, take a look at the open source guide.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomID

type CustomID int

type JSONID

type JSONID int

type ResourceManager

type ResourceManager struct {
	Audio *audiomanager.AudioManager
	Font  *fontmanager.FontManager
	Image *imagemanager.ImageManager
	// contains filtered or unexported fields
}

func Create

func Create() ResourceManager

func CreateWithFS

func CreateWithFS(fs fs.FS) ResourceManager

func (*ResourceManager) AddCustomManager

func (rm *ResourceManager) AddCustomManager(id CustomID, custom *custommanager.CustomManager[any])

func (*ResourceManager) AddJSONManager

func (rm *ResourceManager) AddJSONManager(id JSONID, json *jsonmanager.JSONManager[any])

func (*ResourceManager) GetCustomManager

func (rm *ResourceManager) GetCustomManager(id CustomID) *custommanager.CustomManager[any]

func (*ResourceManager) GetJSONManager

func (rm *ResourceManager) GetJSONManager(id JSONID) *jsonmanager.JSONManager[any]

func (*ResourceManager) RemoveCustomManager

func (rm *ResourceManager) RemoveCustomManager(id CustomID)

func (*ResourceManager) RemoveJSONManager

func (rm *ResourceManager) RemoveJSONManager(id JSONID)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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