ogd.core.generators.legacy package

Submodules

ogd.core.generators.legacy.LegacyDetector module

class ogd.core.generators.legacy.LegacyDetector.LegacyDetector(params: GeneratorParameters)[source]

Bases: Detector

Dummy version of a detector, so that LegacyLoader can return something that’s not None.

ogd.core.generators.legacy.LegacyFeature module

class ogd.core.generators.legacy.LegacyFeature.LegacyFeature(params: GeneratorParameters, game_schema: GameSchema, session_id: str)[source]

Bases: Extractor

GetFeatureNames() List[str][source]

Base function to get a list of names of the feature(s) a given Feature class outputs. By default, a Feature class just generates one value, and uses its own name (defined in the schema.json file). If Subfeatures was overridden, and returns a non-empty list, there will be additional feature names in the list this function returns. Each subfeature will have the base feature’s name as a prefix.

Returns:

[description]

Return type:

List[str]

class LegacySessionFeatures(game_schema: GameSchema)[source]

Bases: object

property FeatureNames[source]
property Features[source]
getFeatureByIndex(feature_name: str, index: int) Any | None[source]
getValByIndex(feature_name: str, index: int) Any | None[source]
getValByName(feature_name: str) Any | None[source]
incAggregateVal(feature_name: str, increment: int | float = 1) None[source]
incValByIndex(feature_name: str, index: int, increment: int | float = 1) None[source]
incValByLevel(feature_name: str, level: int, increment: int | float = 1) None[source]
initLevel(level) None[source]
setValByIndex(feature_name: str, index: int, new_value) None[source]
setValByLevel(feature_name: str, level: int, new_value) None[source]
setValByName(feature_name: str, new_value) None[source]

ogd.core.generators.legacy.LegacyLoader module

class ogd.core.generators.legacy.LegacyLoader.LegacyLoader(player_id: str, session_id: str, game_schema: GameSchema, mode: ExtractionMode, feature_overrides: List[str] | None)[source]

Bases: GeneratorLoader

GetFeatureClass(feature_type: str) Type[Extractor] | None[source]

Module contents

Initializer for legacy feature base classes