Adding in all the old code.
This commit is contained in:
parent
036309f582
commit
76f92171fe
29 changed files with 1581 additions and 0 deletions
43
PingPong.GameEngine/Engine.cs
Normal file
43
PingPong.GameEngine/Engine.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using csmic;
|
||||
using PingPong.Generic;
|
||||
|
||||
namespace PingPong.GameEngine
|
||||
{
|
||||
public class Engine
|
||||
{
|
||||
/// <summary>
|
||||
/// The input interpreter.
|
||||
/// </summary>
|
||||
private static Locked<Lazy<InputInterpreter>> inputInterpreter;
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the expression parser.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The expression parser.
|
||||
/// </value>
|
||||
public static InputInterpreter ExpressionParser
|
||||
{
|
||||
get
|
||||
{
|
||||
return inputInterpreter.Value.Value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public Engine()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
static Engine()
|
||||
{
|
||||
inputInterpreter = new Locked<Lazy<InputInterpreter>>(new Lazy<InputInterpreter>(() => new InputInterpreter()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue