示例#1
0
 public GameContext(IMemoryAPI api)
 {
     API    = api;
     Player = new Player(api);
     Config = new ProxyConfig();
     Memory = new StateMemory(api);
     Target = new NullUnit();
 }
示例#2
0
 public GameContext(IMemoryAPI api)
 {
     API     = api;
     Player  = new Player(api);
     Config  = new ProxyConfig();
     Memory  = new StateMemory(api);
     Target  = new NullUnit();
     NavMesh = new NavMesh();
     Zone    = api.Player.Zone;
     NavMesh.LoadZone(_zone);
 }
示例#3
0
 public TestContext()
 {
     Units = new List <IUnit> {
         new MockUnit()
     };
     Config  = new MockConfig();
     Player  = new MockPlayer();
     Target  = new NullUnit();
     MockAPI = new MockEliteAPI();
     API     = new MockEliteAPIAdapter(MockAPI);
     Memory  = new StateMemory(API);
 }
示例#4
0
 public abstract T Visit(NullUnit v);
 public BoolUnit(NullUnit value)
 {
     this.value = value;
 }