Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmpAttribute ¶
Types ¶
type APool ¶
type APool struct {
NumToAttrib map[int]Attribute `json:"-"`
NumToAttribRaw map[int][]string `json:"numToAttrib"`
AttribToNum map[Attribute]int `json:"-"`
NextNum int `json:"nextNum"`
}
func (*APool) EachAttrib ¶
func (a *APool) EachAttrib(f EachAttribFunc)
func (*APool) ToJsonable ¶
*
- @returns {Jsonable} An object that can be passed to `fromJsonable` to reconstruct this
- attribute pool. The returned object can be converted to JSON. WARNING: The returned object
- has references to internal state (it is not a deep copy). Use the `clone()` method to copy
- a pool -- do NOT do `new AttributePool().fromJsonable(pool.toJsonable())` to copy because
- the resulting shared state will lead to pool corruption.
type AttributeIterator ¶
type EachAttribFunc ¶
type EachAttribFunc func(attrib Attribute)
Click to show internal directories.
Click to hide internal directories.