Description:
Add missing files.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -0,0 +1,38 | |||||
|
|
1 | |||
|
|
2 | using System; | ||
|
|
3 | using System.Linq; | ||
|
|
4 | |||
|
|
5 | using Encompass; | ||
|
|
6 | using TraceryNet; | ||
|
|
7 | |||
|
|
8 | using isometricparkfna.Messages; | ||
|
|
9 | using isometricparkfna.Components; | ||
|
|
10 | |||
|
|
11 | namespace isometricparkfna.Engines | ||
|
|
12 | { | ||
|
|
13 | |||
|
|
14 | [Receives(typeof(SetTextVariableMessage))] | ||
|
|
15 | public class TraceryBridgeEngine : Engine | ||
|
|
16 | { | ||
|
|
17 | public Grammar grammar; | ||
|
|
18 | |||
|
|
19 | public TraceryBridgeEngine(Grammar grammar) | ||
|
|
20 | { | ||
|
|
21 | this.grammar = grammar; | ||
|
|
22 | } | ||
|
|
23 | |||
|
|
24 | |||
|
|
25 | public override void Update(double dt) | ||
|
|
26 | { | ||
|
|
27 | foreach (ref readonly var message in ReadMessages<SetTextVariableMessage>()) | ||
|
|
28 | { | ||
|
|
29 | string variableString = "#"; | ||
|
|
30 | variableString += String.Format("[{0}:{1}]", message.variable, message.value); | ||
|
|
31 | variableString += "vars# "; | ||
|
|
32 | Logging.Spy(new {var_string = variableString}); | ||
|
|
33 | var result = grammar.Flatten(variableString); | ||
|
|
34 | } | ||
|
|
35 | } | ||
|
|
36 | |||
|
|
37 | } | ||
|
|
38 | } |
@@ -0,0 +1,13 | |||||
|
|
1 | |||
|
|
2 | using Encompass; | ||
|
|
3 | |||
|
|
4 | namespace isometricparkfna.Messages | ||
|
|
5 | { | ||
|
|
6 | |||
|
|
7 | |||
|
|
8 | public struct SetTextVariableMessage : IMessage | ||
|
|
9 | { | ||
|
|
10 | public string variable; | ||
|
|
11 | public string value; | ||
|
|
12 | } | ||
|
|
13 | } |
@@ -225,7 +225,7 | |||||
|
225 | this.DateTime = new DateTime(START_YEAR, START_MONTH, START_DAY); |
|
225 | this.DateTime = new DateTime(START_YEAR, START_MONTH, START_DAY); |
|
226 |
|
226 | ||
|
227 | this.map = new CellMap(width, height); |
|
227 | this.map = new CellMap(width, height); |
|
228 | this.money = 100000; |
|
228 | this.money = 100000M; |
|
229 | this.millisecondsPerAdvance = millisecondsPerAdvance; |
|
229 | this.millisecondsPerAdvance = millisecondsPerAdvance; |
|
230 |
|
230 | ||
|
231 | this.paused = true; |
|
231 | this.paused = true; |
You need to be logged in to leave comments.
Login now