potiontype_vector_int

package
v0.0.0-...-d7572e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func Index

func Index(i int) string

Types

type PotionTypeVector_int

type PotionTypeVector_int [potiontype.PotionType_Count]int

func (*PotionTypeVector_int) Add

func (*PotionTypeVector_int) Dec

func (PotionTypeVector_int) Get

func (*PotionTypeVector_int) Inc

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 (PotionTypeVector_int) VectorAdd

VectorAdd add element to element

func (PotionTypeVector_int) VectorSub

VectorSub sub element to element

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL