UNPKG

game-analysis-types

Version:

Common TypeScript types and utilities for game analysis tools.

32 lines 1.28 kB
/** * Service for handling game terminology transformations * to ensure intellectual property protection */ export class TerminologyService { /** * Transform a roster for use in AI analysis while protecting IP * @param roster - The original roster * @returns The transformed roster */ transformRosterForAnalysis(roster) { // Clone the roster to avoid modifying the original const transformedRoster = JSON.parse(JSON.stringify(roster)); // In a real implementation, we would transform faction names, unit names, // abilities, and other IP-sensitive information to generic terms return transformedRoster; } /** * Transform AI analysis to use game-specific terminology * @param analysis - The generic analysis * @param roster - The original roster * @returns The transformed analysis */ transformAnalysisFromAI(analysis, roster) { // Clone the analysis to avoid modifying the original const transformedAnalysis = JSON.parse(JSON.stringify(analysis)); // In a real implementation, we would transform generic terms back to // game-specific terminology return transformedAnalysis; } } //# sourceMappingURL=TerminologyService.js.map