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
2 weeks ago
type ID struct {
ID uint64
2 weeks ago
}
type Location struct {
2 weeks ago
X, Y, Z int64
World uint64 // this is being stored as an int in the db, overflow risk
Exits []uint64
2 weeks ago
}
type Exit struct {
To, From uint64
}
2 weeks ago
type Observable struct {
Name string
Description string
}
2 weeks ago
type Inventory struct {
Items []uint64
2 weeks ago
}
type PoolType uint64
const (
Health = iota
Mana
)
2 weeks ago
type Pool struct {
2 weeks ago
Max, Current, Regen int64
Type PoolType
2 weeks ago
}