本文整理汇总了C#中CacheList类的典型用法代码示例。如果您正苦于以下问题:C# CacheList类的具体用法?C# CacheList怎么用?C# CacheList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CacheList类属于命名空间,在下文中一共展示了CacheList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CombatProcessContainer
public CombatProcessContainer()
{
AttackList = new CacheList<CombatEmbattle>();
DefenseList = new CacheList<CombatEmbattle>();
ProcessList = new CacheList<CombatProcess>();
SelfAbilityEffectList = new CacheList<SelfAbilityEffect>();
}
示例2: UserDailyRestrain
public UserDailyRestrain()
: base(AccessLevel.ReadWrite)
{
UserExtend = new DailyUserExtend();
FunPlot = new CacheList<FunPlot>();
PlainPlotList = new CacheList<FunPlot>();
}
示例3: GetVipUseNum
/// <summary>
/// 每日限制次数
/// </summary>
/// <returns></returns>
public static int GetVipUseNum(int vipLv, RestrainType restrainType)
{
int rType = (int)restrainType;
int baseNum = 0;
int MaxNum = 0;
int vipNum = 0;
DailyRestrainSet restrainSet = new ShareCacheStruct<DailyRestrainSet>().FindKey(restrainType);
if (restrainSet != null)
{
baseNum = restrainSet.MaxNum;
}
VipLvInfo lvInfo = new ConfigCacheSet<VipLvInfo>().FindKey(vipLv);
var restrainArray = new CacheList<DailyRestrain>();
if (lvInfo != null)
{
restrainArray = lvInfo.DailyRestrain;
}
foreach (DailyRestrain daily in restrainArray)
{
if (daily.ID == rType)
{
vipNum = daily.Num;
}
}
MaxNum = MathUtils.Addition(baseNum, vipNum, int.MaxValue);
return MaxNum;
}
示例4: GeneralInfo
public GeneralInfo()
: base(AccessLevel.ReadOnly)
{
ShowFilter = new CacheList<ShowFilterInfo>(0, true);
RecruitFilter = new CacheList<RecruitFilter>(0, true);
Mature = new CacheList<GeneralProperty>(0, true);
}
示例5: UserGuild
public UserGuild()
: base(AccessLevel.ReadWrite)
{
GuildBossInfo = new GuildBossInfo();
AbilityInfo = new CacheList<GuildAbility>();
GuildExercise = new GuildExercise();
}
示例6: FestivalInfo
public FestivalInfo()
: base(AccessLevel.ReadWrite)
{
Reward = new CacheList<PrizeInfo>();
TimePriod = new TimePriod();
TaskConfig = new CacheList<TaskConfigInfo>();
FestivalExtend = new FestivalExtend();
}
示例7: GetGeneralQuality
public static string GetGeneralQuality(CacheList<RecruitInfo> _generalQuality)
{
string genquality = string.Empty;
foreach (var quality in _generalQuality)
{
genquality += quality.Quality.ToInt() + ",";
}
return genquality.TrimEnd(',');
}
示例8: StoryTaskInfo
public StoryTaskInfo()
: base(AccessLevel.ReadOnly)
{
ReleaseDialogue = new CacheList<DialogueInfo>(0, true);
TakedDialogue = new CacheList<DialogueInfo>(0, true);
DeliveryDialogue = new CacheList<DialogueInfo>(0, true);
PreTaskID = new int[0];
Reward = new CacheList<PrizeInfo>(0, true);
}
示例9: DailyUserExtend
public DailyUserExtend():base(false)
{
KalpaPlot = new CacheList<FunPlot>();
LastKalpaPlot = new CacheList<FunPlot>();
MorePlot = new CacheList<FunPlot>();
HeroPlot = new List<HeroPlot>();
WaterNum = new List<DailyRestrain>();
//待确认,事件绑定
}
示例10: GameUser
public static int festId = 1012; //��ֵ����ID
public GameUser()
: base(AccessLevel.ReadWrite)
{
UserExtend = new GameUserExtend();
GrayCrystalList = new CacheList<GrayCrystal>();
SportsCombatQueue = new CacheQueue<SportsCombat>();
PropertyInfo = new CacheList<GuildAbility>();
HeritageList = new CacheList<GeneralHeritage>();
SweepPool = new SweepPoolInfo();
OpenFun = new List<UserFunction>();
}
示例11: UserPlotPackage
/// <summary>
/// </summary>
public UserPlotPackage(String UserID)
: this()
{
this._UserID = UserID;
PlotPackage = new CacheList<UserPlotInfo>
{
new UserPlotInfo(){PlotID = 1222, BossChallengeCount = 5},
new UserPlotInfo(){PlotID = 1223, BossChallengeCount = 5},
new UserPlotInfo(){PlotID = 1224, BossChallengeCount = 5}
};
}
示例12: MapReduceQuery
public MapReduceQuery(Node n, CacheList cl): base(n) {
_cl = cl;
_mut = new Mutable<MRQState>(new MRQState());
//Add the default query handlers:
AddQueryMatcher("regex", delegate(object pattern) {
return new RegexMatcher((string)pattern);
});
AddQueryMatcher("exact", delegate(object pattern) { return new ExactMatcher(pattern); });
AddHitCombiner("concat", delegate(object arg) { return ConcatCombiner.Instance; });
AddHitCombiner("maxcount", delegate(object arg) { return new MaxCountCombiner((int)arg); });
}
示例13: GetCaches
public static Caches GetCaches()
{
Cache _cache = HttpRuntime.Cache;
IDictionaryEnumerator cacheEnum = _cache.GetEnumerator();
CacheList cl = new CacheList();
cl = new CacheList();
while (cacheEnum.MoveNext())
{
cl.Add(new CacheInfo(cacheEnum.Key.ToString(), cacheEnum.Value.GetType().ToString()));
}
Caches rs = new Caches();
rs.CacheList = new CacheList();
cl.SortBy(CacheInfo.Columns.Key, true);
rs.CacheList.AddRange(cl);
rs.Total = cl.Count;
return rs;
}
示例14: Awake
////////////////////////////////////////////////////////////////////////////////////////////////
/*--------------------------------------------------------------------------------------------*/
public void Awake() {
var sett = new InputSettings();
sett.InputTransform = gameObject.transform;
sett.CameraTransform = HeadsetCameraTransform;
sett.CursorSize = CursorSize;
sett.UseMouseForTesting = UseMouseForTesting;
sett.MousePositionMultiplier = MousePositionMultiplier;
if ( HeadsetCameraTransform == null ) {
IsFailure = true;
throw new Exception("The "+typeof(HovercursorLookInput)+" component "+
"requires the 'Headset Camera Transform' to be set.");
}
vCursor = new InputCursor(CursorType.Look, sett);
vPlaneStates = new CacheList<PlaneState>();
}
示例15: AppenItemSynthesisLog
/// <summary>
/// 新增装备合成log
/// </summary>
/// <param name="userID"></param>
/// <param name="opType"></param>
/// <param name="itemID"></param>
/// <param name="num"></param>
/// <param name="synthesisInfo1"></param>
/// <param name="synthesisInfo2"></param>
/// <param name="useGold"></param>
/// <param name="beforeLv"></param>
/// <param name="afterLv"></param>
public static void AppenItemSynthesisLog(string userID, short opType, int itemID, int num, CacheList<SynthesisInfo> synthesisInfo1, SynthesisInfo synthesisInfo2, int useGold, short beforeLv, short afterLv)
{
UserItemSynthesisLog log = new UserItemSynthesisLog
{
ID = Guid.NewGuid().ToString(),
UserID = userID,
OpType = opType,
ItemID = itemID,
OpNum = num,
DemandMaterial = synthesisInfo1,
SurplusMaterial = synthesisInfo2,
UseGold = useGold,
BeforeLv = beforeLv,
AfterLv = afterLv,
CreateDate = DateTime.Now
};
var sender = DataSyncManager.GetDataSender();
sender.Send(log);
}