MCPcopy Create free account
hub / github.com/SolarLune/masterplan / AsInt

Method AsInt

properties.go:69–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (prop *Property) AsInt() int {
70 if prop.data == nil {
71 prop.data = 0
72 }
73 return int(prop.data.(float64))
74}
75
76func (prop *Property) AsMap() map[string]interface{} {
77 if prop.data == nil {

Callers 4

DrawMethod · 0.80
NewTimerContentsFunction · 0.80
UpdateTargetTimerTextMethod · 0.80
UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected