You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
467 B
Go

package components
type ID struct {
ID uint64
}
type Location struct {
X, Y, Z int64
World uint64 // this is being stored as an int in the db, overflow risk
Exits []uint64
}
type Exit struct {
To, From uint64
}
type Observable struct {
Name string
Description string
}
type Inventory struct {
Items []uint64
}
type PoolType uint64
const (
Health = iota
Mana
)
type Pool struct {
Max, Current, Regen int64
Type PoolType
}