public AttackDatabase(IThinking ThinkingObject) { //Create forn object to show a progress thinking = ThinkingObject; //get the client object for the mongo db //var server = new MongoClient(this.mongoConnection).GetServer(); ////Get the attack database //attackBoard = server.GetDatabase("attackBoard"); ////Lookup our main collection for attacks //attacks = attackBoard.GetCollection<AttackDocument>("attacks"); BuildHelperBoards(); attackData = new Dictionary <string, ulong>(); }
public World( IFactory factory, string name ) { _agent = factory.CreateAgent< IThinking >( name ?? Settings.Worlds.Names.Default ); _thinking = _agent.As< IThinking >(); }