Documentation ¶
Index ¶
- type CustomID
- type JSONID
- type ResourceManager
- func (rm *ResourceManager) AddCustomManager(id CustomID, custom any)
- func (rm *ResourceManager) AddJSONManager(id JSONID, json any)
- func (rm *ResourceManager) GetCustomManager(id CustomID) any
- func (rm *ResourceManager) GetJSONManager(id JSONID) any
- func (rm *ResourceManager) RemoveCustomManager(id CustomID)
- func (rm *ResourceManager) RemoveJSONManager(id JSONID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 any)
func (*ResourceManager) AddJSONManager ¶
func (rm *ResourceManager) AddJSONManager(id JSONID, json any)
func (*ResourceManager) GetCustomManager ¶
func (rm *ResourceManager) GetCustomManager(id CustomID) any
func (*ResourceManager) GetJSONManager ¶
func (rm *ResourceManager) GetJSONManager(id JSONID) any
func (*ResourceManager) RemoveCustomManager ¶
func (rm *ResourceManager) RemoveCustomManager(id CustomID)
func (*ResourceManager) RemoveJSONManager ¶
func (rm *ResourceManager) RemoveJSONManager(id JSONID)
Click to show internal directories.
Click to hide internal directories.