Files @ r28672:8ec1f5f8a9d1
Branch filter:

Location: cpp/openttd-patchpack/source/src/linkgraph/init.h

Peter Nelson
Change: Decouple and remove landscape-dependent cargo types. (#11719)

Cargo types of default engines, industries and houses are now specified in terms of label.
/** @file init.h Declaration of initializing link graph handler. */

#ifndef INIT_H
#define INIT_H

#include "linkgraphjob_base.h"

/**
 * Stateless, thread safe initialization handler. Initializes node and edge
 * annotations.
 */
class InitHandler : public ComponentHandler {
public:

	/**
	 * Initialize the link graph job.
	 * @param job Job to be initialized.
	 */
	void Run(LinkGraphJob &job) const override { job.Init(); }
};

#endif /* INIT_H */