gamefic 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +0,0 @@
1
- module Gamefic
2
- class Character
3
- module State
4
- def state
5
- @state = {}
6
- @state.merge! scene.state unless scene.nil?
7
- @state.merge! output: messages
8
- @state
9
- end
10
- end
11
- end
12
- end
@@ -1,32 +0,0 @@
1
- module Gamefic
2
-
3
- # A simple buffer class for collecting and returning data received from
4
- # plots.
5
- class User::Buffer
6
- def initialize
7
- @data = ''
8
- end
9
-
10
- # Append a message to the buffer.
11
- def send message
12
- @data += message
13
- end
14
-
15
- # Read the current buffer without clearing it.
16
- #
17
- # @return [String]
18
- def peek
19
- @data
20
- end
21
-
22
- # Get the current data and clear the buffer.
23
- #
24
- # @return [String]
25
- def flush
26
- tmp = @data
27
- @data = ''
28
- tmp
29
- end
30
- end
31
-
32
- end