void AddEntities() { //DataReader DataReaderEntity dataReader = new DataReaderEntity(this); AddChild(dataReader); //TableReader CSVReaderEntity tableReader = new CSVReaderEntity(this); AddChild(tableReader); //Physics PhysicsEntity physics = new PhysicsEntity(this); AddChild(physics); //Pathfinding PathfindingEntity pathfinding = new PathfindingEntity(this); AddChild(pathfinding); //World WorldEntity world = new WorldEntity(this); AddChild(world); //Network NetworkEntity network = new NetworkEntity(this); AddChild(network); }
void AddEntities() { //Factory AddChild(new FactoryEntity(this)); //Config ConfigEntity config = new ConfigEntity(this); AddChild(config); //Collision CollisionEntity collision = new CollisionEntity(this); AddChild(collision); //Pathfinding PathfindingEntity pathfinding = new PathfindingEntity(this); AddChild(pathfinding); //VisionManager VisionManagerEntity visionManager = new VisionManagerEntity(collision, config.GetFloat("VisionRadius"), this); AddChild(visionManager); //UnitManager UnitManagerEntity unitManager = new UnitManagerEntity(this); AddChild(unitManager); //ClientManager ClientManagerEntity clientManager = new ClientManagerEntity(this); clientManager.SetEntities(unitManager, collision, visionManager); AddChild(clientManager); //Network AddChild(new NetworkEntity(clientManager, (ushort)config.GetInt("Port"), this)); }