42 lines
554 B
Go
42 lines
554 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()
|
|
}
|