Test.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. using CommonLang;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace TestCDNBenchMark
  7. {
  8. /// <summary>
  9. /// 物品基本类
  10. /// </summary>
  11. public class ItemBase
  12. {
  13. public int itemId;
  14. public string itemIcon;
  15. public long itemName;
  16. public int itemType;
  17. public int itemColor;
  18. public int itemBind;
  19. public int itemStore;
  20. public int stackNum;
  21. public long itemDesc;
  22. public int itemPeriod;
  23. public int itemPrice;
  24. //public int id; //ID
  25. //public string name; //名字
  26. //public string icon; //icon
  27. //public int type; //物品类型
  28. //public int color; //品质
  29. //public int bind; //0:不绑定1:拾取2:绑定
  30. //public int store; //0:资源栏位 1:角色背包
  31. //public int num; //数量
  32. //public string desc; //描述
  33. //public int period; //有效期限
  34. //public int price; //价格
  35. //public void Copy(ItemBase item)
  36. //{
  37. // id = item.id;
  38. // name = item.name;
  39. // icon = item.icon;
  40. // type = item.type;
  41. // color = item.color;
  42. // bind = item.bind;
  43. // store = item.store;
  44. // num = item.num;
  45. // desc = item.desc;
  46. // period = item.period;
  47. // price = item.price;
  48. //}
  49. }
  50. /// <summary>
  51. /// 物品类型
  52. /// </summary>
  53. public enum ItemType
  54. {
  55. BASIC = 0,
  56. RES = 1,
  57. EQUIP = 2,
  58. DRESS = 3,
  59. STUFF = 4,
  60. GEM = 5,
  61. PROP = 6,
  62. SUPPLY = 7,
  63. TASK = 8,
  64. OTHER = 9
  65. }
  66. /// <summary>
  67. /// 分解类
  68. /// </summary>
  69. public class EquipDecompos
  70. {
  71. public int id;//道具id
  72. public int num;//数量
  73. }
  74. /// <summary>
  75. /// 宝石升级类
  76. /// </summary>
  77. public class GemNeed
  78. {
  79. public int id;//材料ID
  80. public int num;//材料数量
  81. }
  82. /// <summary>
  83. /// 属性类
  84. /// </summary>
  85. public class Property
  86. {
  87. //public int anima;
  88. //public int attck;
  89. //public int defense;
  90. //public int damage;
  91. //public int crit;
  92. //public int resist;
  93. //public int hurt;
  94. //public int injuryFree;
  95. //public int hit;
  96. //public int dodge;
  97. //public int vampire;
  98. //public int addInjury;
  99. //public int lessInjury;
  100. //public string animaName;
  101. //public string attckName;
  102. //public string defenseName;
  103. //public string damageName;
  104. //public string critName;
  105. //public string resistName;
  106. //public string hurtName;
  107. //public string injuryFreeName;
  108. //public string hitName;
  109. //public string dodgeName;
  110. //public string vampireName;
  111. //public string addInjuryName;
  112. //public string lessInjuryName;
  113. }
  114. /// <summary>
  115. /// 装备类
  116. /// </summary>
  117. public class Equip : ItemBase
  118. {
  119. public int equipId;
  120. public int equipProf;
  121. public int equipPlace;
  122. public int equipStrenLv;
  123. public string effect3d;
  124. public int equipGroup;
  125. public List<EquipDecompos> equipDecom = new List<EquipDecompos>();
  126. public HashMap<string, GemNeed> gems = new HashMap<string, GemNeed>();
  127. public int[] equipExtraList;
  128. public int equipShroffCost;
  129. public int[] equipGemList;
  130. public int equipHp;
  131. public int equipAtk;
  132. public int equipDef;
  133. public int equipBreakDef;
  134. public int equipCrit;
  135. public int equipDecrit;
  136. public int equipAddDam;
  137. public int equipMinDam;
  138. public int equipHit;
  139. public int equipDodge;
  140. public int equipVamp;
  141. public int equipIncDamPer;
  142. public int equipDecDamPer;
  143. // public Property pro = new Property();
  144. //public void SetDecompos(string[] strArray)
  145. //{
  146. // for (int i = 0; i < strArray.Length; ++i)
  147. // {
  148. // string[] str = strArray[i].Split(',');
  149. // EquipDecompos decompos = new EquipDecompos();
  150. // decompos.id = int.Parse(str[0]);
  151. // decompos.num = int.Parse(str[1]);
  152. // equipDecompos.Add(decompos);
  153. // }
  154. //}
  155. }
  156. /// <summary>
  157. /// 道具类
  158. /// </summary>
  159. public class NewProp : ItemBase
  160. {
  161. public int propId;
  162. public int useLv; //使用等级
  163. public int funType;//功能类型(1:礼包道具2:背包扩充3:战场门票4:技能洗点5:称号道具)
  164. public int[] funCoe;//功能参数
  165. }
  166. /// <summary>
  167. /// 宝石类
  168. /// </summary>
  169. public class Gem : ItemBase
  170. {
  171. public int gemId;
  172. public int gemLv;
  173. public List<GemNeed> upgradeCost = new List<GemNeed>();
  174. public int taigetId;
  175. public int gemHp;
  176. public int gemAtk;
  177. public int gemDef;
  178. public int gemBreakDef;
  179. public int gemCrit;
  180. public int gemDecrit;
  181. public int gemAddDam;
  182. public int gemMinDam;
  183. public int gemHit;
  184. public int gemDodge;
  185. public int gemVamp;
  186. public int gemIncDamPer;
  187. public int gemDecDamPer;
  188. }
  189. }