engine: Add setters for the trait interfaces

Turns out it's useful to wholesale set the entire struct.
This commit is contained in:
James Shubin
2018-12-29 01:13:31 -05:00
parent bdc33cd421
commit 4489076fac
6 changed files with 30 additions and 0 deletions

View File

@@ -44,6 +44,10 @@ var DefaultMetaParams = &MetaParams{
type MetaRes interface {
// MetaParams lets you get or set meta params for the resource.
MetaParams() *MetaParams
// SetMetaParams lets you set all of the meta params for the resource in
// a single call.
SetMetaParams(*MetaParams)
}
// MetaParams provides some meta parameters that apply to every resource.