26 lines
883 B
Plaintext
26 lines
883 B
Plaintext
package game
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"g.r-io.lu/shynd/kemoforge/pkg/KFData/KFFS"
|
|
)
|
|
|
|
// TODO: allow full editing of this file by creating a new file with an init on build that will allow embedding more files
|
|
|
|
// ---*** you can add any embedded files located within the game directory simply by adding them after the Game.KFConfig file ***---
|
|
// ---*** you need to separate each file with a space, not a comma or newline ***---
|
|
// ---*** example: Game.KFConfig Game.KFScene Game.KFLayout or even directories like Game.KFConfig data assets ***---
|
|
// ---*** the file will be loaded into the embedded filesystem and can be accessed using the KFFS package ***---
|
|
|
|
//go:embed Game.KFConfig
|
|
var gameFS embed.FS
|
|
|
|
// Import - This needs to be run for the embedded filesystem to work
|
|
func Import() {}
|
|
|
|
func init() {
|
|
// set the embedded filesystem to use for loading files
|
|
KFFS.EmbedFS(gameFS)
|
|
}
|