Sha256: f8c38c5653597f48e739740b6b3bf725b0498ec221e9cde351d1daef31ad743b
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
module Tutorial class SqlStore include GameMachine def all_for_player(player_id) MessageLib::PlayerItem.db_find_all(player_id) end def find_by_id(id,player_id,in_transaction=false) if in_transaction MessageLib::PlayerItem.db_find(id,player_id,true) else MessageLib::PlayerItem.db_find(id,player_id) end end def save_player_item(player_item,player_id,in_transaction=false) if in_transaction player_item.db_save(player_id,true) else player_item.db_save_async(player_id) end end def delete_player_item(id,player_id) MessageLib::PlayerItem.db_delete_async(id,player_id) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
game_machine-1.0.4 | games/tutorial/sql_store.rb |
game_machine-1.0.2 | games/tutorial/sql_store.rb |