Noah Petherbridge
6be2f86b58
* For the doodad tool: skip the assets embed folder, the doodad binary doesn't need to include all the game's doodads/levelpacks/etc. and can save on file size. * In `doodad resave`, .doodad files with Vacuum() and upgrade their chunker from the MapAccessor to the RLEAccessor. * Fix a rare concurrent map read/write error in OptimizeChunkerAccessors.
33 lines
681 B
Go
33 lines
681 B
Go
//go:build doodad
|
|
// +build doodad
|
|
|
|
// Dummy version of assets_embed.go that doesn't embed any files.
|
|
// For the `doodad` tool.
|
|
|
|
package assets
|
|
|
|
import (
|
|
"embed"
|
|
"errors"
|
|
)
|
|
|
|
var Embedded embed.FS
|
|
|
|
var errNotEmbedded = errors.New("assets not embedded")
|
|
|
|
// AssetDir returns the list of embedded files at the directory name.
|
|
func AssetDir(name string) ([]string, error) {
|
|
return nil, errNotEmbedded
|
|
}
|
|
|
|
// Asset returns the byte data of an embedded asset.
|
|
func Asset(name string) ([]byte, error) {
|
|
return nil, errNotEmbedded
|
|
}
|
|
|
|
// AssetNames dumps the names of all embedded assets,
|
|
// with their legacy "assets/" prefix from go-bindata.
|
|
func AssetNames() []string {
|
|
return nil
|
|
}
|