2021-04-08 20:09:59 +08:00
|
|
|
|
using ET.EventType;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using static ET.StatisticComponent;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
public struct StatisticsTypes
|
|
|
|
|
{
|
2021-05-05 13:36:19 +08:00
|
|
|
|
public const string EnergyCostType_StarSoul = "EnergyCostType_StarSoul";
|
2021-04-08 20:09:59 +08:00
|
|
|
|
public const string EnergyCostType_MainStory = "EnergyCostType_MainStory";
|
|
|
|
|
public const string EnergyCostType_IdleBattle = "EnergyCostType_IdleBattle";
|
|
|
|
|
public const string CoinSources_IdleBattle = "CoinSources_IdleBattle";
|
|
|
|
|
public const string CoinSources_SellItem = "CoinSources_SellItem";
|
|
|
|
|
public const string CoinSources_FamilyBoss = "CoinSources_FamilyBoss";
|
|
|
|
|
public const string CoinSources_Boss = "CoinSources_Boss";
|
|
|
|
|
public const string CoinSources_MainStory = "CoinSources_MainStory";
|
|
|
|
|
public const string CoinSources_TrialCopy = "CoinSources_TrialCopy";
|
|
|
|
|
public const string GemSources_MainStory = "GemSources_MainStory";
|
|
|
|
|
public const string GemSources_TrialCopy = "GemSources_TrialCopy";
|
|
|
|
|
public const string GemSources_Boss = "GemSources_Boss";
|
|
|
|
|
public const string GemSources_FamilyBoss = "GemSources_FamilyBoss";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class StatisticsHelper
|
|
|
|
|
{
|
|
|
|
|
public static void AddEnergyCost( long id, string costType, int count)
|
|
|
|
|
{
|
|
|
|
|
StatisticComponent.instance.AddEnergyCost(id, costType, count);
|
|
|
|
|
}
|
|
|
|
|
public static void AddInfo( long id, StatisticType type,string sources, long count)
|
|
|
|
|
{
|
|
|
|
|
StatisticComponent.instance.AddInfo(id, type, sources,count);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|