mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-05 19:14:14 -04:00
23 lines
297 B
Go
23 lines
297 B
Go
|
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
|
||
|
}
|