1 /* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
2 
3 #ifndef E_LEVEL_OF_SUPPORT_H
4 #define	E_LEVEL_OF_SUPPORT_H
5 
6 #ifdef	__cplusplus
7 extern "C" {
8 #endif
9 
10 /**
11  * @brief level of support
12  *
13  * This is used by Skirmish AIs for example.
14  * The engine can pass some info to the AI,
15  * eg. a mod name plus version and the engine version,
16  * and the AI will report with a value from this enum,
17  * to indicate the level of support it can serve for a
18  * game using all of the supplied info.
19  * If the AI is unable to determine its level of support,
20  * it should return LOS_Unknown.
21  */
22 enum LevelOfSupport {
23 	LOS_None,		// 0: will (possibly) result in a crash
24 	LOS_Bad,		// 1: does not work correctly, eg.: does nothing, just stand around, but neither does crash
25 	LOS_Working,	// 2: does work, but may not use all info the engine and ai interface supply
26 	LOS_Compleet,	// 3: does work and use the engine and ai interface to the fullest,
27 					//    but is optimised for newer versions
28 	LOS_Optimal,	// 4: is made optimally suitet for this engine and ai interface version
29 	LOS_Unknown		// 5: not evaluated (used eg when a library is not accessed directly,
30 					//    but info is loaded from a file)
31 };
32 
33 #ifdef	__cplusplus
34 } // extern "C"
35 #endif
36 
37 #endif // E_LEVEL_OF_SUPPORT_H
38