mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-18 01:52:33 +00:00
Inital Import of asterisk_gosu into launcher, non-functional.
This commit is contained in:
21
lib/asterisk/game.rb
Normal file
21
lib/asterisk/game.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
class W3DHub
|
||||
class Asterisk
|
||||
class Game
|
||||
attr_accessor :title, :path
|
||||
|
||||
def initialize(hash = nil)
|
||||
return unless hash
|
||||
|
||||
@title = hash[:title]
|
||||
@path = hash[:path]
|
||||
end
|
||||
|
||||
def to_json(options)
|
||||
{
|
||||
title: @title,
|
||||
path: @path
|
||||
}.to_json(options)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user