class

MicroSpaceEmpire::Store

Inherits Reference < Object

Constructors

new(db : DB::Database)
Source
open(root : String = ENV.fetch("MSE_ROOT", Dir.current)) : Store
Source

Instance methods

close
Source
create(name : String, state : GameState) : SaveRecord
Source
create_unsaved(state : GameState) : SaveRecord
Source
delete(id : Int64) : Nil
Source
get(id : Int64) : SaveRecord
Source
list
Source
migrate!
Source
rename(id : Int64, name : String) : Nil
Source
save(id : Int64, name : String) : SaveRecord
Source
start_new(current_id : Int64, state : GameState, save_current_as : String | Nil = nil) : SaveRecord
Source
update(id : Int64, expected_version : Int32, state : GameState) : SaveRecord
Source