42 lines
563 B
Go
42 lines
563 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 NewPlaceDump(options *DumpSettings) error {
|
||
|
return PlaceDumper{
|
||
|
Options: options,
|
||
|
}.Dump()
|
||
|
}
|
||
|
|
||
|
func NewPlaceBuilder(options *BuildSettings) error {
|
||
|
return PlaceBuilder{
|
||
|
Options: options,
|
||
|
}.Build()
|
||
|
}
|