rbxcompiler/internal/rbxbuilder/rbxbuilder.go
2020-10-07 16:18:35 -04:00

48 lines
660 B
Go

package rbxbuilder
import "io"
type DumpSettings struct {
Source string
Output string
Download bool
Asset struct {
Id int
Group int
}
}
type BuildSettings struct {
Source string
Output string
Writer io.Writer
}
type Manifest struct {
Override []Script
Template []byte
}
type Script struct {
Path string
Class string
}
func DumpPlace(options *DumpSettings) error {
return PlaceDumper{
Options: options,
}.Dump()
}
func BuildPlace(options *BuildSettings) error {
return PlaceBuilder{
Options: options,
}.Build()
}
func BuildScript(options *BuildSettings) error {
return ScriptBuilder{
Options: options,
}.Build()
}