diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-26 23:38:09 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-26 23:38:09 -0400 |
commit | f320bb3bad4f2c3445714f0b45c3a61857203d3f (patch) | |
tree | cd7358553d3aa150bf6741ace17f66972483d328 /lib/sampling/manual.rb | |
parent | cbdccb99bcad74ffc98f6964fe504e20cfe0cdc2 (diff) | |
parent | 40939795096c0b7a1791d71d920b84ff283fb550 (diff) |
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/sampling/manual.rb')
-rw-r--r-- | lib/sampling/manual.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/sampling/manual.rb b/lib/sampling/manual.rb new file mode 100644 index 0000000..17c8104 --- /dev/null +++ b/lib/sampling/manual.rb @@ -0,0 +1,35 @@ +module Sampling + module HostEntry + def self.works_with?(game) + return true + end + + def self.uses_remote? + return false + end + + def self.set_remote_name(user, game, value) + raise "This sampling method doesn't use remote usernames." + end + + def self.get_remote_name(value) + raise "This sampling method doesn't use remote usernames." + end + + def self.sampling_start(match) + # TODO + end + + def self.sampling_done?(match) + # TODO + end + + def self.render_user_interaction(match, user) + + end + + def self.handle_user_interaction(match, user, sampling_params) + match.statistics.create(user: nil, name: "blowout", + end + end +end |