feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
This commit is contained in:
61
SVSim.BattleEngine/Engine/Cute/AchievementManager.cs
Normal file
61
SVSim.BattleEngine/Engine/Cute/AchievementManager.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cute;
|
||||
|
||||
public static class AchievementManager
|
||||
{
|
||||
private static IAchievementCallback mCallback;
|
||||
|
||||
public static void Initialize(IAchievementCallback callback)
|
||||
{
|
||||
mCallback = callback;
|
||||
}
|
||||
|
||||
public static void ShowAchievementsUI()
|
||||
{
|
||||
Social.ShowAchievementsUI();
|
||||
}
|
||||
|
||||
public static void ReleaseAchievement(string id)
|
||||
{
|
||||
Social.ReportProgress(id, 100.0, delegate(bool success)
|
||||
{
|
||||
if (mCallback != null)
|
||||
{
|
||||
mCallback.OnReleaseAchievement(success);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static void ProceedAchievement(string id, float value)
|
||||
{
|
||||
Social.ReportProgress(id, value, delegate(bool success)
|
||||
{
|
||||
if (mCallback != null)
|
||||
{
|
||||
mCallback.OnProceedAchievement(success);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static void ResetAchievements(Action<bool> callback)
|
||||
{
|
||||
}
|
||||
|
||||
public static void LoadAchievements()
|
||||
{
|
||||
if (mCallback != null)
|
||||
{
|
||||
Social.LoadAchievements(mCallback.OnLoadAchievements);
|
||||
}
|
||||
}
|
||||
|
||||
public static void LoadAchievementDescriptions()
|
||||
{
|
||||
if (mCallback != null)
|
||||
{
|
||||
Social.LoadAchievementDescriptions(mCallback.OnLoadAchievementDescriptions);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user