コード例 #1
0
        public ModuleContainer(params WorldValue[] newValues)
        {
            Settings = new WorldSettings();
            TestAgentFactory AgentFactory = new TestAgentFactory();

            MyWorldGrid = new WorldGrid(Settings.GetSettings());
            for (int i = 0; i < Settings.GetRealValue("AgentCount"); i++)
            {
                AgentFactory.CreateAgent(MyWorldGrid);
            }

            MyWorldGrid.Started = true;
        }
コード例 #2
0
 public ModuleContainer()
 {
     AgentFactory = new TestAgentFactory();
     WorldGrid    = new WorldGrid();
 }