Documentation ¶
Index ¶
- Constants
- Variables
- func Index(i int) string
- type PotionTypeVector_int
- func (es *PotionTypeVector_int) Add(e potiontype.PotionType, v int)
- func (es *PotionTypeVector_int) Dec(e potiontype.PotionType)
- func (es PotionTypeVector_int) Get(e potiontype.PotionType) int
- func (es *PotionTypeVector_int) Inc(e potiontype.PotionType)
- func (es PotionTypeVector_int) Iter(fn func(i potiontype.PotionType, v int) bool) bool
- func (es *PotionTypeVector_int) SetIfGt(e potiontype.PotionType, v int)
- func (es PotionTypeVector_int) String() string
- func (es *PotionTypeVector_int) ToWeb(w http.ResponseWriter, r *http.Request) error
- func (es PotionTypeVector_int) VectorAdd(arg PotionTypeVector_int) PotionTypeVector_int
- func (es PotionTypeVector_int) VectorSub(arg PotionTypeVector_int) PotionTypeVector_int
Constants ¶
View Source
const ( HTML_tableheader = `<tr> <th>Name</th> <th>Value</th> </tr>` HTML_row = `<tr> <td>{{PotionTypeIndex $i}}</td> <td>{{$v}}</td> </tr> ` )
Variables ¶
View Source
var IndexFn = template.FuncMap{ "PotionTypeIndex": Index, }
Functions ¶
Types ¶
type PotionTypeVector_int ¶
type PotionTypeVector_int [potiontype.PotionType_Count]int
func (*PotionTypeVector_int) Add ¶
func (es *PotionTypeVector_int) Add(e potiontype.PotionType, v int)
func (*PotionTypeVector_int) Dec ¶
func (es *PotionTypeVector_int) Dec(e potiontype.PotionType)
func (PotionTypeVector_int) Get ¶
func (es PotionTypeVector_int) Get(e potiontype.PotionType) int
func (*PotionTypeVector_int) Inc ¶
func (es *PotionTypeVector_int) Inc(e potiontype.PotionType)
func (PotionTypeVector_int) Iter ¶
func (es PotionTypeVector_int) Iter(fn func(i potiontype.PotionType, v int) bool) bool
Iter return true if iter stop, return false if iter all fn return true to stop iter
func (*PotionTypeVector_int) SetIfGt ¶
func (es *PotionTypeVector_int) SetIfGt(e potiontype.PotionType, v int)
func (PotionTypeVector_int) String ¶
func (es PotionTypeVector_int) String() string
func (*PotionTypeVector_int) ToWeb ¶
func (es *PotionTypeVector_int) ToWeb(w http.ResponseWriter, r *http.Request) error
func (PotionTypeVector_int) VectorAdd ¶
func (es PotionTypeVector_int) VectorAdd(arg PotionTypeVector_int) PotionTypeVector_int
VectorAdd add element to element
func (PotionTypeVector_int) VectorSub ¶
func (es PotionTypeVector_int) VectorSub(arg PotionTypeVector_int) PotionTypeVector_int
VectorSub sub element to element
Click to show internal directories.
Click to hide internal directories.