init commit

This commit is contained in:
flswld
2022-11-20 15:38:00 +08:00
parent eda2b643b9
commit 3efed3defe
5834 changed files with 636508 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package constant
var LifeStateConst *LifeState
type LifeState struct {
LIFE_NONE uint16
LIFE_ALIVE uint16
LIFE_DEAD uint16
LIFE_REVIVE uint16
}
func InitLifeStateConst() {
LifeStateConst = new(LifeState)
LifeStateConst.LIFE_NONE = 0
LifeStateConst.LIFE_ALIVE = 1
LifeStateConst.LIFE_DEAD = 2
LifeStateConst.LIFE_REVIVE = 3
}