1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-27 01:25:35 +00:00
OpenDiablo2/common/GameState.go

23 lines
297 B
Go
Raw Normal View History

2019-11-07 03:12:15 +00:00
package common
import (
"log"
"time"
)
type GameState struct {
Seed int64
}
func CreateGameState() *GameState {
result := &GameState{
Seed: time.Now().UnixNano(),
}
return result
}
func LoadGameState(path string) *GameState {
log.Fatal("LoadGameState not implemented.")
return nil
}