Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOEquipmentType(Conveniences) Category Reference

#include <OOEquipmentType.h>

Instance Methods

(OOTechLevelID- effectiveTechLevel
 

Detailed Description

Definition at line 171 of file OOEquipmentType.h.

Method Documentation

◆ effectiveTechLevel

- (OOTechLevelID) effectiveTechLevel

Extends class OOEquipmentType.

Definition at line 40 of file OOEquipmentType.m.

829{
830 OOTechLevelID tl;
831 id missionVar = nil;
832
833 tl = [self techLevel];
834 if (tl == kOOVariableTechLevel)
835 {
836 OOStandardsDeprecated([NSString stringWithFormat:@"TL99 is deprecated for %@",[self identifier]]);
837 if (!OOEnforceStandards())
838 {
839 missionVar = [PLAYER missionVariableForKey:[@"mission_TL_FOR_" stringByAppendingString:[self identifier]]];
840 tl = OOUIntegerFromObject(missionVar, tl);
841 }
842 }
843
844 return tl;
845}
OOINLINE NSInteger OOUIntegerFromObject(id object, NSUInteger defaultValue)
void OOStandardsDeprecated(NSString *message)
BOOL OOEnforceStandards(void)
return nil
@ kOOVariableTechLevel
Definition OOTypes.h:202
NSUInteger OOTechLevelID
Definition OOTypes.h:204

The documentation for this category was generated from the following files: