public static void OnReceiveLimitSkinDel(CSPkg msg) { CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); SCPKG_LIMITSKIN_DEL stLimitSkinDel = msg.stPkgData.stLimitSkinDel; for (int i = 0; i < stLimitSkinDel.dwNum; i++) { if (masterRoleInfo.heroExperienceSkinDic.ContainsKey(stLimitSkinDel.SkinID[i])) { masterRoleInfo.heroExperienceSkinDic.Remove(stLimitSkinDel.SkinID[i]); } } }
public static void OnReceiveLimitSkinDel(CSPkg msg) { CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); SCPKG_LIMITSKIN_DEL stLimitSkinDel = msg.stPkgData.get_stLimitSkinDel(); int num = 0; while ((long)num < (long)((ulong)stLimitSkinDel.dwNum)) { if (masterRoleInfo.heroExperienceSkinDic.ContainsKey(stLimitSkinDel.SkinID[num])) { masterRoleInfo.heroExperienceSkinDic.Remove(stLimitSkinDel.SkinID[num]); } num++; } }