UNPKG

gamify-ui-core

Version:

🚀 The ultimate gamification engine for modern web applications. Framework-agnostic, real-time leaderboards, custom rule engine, streaks, missions, and AI-powered features.

30 lines • 894 B
import { GameEvent, User } from '../types'; import { UserManager } from './UserManager'; import { RuleEngine } from './RuleEngine'; import { MissionManager } from './MissionManager'; /** * Processes game events and applies rewards */ export declare class EventProcessor { private readonly userManager; private readonly ruleEngine; private readonly missionManager; constructor(userManager: UserManager, ruleEngine: RuleEngine, missionManager: MissionManager); /** * Process a game event and apply any applicable rewards */ processEvent(event: GameEvent, user: User): void; /** * Evaluate if an event condition is met */ private evaluateCondition; /** * Apply a reward to a user */ private applyReward; /** * Create a badge from a name */ private createBadge; } //# sourceMappingURL=EventProcessor.d.ts.map