|
Oolite 1.91.0.7712-251017-85ce217
|
import "OODebugStandards.h"import "OOLogging.h"import "OOCollectionExtractors.h"import "GameController.h"Go to the source code of this file.
Enumerations | |
| enum | OOStandardsEnforcement { STANDARDS_ENFORCEMENT_OFF = 0 , STANDARDS_ENFORCEMENT_WARN , STANDARDS_ENFORCEMENT_ENFORCE , STANDARDS_ENFORCEMENT_QUIT } |
Functions | |
| void | OOStandardsSetup (void) |
| void | OOStandardsInternal (NSString *type, NSString *message) |
| void | OOStandardsDeprecated (NSString *message) |
| void | OOStandardsError (NSString *message) |
| BOOL | OOEnforceStandards () |
| void | OOSetStandardsForOXPVerifierMode () |
Variables | |
| static BOOL | sSetup = NO |
| static OOStandardsEnforcement | sEnforcement = STANDARDS_ENFORCEMENT_WARN |
| Enumerator | |
|---|---|
| STANDARDS_ENFORCEMENT_OFF | |
| STANDARDS_ENFORCEMENT_WARN | |
| STANDARDS_ENFORCEMENT_ENFORCE | |
| STANDARDS_ENFORCEMENT_QUIT | |
Definition at line 49 of file OODebugStandards.m.
| BOOL OOEnforceStandards | ( | void | ) |
Definition at line 114 of file OODebugStandards.m.
References OOStandardsSetup(), sEnforcement, and STANDARDS_ENFORCEMENT_ENFORCE.
Referenced by OOShipRegistry(OODataLoader)::canonicalizeSubentityDeclaration:forShip:shipData:fatalError:, ResourceManager::checkPotentialPath:path:, OOEquipmentType(Conveniences)::effectiveTechLevel, EquipmentInfoSetProperty(), OOEquipmentType(Private)::initWithInfo:, LoadScriptWithName(), MissionMarkSystem(), MissionUnmarkSystem(), Universe::populateNormalSpace, ResourceManager::roleCategoriesDictionary, OOShipRegistry(OODataLoader)::sanitizeConditions:, OOScript::scriptsFromFileAtPath:, ShipEntity::setShipScript:, StationEntity::setUpShipFromDictionary:, Universe::setUpWitchspaceBetweenSystem:andSystem:, and OOScript::worldScriptsAtPath:.
| void OOSetStandardsForOXPVerifierMode | ( | void | ) |
Definition at line 121 of file OODebugStandards.m.
References sEnforcement, sSetup, and STANDARDS_ENFORCEMENT_WARN.
Referenced by OOOXPVerifier(OOPrivate)::initWithPath:.
| void OOStandardsDeprecated | ( | NSString * | message | ) |
Definition at line 102 of file OODebugStandards.m.
References OOStandardsInternal().
Referenced by OOShipRegistry(OODataLoader)::canonicalizeSubentityDeclaration:forShip:shipData:fatalError:, ClockGetProperty(), ShipEntity::dealEnergyDamageWithinDesiredRange, OOEquipmentType(Conveniences)::effectiveTechLevel, EquipmentInfoSetProperty(), OOEquipmentType(Private)::initWithInfo:, LoadScriptWithName(), MissionMarkSystem(), MissionUnmarkSystem(), Universe::populateNormalSpace, ResourceManager::roleCategoriesDictionary, OOShipRegistry(OODataLoader)::sanitizeConditions:, OOScript::scriptsFromFileAtPath:, ShipEntity::setShipScript:, StationEntity::setUpShipFromDictionary:, StationEntity::setUpSubEntities, Universe::setUpWitchspaceBetweenSystem:andSystem:, Universe::spawnShip:, SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), and OOScript::worldScriptsAtPath:.
| void OOStandardsError | ( | NSString * | message | ) |
Definition at line 108 of file OODebugStandards.m.
References OOStandardsInternal().
Referenced by OOShipRegistry(OODataLoader)::applyLikeShips:withKey:, OOShipRegistry(OODataLoader)::canonicalizeAndTagSubentities:, ResourceManager::checkPotentialPath:path:, OOMesh(Private)::loadData:scaleFactor:, OOTextureLoader::loaderWithTextureSpecifier:extraOptions:folder:, and OOShipRegistry(OODataLoader)::removeUnusableEntries:shipMode:.
| void OOStandardsInternal | ( | NSString * | type, |
| NSString * | message ) |
Definition at line 84 of file OODebugStandards.m.
References GameController::exitAppWithContext:, OOLog, OOStandardsSetup(), sEnforcement, GameController::sharedController, STANDARDS_ENFORCEMENT_OFF, and STANDARDS_ENFORCEMENT_QUIT.
Referenced by OOStandardsDeprecated(), and OOStandardsError().
| void OOStandardsSetup | ( | void | ) |
Definition at line 63 of file OODebugStandards.m.
References sEnforcement, sSetup, STANDARDS_ENFORCEMENT_OFF, and STANDARDS_ENFORCEMENT_QUIT.
Referenced by OOEnforceStandards(), and OOStandardsInternal().
|
static |
Definition at line 60 of file OODebugStandards.m.
Referenced by OOEnforceStandards(), OOSetStandardsForOXPVerifierMode(), OOStandardsInternal(), and OOStandardsSetup().
|
static |
Definition at line 47 of file OODebugStandards.m.
Referenced by OOSetStandardsForOXPVerifierMode(), and OOStandardsSetup().