rbxcompiler/internal/rbxbuilder/rbxbuilder.go

48 lines
660 B
Go
Raw Permalink Normal View History

2020-09-29 20:58:00 +00:00
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
2020-09-29 22:25:53 +00:00
Writer io.Writer
2020-09-29 20:58:00 +00:00
}
type Manifest struct {
Override []Script
Template []byte
}
type Script struct {
Path string
Class string
}
2020-09-29 22:25:53 +00:00
func DumpPlace(options *DumpSettings) error {
2020-09-29 20:58:00 +00:00
return PlaceDumper{
Options: options,
}.Dump()
}
2020-09-29 22:25:53 +00:00
func BuildPlace(options *BuildSettings) error {
2020-09-29 20:58:00 +00:00
return PlaceBuilder{
Options: options,
}.Build()
}
2020-10-07 20:18:35 +00:00
func BuildScript(options *BuildSettings) error {
return ScriptBuilder{
Options: options,
}.Build()
}