Documentation ¶
Overview ¶
Package metal implements the meta interfaces for an in-memory game model.
Index ¶
- type CallbackList
- type DefaultActions
- type EventCallbacks
- type GenericValue
- type Metal
- func (mdl *Metal) ActionNum(i int) meta.Action
- func (mdl *Metal) AreCompatible(child, parent ident.Id) (okay bool)
- func (mdl *Metal) ClassNum(i int) meta.Class
- func (mdl *Metal) EventNum(i int) meta.Event
- func (mdl *Metal) GetAction(id ident.Id) (ret meta.Action, okay bool)
- func (mdl *Metal) GetClass(id ident.Id) (ret meta.Class, okay bool)
- func (mdl *Metal) GetEvent(id ident.Id) (ret meta.Event, okay bool)
- func (mdl *Metal) GetInstance(id ident.Id) (ret meta.Instance, okay bool)
- func (mdl *Metal) GetRelation(id ident.Id) (ret meta.Relation, okay bool)
- func (mdl *Metal) InstanceNum(i int) meta.Instance
- func (mdl *Metal) MatchNounName(n string, f func(ident.Id) bool) (int, bool)
- func (mdl *Metal) NumAction() int
- func (mdl *Metal) NumClass() int
- func (mdl *Metal) NumEvent() int
- func (mdl *Metal) NumInstance() int
- func (mdl *Metal) NumParserAction() int
- func (mdl *Metal) NumRelation() int
- func (mdl *Metal) ParserActionNum(i int) meta.ParserAction
- func (mdl *Metal) Pluralize(single string) (plural string)
- func (mdl *Metal) RelationNum(i int) meta.Relation
- type ObjectValue
- type ObjectValueMap
- type PropertyCache
- type PropertyEntry
- type PropertyList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackList ¶
type CallbackList struct {
// contains filtered or unexported fields
}
func (CallbackList) CallbackNum ¶
func (cl CallbackList) CallbackNum(i int) ident.Id
func (CallbackList) NumCallback ¶
func (cl CallbackList) NumCallback() int
type GenericValue ¶
type GenericValue interface{}
type Metal ¶
func (*Metal) GetInstance ¶
func (*Metal) GetRelation ¶
func (*Metal) MatchNounName ¶
hrmmm...
func (*Metal) NumInstance ¶
func (*Metal) NumParserAction ¶
func (*Metal) NumRelation ¶
func (*Metal) ParserActionNum ¶
func (mdl *Metal) ParserActionNum(i int) meta.ParserAction
type ObjectValue ¶
type ObjectValueMap ¶
type ObjectValueMap map[string]interface{}
ObjectValueMap provides a default implementation of ObjectValue
type PropertyCache ¶
type PropertyCache map[ident.Id]PropertyList
type PropertyEntry ¶
type PropertyEntry struct { *M.PropertyModel // contains filtered or unexported fields }
array of properties ( for flat cache ) ordered for linear traversal. children appear first; redudent properties are *not* removed.
type PropertyList ¶
type PropertyList []*PropertyEntry
Source Files ¶
Click to show internal directories.
Click to hide internal directories.