mirror of
https://github.com/BigJk/end_of_eden.git
synced 2026-02-06 10:48:09 +00:00
44 lines
804 B
Go
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
|
|
}
|