当前位置: 首页>>代码示例>>C#>>正文


C# CacheList类代码示例

本文整理汇总了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>();
 }
开发者ID:jinfei426,项目名称:Scut,代码行数:7,代码来源:CombatProcessContainer.cs

示例2: UserDailyRestrain

 public UserDailyRestrain()
     : base(AccessLevel.ReadWrite)
 {
     UserExtend = new DailyUserExtend();
     FunPlot = new CacheList<FunPlot>();
     PlainPlotList = new CacheList<FunPlot>();
 }
开发者ID:daneric,项目名称:Scut-samples,代码行数:7,代码来源:UserDailyRestrain.cs

示例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;
 }
开发者ID:jinfei426,项目名称:Scut,代码行数:31,代码来源:VipHelper.cs

示例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);
 }
开发者ID:wf15271760803,项目名称:Scut-samples,代码行数:7,代码来源:GeneralInfo.cs

示例5: UserGuild

 public UserGuild()
     : base(AccessLevel.ReadWrite)
 {
     GuildBossInfo = new GuildBossInfo();
     AbilityInfo = new CacheList<GuildAbility>();
     GuildExercise = new GuildExercise();
 }
开发者ID:daneric,项目名称:Scut-samples,代码行数:7,代码来源:UserGuild.cs

示例6: FestivalInfo

 public FestivalInfo()
     : base(AccessLevel.ReadWrite)
 {
     Reward = new CacheList<PrizeInfo>();
     TimePriod = new TimePriod();
     TaskConfig = new CacheList<TaskConfigInfo>();
     FestivalExtend = new FestivalExtend();
 }
开发者ID:daneric,项目名称:Scut-samples,代码行数:8,代码来源:FestivalInfo.cs

示例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(',');
 }
开发者ID:0jpq0,项目名称:Scut,代码行数:9,代码来源:Action1402.cs

示例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);
 }
开发者ID:wf15271760803,项目名称:Scut-samples,代码行数:9,代码来源:StoryTaskInfo.cs

示例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>();
     //待确认,事件绑定
 }
开发者ID:daneric,项目名称:Scut-samples,代码行数:9,代码来源:DailyUserExtend.cs

示例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>();
        }
开发者ID:daneric,项目名称:Scut-samples,代码行数:13,代码来源:GameUser.cs

示例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}
                       };
 }
开发者ID:wf15271760803,项目名称:Scut-samples,代码行数:13,代码来源:UserPlotPackage.cs

示例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); });
 }
开发者ID:hseom,项目名称:brunet,代码行数:11,代码来源:MapReduceQuery.cs

示例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;
 }
开发者ID:TaylorLi,项目名称:WorkStudioEnhance,代码行数:17,代码来源:CacheManager.cs

示例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>();
		}
开发者ID:flashwade03,项目名称:Hover-VR-Interface-Kit,代码行数:19,代码来源:HovercursorLookInput.cs

示例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);
 }
开发者ID:daneric,项目名称:Scut-samples,代码行数:31,代码来源:UserLogHelper.cs


注:本文中的CacheList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。