private void GenFakeExtendSKills() { for (int i = 0; i < 30; i++) { for (int n = 0; n < 5; n++) { ExtentSkillAsset sa = new ExtentSkillAsset(); sa.SkillId = string.Format("test_extend_{0:00}_{1:00}", i + 1, n + 1); sa.BaseSkillId = string.Format("test_{0:00}", i + 1); sa.SkillName = string.Format("扩展技能{0:00}-{1:00}", i + 1, n + 1); sa.SkingDesp = string.Format("这是测试用的扩展技能{0:00}-{1:00}", i + 1, n + 1); sa.Prices.Add(0); sa.MaxLevel = 5; for (int j = 0; j < 5; j++) { if (n < 2) { sa.LevelDesp.Add(string.Format("将一张基础攻击卡升级为test_{0:00}", i + 1 + j + 1)); } else if (n < 4) { sa.LevelDesp.Add(string.Format("将一张基础防御卡升级为test_armor_{0:00}", i + 1 + j + 1)); } else { sa.LevelDesp.Add(string.Format("将一张基础加血卡升级为test_xue_{0:00}", i + 1 + j + 1)); } sa.Difficulties.Add(i * 3 + j); sa.LevelStatusAdd.Add(i + j); } for (int j = 0; j < 5; j++) { AttachCardsInfo attached = new AttachCardsInfo(); CardOperator opt1 = new CardOperator(); BaseSkillAsset bsa = GetSkillAsset(sa.BaseSkillId) as BaseSkillAsset; opt1.opt = eCardOperatorMode.Replace; if (n < 2) { opt1.from = string.Format("test_{0:00}", i + 1); opt1.to = string.Format("test_{0:00}", i + 1 + j + 1); } else if (n < 4) { opt1.from = string.Format("test_armor_{0:00}", i + 1); opt1.to = string.Format("test_armor_{0:00}", i + 1 + j + 1); } else { opt1.from = string.Format("test_xue_{0:00}", i + 1); opt1.to = string.Format("test_xue_{0:00}", i + 1 + j + 1); } //opt1.from = string.Format("test_{0:00}", i + 1); //opt1.to = string.Format("test_{0:00}", i + 1 + j + 1); attached.operators.Add(opt1); sa.AttachCardInfos.Add(attached); } SkillAssetDict.Add(sa.SkillId, sa); } } }
public AuthorizationTests(CardOperator @operator) { client = NativeInjectorBootStrapper.GetInstance <HttpServiceClientPayment>(); client.AddHeader("CardOperator", @operator); }