end_of_eden/game/status_effect.go
2023-12-22 20:12:22 +01:00

44 lines
804 B
Go

package game
import (
"encoding/gob"
"github.com/BigJk/end_of_eden/internal/lua/luhelp"
)
func init() {
gob.Register(StatusEffectInstance{})
}
type DecayBehaviour string
const (
DecayAll = DecayBehaviour("DecayAll")
DecayOne = DecayBehaviour("DecayOne")
DecayNone = DecayBehaviour("DecayNone")
)
type StatusEffect struct {
ID string
Name string
Description string
State luhelp.OwnedCallback
Look string
Foreground string
Order int
CanStack bool
Decay DecayBehaviour
Rounds int
Callbacks map[string]luhelp.OwnedCallback
Test luhelp.OwnedCallback
BaseGame bool
}
type StatusEffectInstance struct {
GUID string
TypeID string
Owner string
Stacks int
RoundsLeft int
RoundEntered int
}