last_light/game/component/game_state.go

17 lines
328 B
Go
Raw Permalink Normal View History

2024-05-18 20:38:46 +03:00
package component
import (
"mvvasilev/last_light/engine/ecs"
"mvvasilev/last_light/game/state"
)
const ComponentType_GameStateComponent = ecs.ComponentType_2
type GameStateComponent struct {
GameState *state.GameState
}
func (gsc *GameStateComponent) Type() ecs.ComponentType {
return ComponentType_GameStateComponent
}