Add Phoenix remote desktop, action connector, documentation engine, and gamification support. Refactor support-case processing and search/action UI, and update installer assets and dependencies.
26 lines
673 B
C#
26 lines
673 B
C#
using System;
|
|
|
|
namespace F4SD.Gamification.Services
|
|
{
|
|
public static class GamificationService
|
|
{
|
|
private static readonly LevelService _levelService = new();
|
|
|
|
public static void Initialize()
|
|
{
|
|
PersistenceService.Initialize();
|
|
|
|
foreach (var action in PersistenceService.GetActions())
|
|
{
|
|
_levelService.InitializeAction(action.Action);
|
|
}
|
|
}
|
|
|
|
public static void TrackAction(CockpitAction action, params object[] args)
|
|
{
|
|
PersistenceService.Persist(action);
|
|
_levelService.TrackAction(action);
|
|
}
|
|
}
|
|
}
|