Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TraitsAttribute ¶
type TraitsAttribute interface {
Load(container *WzTraitsContainer)
}
TraitsAttribute is an interface
type WzTraits ¶
type WzTraits struct {
// contains filtered or unexported fields
}
WzTraits struct
func NewTraits ¶
NewTraits constructor.
WzTraits is a compount object that is loading all possible traits, registered to it and returns a self-contained instance.
func (*WzTraits) GetContainer ¶
func (tl *WzTraits) GetContainer() *WzTraitsContainer
GetContainer returns a traits container
func (*WzTraits) LoadAttribute ¶
func (tl *WzTraits) LoadAttribute(attr TraitsAttribute)
LoadAttribute to the WzTraits container
type WzTraitsContainer ¶
type WzTraitsContainer struct { wzlib_logger.WzLogger // contains filtered or unexported fields }
func (*WzTraitsContainer) Get ¶
func (wt *WzTraitsContainer) Get(trait string) interface{}
Get a trait
func (*WzTraitsContainer) LoadFromFile ¶
func (wt *WzTraitsContainer) LoadFromFile(fpath string) *WzTraitsContainer
LoadFromFile traits
func (*WzTraitsContainer) SaveToFile ¶
func (wt *WzTraitsContainer) SaveToFile(fpath string)
Save traits to the file
func (*WzTraitsContainer) Set ¶
func (wt *WzTraitsContainer) Set(trait string, value interface{})
Set a trait to a permanent storage
Click to show internal directories.
Click to hide internal directories.