Documentation ¶
Overview ¶
Package datapack allows users to extend Gophercraft with ease. It describes a simple format for loading data into Gophercraft and compatible clients Planned formats include:
Lua scripts 3d objects/textures Map geometry Sound files files for patching the server and client databases
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFileNotFound = fmt.Errorf("datapack: file not found")
)
Functions ¶
func RegisterDriver ¶
Types ¶
type Driver ¶
type Driver interface { Init(at string) (Opts, error) ReadFile(at string) (File, error) WriteFile(at string) (WriteFile, error) List() []string Close() error }
Driver describes a mechanism for loading a datapack.
type File ¶
type File io.ReadCloser
type Pack ¶
type Pack struct { PackConfig Opts Driver }
func Author ¶
func Author(cfg PackConfig) (*Pack, error)
type PackConfig ¶
type WriteFile ¶
type WriteFile io.WriteCloser
Click to show internal directories.
Click to hide internal directories.