/// <summary> /// Initializes a new instance of the TestAppSettings class /// Default Constructor - Sets Default Values /// </summary> public TestAppSettings() { this.logFile = "debug.log"; this.maxLogLen = 5000; this.period = 1000; this.txsocketStayOpen = true; this.historyLength = 100; this.distributionPrefix = "Debug."; this.senderDefault = "*****@*****.**"; this.distStatusDefault = StatusValue.Test; this.distTypeDefault = TypeValue.Report; this.confDefault = "Unclassified and not sensitive"; this.languageDefault = "en-US"; this.tcpSend = true; this.tcpRecv = true; this.udpSend = true; this.udpRecv = true; this.tcpDestHost = "localhost"; this.tcpDestPort = 16000; this.tcpListenPort = 16000; this.udpDestHost = "localhost"; this.udpDestPort = 16001; this.udpListenPort = 16001; this.fileSend = false; this.fileRecv = false; this.sendFileName = "sendlog.txt"; this.recvFileName = "recievelog.txt"; }
/// <summary> /// Initializes a new instance of the <see cref="IndexusMessage"/> class. /// </summary> /// <param name="id">The id.</param> /// <param name="status">The status.</param> /// <param name="action">The action.</param> /// <param name="priority">The priority.</param> /// <param name="host">The host.</param> /// <param name="expires">The expires.</param> /// <param name="key">The key.</param> /// <param name="payload">The payload.</param> public IndexusMessage(long id, StatusValue status, ActionValue action, CacheItemPriority priority, string host, DateTime expires, string key, byte[] payload) { #region Access Log #if TRACE { Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;"); } #endif #endregion Access Log this.id = id; this.status = status; this.action = action; this.itemPriority = priority; if (!string.IsNullOrEmpty(host)) { this.hostname = host; } this.expires = expires; this.key = key; this.payload = payload; this.timestamp = DateTime.Now; }
private void ShowChgInfo() { if (this.DataChg != null) { this.partnerChipBaseSelect.SetSelectedCharChg(this.DataChg); this.changeMonsterBasicInfo.SetMonsterData(this.DataChg); this.changeMonsterStatusList.SetValues(this.DataChg, this.questBonusPack.dungeonBonuses.ToArray()); this.changeMonsterMedalList.SetValues(this.DataChg.userMonster); this.changeMonsterLeaderSkill.SetSkill(this.DataChg); this.changeMonsterUniqueSkill.SetSkill(this.DataChg); this.detailedChangeMonsterUniqueSkill.SetSkill(this.DataChg); this.changeMonsterSuccessionSkill.SetSkill(this.DataChg); this.detailedChangeMonsterSuccessionSkill.SetSkill(this.DataChg); this.changeMonsterSuccessionSkillGrayReady.SetActive(false); this.changeMonsterSuccessionSkillAvailable.SetActive(false); this.changeMonsterSuccessionSkillGrayNA.SetActive(false); this.detailedChangeMonsterSuccessionSkillGrayReady.SetActive(false); this.detailedChangeMonsterSuccessionSkillAvailable.SetActive(false); this.detailedChangeMonsterSuccessionSkillGrayNA.SetActive(false); this.changeMonsterSuccessionSkill2.SetSkill(this.DataChg); this.detailedChangeMonsterSuccessionSkill2.SetSkill(this.DataChg); if (MonsterStatusData.IsVersionUp(this.DataChg.GetMonsterMaster().Simple.rare)) { if (this.DataChg.GetExtraCommonSkill() == null) { this.changeMonsterSuccessionSkillGrayReady.SetActive(true); this.detailedChangeMonsterSuccessionSkillGrayReady.SetActive(true); } else { this.changeMonsterSuccessionSkillAvailable.SetActive(true); this.detailedChangeMonsterSuccessionSkillAvailable.SetActive(true); } } else { this.changeMonsterSuccessionSkillGrayNA.SetActive(true); this.detailedChangeMonsterSuccessionSkillGrayNA.SetActive(true); } this.changeMonsterResistanceList.SetValues(this.DataChg); } else { this.partnerChipBaseSelect.ClearChipIcons(); this.changeMonsterBasicInfo.ClearMonsterData(); this.changeMonsterStatusList.ClearValues(); this.changeMonsterLeaderSkill.ClearSkill(); this.changeMonsterUniqueSkill.ClearSkill(); this.detailedChangeMonsterUniqueSkill.ClearSkill(); this.changeMonsterSuccessionSkill.ClearSkill(); this.changeMonsterSuccessionSkill2.ClearSkill(); this.detailedChangeMonsterSuccessionSkill.ClearSkill(); this.detailedChangeMonsterSuccessionSkill2.ClearSkill(); this.changeMonsterResistanceList.ClearValues(); } StatusValue values = this.nowMonsterStatusList.GetValues(); StatusValue values2 = this.changeMonsterStatusList.GetValues(); this.monsterStatusChangeValueList.SetValues(values, values2); }
/// <summary> /// Sets the bytes. /// </summary> /// <param name="stream">The stream.</param> /// <returns></returns> public bool SetBytes(MemoryStream stream) { #region Access Log #if TRACE { Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;"); } #endif #endregion Access Log BinaryReader br = new BinaryReader(stream); this.status = (StatusValue)br.ReadByte(); this.action = (ActionValue)br.ReadByte(); this.id = br.ReadInt64(); this.itemPriority = (CacheItemPriority)br.ReadByte(); // Modified: 11-01-2008 SharedCache.com, rschuetz : pre_release_1.0.2.132 http://www.codeplex.com/SharedCache/WorkItem/View.aspx?WorkItemId=5046 this.expires = Formatters.DateTimeUnix.DateTimeFromUnixTime((long)br.ReadUInt64()); // Formatters.DateTimeUnix.ToDateTime(br.ReadDouble()); this.timestamp = Formatters.DateTimeUnix.DateTimeFromUnixTime((long)br.ReadUInt64()); // Formatters.DateTimeUnix.ToDateTime(br.ReadDouble()); int dataLength1 = br.ReadInt32(); byte[] buf1 = new byte[dataLength1]; int read1 = br.Read(buf1, 0, dataLength1); this.key = System.Text.Encoding.UTF8.GetString(buf1); int dataLength = br.ReadInt32(); if (dataLength > 0) { byte[] buf = new byte[dataLength]; int read = br.Read(buf, 0, dataLength); this.payload = buf; buf = null; } return(true); }
private void SetChangeStatusValue() { StatusValue values = this.nowMonsterStatusList.GetValues(); StatusValue values2 = this.changeMonsterStatusList.GetValues(); this.monsterStatusChangeValueList.SetValues(values, values2); }
public void SetViewNextEvolutionMonster(string monsterId, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster) { GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(monsterId).Simple; GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(simple.monsterGroupId).Group; DataMng.ExperienceInfo experienceInfo = DataMng.Instance().GetExperienceInfo(0); MonsterData monsterData = new MonsterData(new GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList(userMonster) { monsterId = monsterId, level = "1", ex = "0", levelEx = "0", nextLevelEx = experienceInfo.expLevNext.ToString() }); if (!string.IsNullOrEmpty(group.leaderSkillId) && "0" != group.leaderSkillId) { monsterData.userMonster.leaderSkillId = group.leaderSkillId; monsterData.InitSkillInfo(); } StatusValue statusValue = MonsterStatusData.GetStatusValue(monsterId, "1"); statusValue.luck = int.Parse(userMonster.luck); monsterData.SetStatus(statusValue); CMD_CharacterDetailed.DataChg = monsterData; GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM resistanceMaster = MonsterResistanceData.GetResistanceMaster(monsterData.monsterM.resistanceId); bool active = this.AnyMatchStrongResistance(resistanceMaster, userMonster.tranceResistance, userMonster.tranceStatusAilment); this.nextMonsterResistanceAlert.gameObject.SetActive(active); }
private void combo_Loaded(object sender, RoutedEventArgs e) { ComboBox comboBox = (ComboBox)sender; CustomerViewModel customerViewModel = (CustomerViewModel)this.DataContext; Type _type = customerViewModel.GetType(); PropertyInfo _propertyInfo = _type.GetProperty(StatusName.ToString()); Status MyStatus = (Status)Enum.Parse(typeof(Status), StatusValue.ToString(), true); _propertyInfo.SetValue(customerViewModel, MyStatus); customerViewModel.VerifyPropertyName(StatusName); // Set initial Enum values to given Status Name and Value for (int index = 0; index < combo.Items.Count; index++) { EnumItem item = (EnumItem)combo.Items.GetItemAt(index); if (item.Value.ToString() == MyStatus.ToString()) { combo.SelectedItem = item; break; } } }
/// <summary> /// Copies New Object From DeSerialization /// </summary> /// <param name="msettings">Object to copy</param> private void CopyThis(TestAppSettings msettings) { this.logFile = msettings.LogFile; this.maxLogLen = msettings.MaxLogLength; this.period = msettings.Period; this.txsocketStayOpen = msettings.TxSocketStayOpen; this.historyLength = msettings.HistoryLength; this.distributionPrefix = msettings.distributionPrefix; this.senderDefault = msettings.SenderDefault; this.distStatusDefault = msettings.DistStatusDefault; this.distTypeDefault = msettings.DistTypeDefault; this.confDefault = msettings.ConfDefault; this.tcpSend = msettings.TCPSend; this.tcpRecv = msettings.TCPRecv; this.udpSend = msettings.UDPSend; this.udpRecv = msettings.UDPRecv; this.tcpDestHost = msettings.TCPDestHost; this.tcpDestPort = msettings.TCPDestPort; this.tcpListenPort = msettings.TCPListenPort; this.udpDestHost = msettings.UDPDestHost; this.udpDestPort = msettings.UDPDestPort; this.udpListenPort = msettings.UDPListenPort; this.fileSend = msettings.FileSend; this.fileRecv = msettings.FileRecv; this.sendFileName = msettings.SendFileName; this.recvFileName = msettings.RecvFileName; }
public void AddStatusValue(int index, StatusValue val) { for(int i=0; i<character.Length; i++) { character[i].development.AddStatusValue(index, val); character[i].bonus.AddStatusValue(); } }
private void btnOK_Click(object sender, EventArgs e) { for (int i = 0; i < m_aStatusValues.Count; i++) { StatusValue myValue = m_aStatusValues[i]; myValue.Checked = lstValues.GetItemChecked(i); m_aStatusValues[i] = myValue; } }
// Update is called once per frame void Update() { treeStatus = testTree.GetStatus(); if (treeStatus == StatusValue.RUNNING) { testTree.Tick(); } //timer += Time.deltaTime; }
private void frmQueryStatus_Load(object sender, EventArgs e) { this.CenterToScreen(); for (int i = 0; i < m_aStatusValues.Count; i++) { StatusValue myValue = m_aStatusValues[i]; lstValues.Items.Add(myValue.Description); lstValues.SetItemChecked(i, myValue.Checked); } }
public void SetValues(StatusValue beforeStatus, StatusValue afterStatus) { this.SetParameter(this.hpLabel, afterStatus.hp - beforeStatus.hp); this.SetParameter(this.attackLabel, afterStatus.attack - beforeStatus.attack); this.SetParameter(this.defenseLabel, afterStatus.defense - beforeStatus.defense); this.SetParameter(this.magicAttackLabel, afterStatus.magicAttack - beforeStatus.magicAttack); this.SetParameter(this.magicDefenseLabel, afterStatus.magicDefense - beforeStatus.magicDefense); this.SetParameter(this.speedLabel, afterStatus.speed - beforeStatus.speed); this.SetParameter(this.luckLabel, afterStatus.luck - beforeStatus.luck); this.SetParameter(this.friendshipLabel, afterStatus.friendship - beforeStatus.friendship); }
public static void AddValue(string name, StatusValue status, UnityAction <ValueRecord> refreshValue) { ValueRecord valueRecord = new ValueRecord(name, status); valueRecord.refreshValueAction = refreshValue; if (_values.ContainsKey(name)) { _values.Remove(name); } _values.Add(name, valueRecord); }
public void SetValues(MonsterData monsterData) { StatusValue statusValue = MonsterStatusData.GetStatusValue(monsterData.userMonster.monsterId, monsterData.userMonster.level); StatusValue status = monsterData.GetStatus(); this.SetPlusParameter(this.hpLabel, status.hp - statusValue.hp); this.SetPlusParameter(this.attackLabel, status.attack - statusValue.attack); this.SetPlusParameter(this.defenseLabel, status.defense - statusValue.defense); this.SetPlusParameter(this.magicAttackLabel, status.magicAttack - statusValue.magicAttack); this.SetPlusParameter(this.magicDefenseLabel, status.magicDefense - statusValue.magicDefense); this.SetPlusParameter(this.speedLabel, status.speed - statusValue.speed); }
private void OfflineGrow_Step2(MonsterData monsterData) { MonsterClientMaster monsterMaster = monsterData.GetMonsterMaster(); string modelId = monsterMaster.Group.modelId; string growStep = monsterMaster.Group.growStep; string userMonsterId = monsterData.GetMonster().userMonsterId; string monsterEvolutionRouteId = monsterData.GetMonster().monsterEvolutionRouteId; foreach (GameWebAPI.RespDataMA_GetMonsterEvolutionRouteM.MonsterEvolutionRouteM monsterEvolutionRouteM2 in MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM) { if (monsterEvolutionRouteId == monsterEvolutionRouteM2.monsterEvolutionRouteId) { monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(monsterEvolutionRouteM2.growthMonsterId); break; } } MonsterDataMng.Instance().GetMonsterDataList()[0].userMonster.growEndDate = string.Empty; monsterData.userMonster.ex = "0"; monsterData.userMonster.hpAbilityFlg = "0"; monsterData.userMonster.attackAbilityFlg = "0"; monsterData.userMonster.defenseAbilityFlg = "0"; monsterData.userMonster.spAttackAbilityFlg = "0"; monsterData.userMonster.spDefenseAbilityFlg = "0"; monsterData.userMonster.speedAbilityFlg = "0"; monsterData.userMonster.friendship = "0"; StatusValue statusValue = MonsterStatusData.GetStatusValue(monsterData.userMonster.monsterId, monsterData.userMonster.level); statusValue.luck = 1; monsterData.SetStatus(statusValue); monsterData.userMonster.userMonsterId = userMonsterId; ClassSingleton <MonsterUserDataMng> .Instance.UpdateUserMonsterData(monsterData.userMonster); ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList()); monsterData = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(userMonsterId); monsterMaster = monsterData.GetMonsterMaster(); CutsceneDataEvolution cutsceneDataEvolution = new CutsceneDataEvolution(); cutsceneDataEvolution.path = "Cutscenes/Evolution"; cutsceneDataEvolution.beforeModelId = modelId; cutsceneDataEvolution.beforeGrowStep = growStep; cutsceneDataEvolution.afterModelId = monsterMaster.Group.modelId; cutsceneDataEvolution.afterGrowStep = monsterMaster.Group.growStep; cutsceneDataEvolution.endCallback = delegate() { FarmCameraControlForCMD.On(); CutSceneMain.FadeReqCutSceneEnd(); }; CutsceneDataEvolution cutsceneData = cutsceneDataEvolution; this.CallEvolutionCutScene(monsterData, cutsceneData); }
public ResponseTypeDefinition(AttributeSyntax attribute) { if (attribute.ArgumentList.Arguments.Count == 1) //Only HTTP value was provided, assumed to have no body { Type = null; Status = attribute.ArgumentList.Arguments.SingleOrDefault().ToFullString(); } else //Has 2 arguments(else invalid syntax) type,status { Type = attribute.ArgumentList.Arguments.FirstOrDefault().ToFullString().Replace("typeof", "").Trim().TrimStart('(').TrimEnd(')').Trim(); Status = attribute.ArgumentList.Arguments.LastOrDefault().ToFullString(); } if (Type != null) { if (Type.Contains("StatusCodes.") || Type.Contains("(int)") || Type.Contains($"{ nameof(HttpStatusCode)}.")) { if (Status?.Contains("=") ?? false) { Status = Status.Split('=')[1].Trim(); } var tmp = Type; Type = Status.Replace("typeof", "").Trim().TrimStart('(').TrimEnd(')').Trim(); Status = tmp; } } if (Type?.Contains("=") ?? false) { Type = Type.Split('=')[1].Trim(); } if (Status.Contains("(int)")) { StatusValue = Status.Replace("(int)", "").Replace("StatusCodes.Status", "").Replace($"{nameof(HttpStatusCode)}.", ""); } else if (Status.Contains("StatusCodes.Status")) { StatusValue = Status.Replace("(int)", "").Replace("StatusCodes.Status", "").Replace($"{nameof(HttpStatusCode)}.", ""); Status = StatusValue = new string(StatusValue.Where(x => !char.IsNumber(x)).ToArray()); } else { var val = int.Parse(Status); StatusValue = ((HttpStatusCode)val).ToString(); } }
public static void AddValue <T>(string name, StatusValue status, UnityAction <ValueRecord> refreshValue, UnityAction <T> setValue = null) { ValueRecord valueRecord = new ValueRecord(name, status); valueRecord.refreshValueAction = refreshValue; if (setValue != null) { if (setValue is UnityAction <int> ) { valueRecord.setValueActionInt = ((int value) => setValue((T)(object)value)); } else if (setValue is UnityAction <double> ) { valueRecord.setValueActionDouble = ((double value) => setValue((T)(object)value)); } else if (setValue is UnityAction <string> ) { valueRecord.setValueActionString = ((string value) => setValue((T)(object)value)); } else if (setValue is UnityAction <Vector2> ) { valueRecord.setValueActionVector2 = ((Vector2 value) => setValue((T)(object)value)); } else if (setValue is UnityAction <Vector3> ) { valueRecord.setValueActionVector3 = ((Vector3 value) => setValue((T)(object)value)); } else if (setValue is UnityAction <Vector4> ) { valueRecord.setValueActionVector4 = ((Vector4 value) => setValue((T)(object)value)); } else if (setValue is UnityAction <Quaternion> ) { valueRecord.setValueActionQuaternion = ((Quaternion value) => setValue((T)(object)value)); } else { valueRecord.setValueAction = ((object obj) => setValue((T)obj)); } } if (_values.ContainsKey(name)) { _values.Remove(name); } _values.Add(name, valueRecord); }
public StatusValue GetCopy(int index) { StatusValue v = new StatusValue(); v.realID = index; v.minValue = value[index].minValue; v.maxValue = value[index].maxValue; v.type = value[index].type; v.maxStatus = value[index].maxStatus; v.killChar = value[index].killChar; v.levelUp = value[index].levelUp; v.levelUpClass = value[index].levelUpClass; v.addText.SetData(value[index].addText.GetData(StatusValueData.ADDTEXT)); v.subText.SetData(value[index].subText.GetData(StatusValueData.SUBTEXT)); return v; }
public static void Init(string title, ref int[] development, StatusValue sv) { // Get existing open window or if none, make a new one: StatusCurveWindow window = (StatusCurveWindow)EditorWindow.GetWindow(typeof(StatusCurveWindow), true, title); window.tex = new Texture2D(1, 1); window.value = new int[development.Length]; System.Array.Copy(development, window.value, development.Length); window.oldValue = development; window.status = sv; window.curveLevel1 = sv.minValue; window.curveLevelMax = sv.maxValue; Rect pos = window.position; pos.x = 100; pos.y = 100; pos.width = 200+window.value.Length*2+200; pos.height = 330; window.position = pos; window.Show(); }
public void Deserialize(string content) { // make sure that the parameter starts with STATUS if (!content.ToUpper().StartsWith(Markup)) { throw new ArgumentException($"Invalid status detected! Component property needs to start with { Markup } keyword!"); } // deserialize parameters Parameters = content.Substring(Markup.Length, content.IndexOf(':') - Markup.Length) .Split(';', StringSplitOptions.RemoveEmptyEntries) .Select(x => CalendarFactory.DeserializePropertyParameter(x)) .ToList(); // extract the value content string valueContent = content.Substring(content.IndexOf(':') + 1).Trim(); Status = ObjectSerializer.Deserialize <StatusValue>(valueContent); }
public void SetValues(MonsterData monsterData, bool setBaseStatus = false, bool showMaxLuck = false) { if (!setBaseStatus) { this.hpLabel.text = monsterData.userMonster.hp; this.attackLabel.text = monsterData.userMonster.attack; this.defenseLabel.text = monsterData.userMonster.defense; this.magicAttackLabel.text = monsterData.userMonster.spAttack; this.magicDefenceLabel.text = monsterData.userMonster.spDefense; this.speedLabel.text = monsterData.userMonster.speed; } else { StatusValue statusValue = MonsterStatusData.GetStatusValue(monsterData.userMonster.monsterId, monsterData.userMonster.level); this.hpLabel.text = statusValue.hp.ToString(); this.attackLabel.text = statusValue.attack.ToString(); this.defenseLabel.text = statusValue.defense.ToString(); this.magicAttackLabel.text = statusValue.magicAttack.ToString(); this.magicDefenceLabel.text = statusValue.magicDefense.ToString(); this.speedLabel.text = statusValue.speed.ToString(); } GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(monsterData.userMonster.monsterId).Simple; if (showMaxLuck) { this.luckLabel.text = string.Format(StringMaster.GetString("SystemFraction"), monsterData.userMonster.luck, simple.maxLuck); } else { this.luckLabel.text = monsterData.userMonster.luck.ToString(); } if (!this.disableFriendshipMaxValue) { this.friendshipLabel.text = MonsterFriendshipData.GetMaxFriendshipFormat(monsterData.userMonster.friendship, monsterData.monsterMG.growStep); } else { this.friendshipLabel.text = monsterData.userMonster.friendship; } }
public void SetChangeData(string monsterId, string friendship) { StatusValue values = this.monsterStatusList.GetValues(); int num = values.friendship / ConstValue.RIZE_CONDITION_FRENDSHIPSTATUS; int num2 = friendship.ToInt32(); int num3 = num2 / ConstValue.RIZE_CONDITION_FRENDSHIPSTATUS; int bonusStep = num - num3; MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(monsterId); StatusValue friendshipBonusValue = MonsterFriendshipData.GetFriendshipBonusValue(monsterMasterByMonsterId.Simple, bonusStep); StatusValue beforeStatus = new StatusValue { hp = values.hp - friendshipBonusValue.hp, attack = values.attack - friendshipBonusValue.attack, defense = values.defense - friendshipBonusValue.defense, magicAttack = values.magicAttack - friendshipBonusValue.magicAttack, magicDefense = values.magicDefense - friendshipBonusValue.magicDefense, speed = values.speed - friendshipBonusValue.speed, luck = values.luck, friendship = num2 }; this.monsterStatusChangeValueList.SetValues(beforeStatus, values); }
/// <summary> /// Copies the specified MSG. /// </summary> /// <param name="msg">The MSG.</param> private void Copy(IndexusMessage msg) { #region Access Log #if TRACE { Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;"); } #endif #endregion Access Log if (msg == null) { this.action = ActionValue.Error; throw new ArgumentNullException("IndexusMessage cannot be NULL"); } this.itemPriority = msg.ItemPriority; this.id = msg.id; this.action = msg.action; this.key = msg.key; this.payload = msg.payload; this.expires = msg.expires; this.status = msg.status; this.timestamp = msg.timestamp; }
public StatusProperty(StatusValue status, IEnumerable <IPropertyParameter> parameters) { Status = status; Parameters = parameters; }
public StatusProperty(StatusValue status) { Status = status; }
public ValueRecord(string name, StatusValue status = StatusValue.NONE) { this.name = name; this.status = status; }
/// <summary> /// Sets the bytes. /// </summary> /// <param name="stream">The stream.</param> /// <returns></returns> public bool SetBytes(MemoryStream stream) { #region Access Log #if TRACE { Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;"); } #endif #endregion Access Log BinaryReader br = new BinaryReader(stream); this.status = (StatusValue)br.ReadByte(); this.action = (ActionValue)br.ReadByte(); this.id = br.ReadInt64(); this.itemPriority = (CacheItemPriority)br.ReadByte(); // Modified: 11-01-2008 SharedCache.com, rschuetz : pre_release_1.0.2.132 http://www.codeplex.com/SharedCache/WorkItem/View.aspx?WorkItemId=5046 this.expires = Formatters.DateTimeUnix.DateTimeFromUnixTime((long)br.ReadUInt64()); // Formatters.DateTimeUnix.ToDateTime(br.ReadDouble()); this.timestamp = Formatters.DateTimeUnix.DateTimeFromUnixTime((long)br.ReadUInt64()); // Formatters.DateTimeUnix.ToDateTime(br.ReadDouble()); int dataLength1 = br.ReadInt32(); byte[] buf1 = new byte[dataLength1]; int read1 = br.Read(buf1, 0, dataLength1); this.key = System.Text.Encoding.UTF8.GetString(buf1); int dataLength = br.ReadInt32(); if (dataLength > 0) { byte[] buf = new byte[dataLength]; int read = br.Read(buf, 0, dataLength); this.payload = buf; buf = null; } return true; }
/// <summary> /// Sends this instance. /// </summary> /// <returns></returns> public bool Send() { #region Access Log #if TRACE { Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;"); } #endif #endregion Access Log Sockets.SharedCacheTcpClient client = null; StatusValue statusBeforeSending = this.Status; try { if (statusBeforeSending != StatusValue.ReplicationRequest) { client = Sockets.ManageClientTcpSocketConnectionPoolFactory.GetClient(this.hostname); //try //{ // //} //catch (Exception ex) //{ // Console.WriteLine(ex.ToString()); //} // case for replication mode, choose another server node. if (client == null && Provider.Cache.IndexusDistributionCache.SharedCache.ReplicatedServersList.Count > 0) { client = Sockets.ManageClientTcpSocketConnectionPoolFactory.GetClient( Provider.Cache.IndexusDistributionCache.SharedCache.ReplicatedServersList[0].IpAddress ); } } else { // server to server node communication client = Sockets.ManageServerTcpSocketConnectionPoolFactory.GetServerClient(this.hostname); } if (client != null) { byte[] dataToSend = this.GetBytes(); #region Pre Logging #if DEBUG System.Diagnostics.Stopwatch sp = new System.Diagnostics.Stopwatch(); sp.Start(); if (this.ClientContext) { if (1 == Provider.Cache.IndexusDistributionCache.ProviderSection.ClientSetting.LoggingEnable) { #region Client // Add request to log Handler.LogHandler.Traffic( string.Format(Constants.TRAFFICLOG, client.ServerConnection.LocalEndPoint, System.Threading.Thread.CurrentThread.ManagedThreadId, this.Id, this.Action.ToString(), this.Status.ToString(), dataToSend.LongLength ) ); #endregion } } else { if (1 == Provider.Server.IndexusServerReplicationCache.ProviderSection.ServerSetting.LoggingEnable) { #region Server // Add request to log Handler.LogHandler.SyncInfo( string.Format(Constants.TRAFFICLOG, client.ServerConnection.LocalEndPoint, System.Threading.Thread.CurrentThread.ManagedThreadId, this.Id, this.Action.ToString(), this.Status.ToString(), dataToSend.LongLength ) ); #endregion } } #else if (this.ClientContext) { if (1 == Provider.Cache.IndexusDistributionCache.ProviderSection.ClientSetting.LoggingEnable) { #region Client // Add request to log Handler.LogHandler.Traffic( string.Format(Constants.TRAFFICLOG, client.ServerConnection.LocalEndPoint, System.Threading.Thread.CurrentThread.ManagedThreadId, this.Id, this.Action.ToString(), this.Status.ToString(), dataToSend.LongLength ) ); #endregion } } else { if (1 == Provider.Server.IndexusServerReplicationCache.ProviderSection.ServerSetting.LoggingEnable) { #region Client // Add request to log Handler.LogHandler.SyncInfo( string.Format(Constants.TRAFFICLOG, client.ServerConnection.LocalEndPoint, System.Threading.Thread.CurrentThread.ManagedThreadId, this.Id, this.Action.ToString(), this.Status.ToString(), dataToSend.LongLength ) ); #endregion } } #endif #endregion Pre Logging // potential botleneck!!! this.Copy(client.Send(dataToSend)); #region Post Logging #if DEBUG if (this.ClientContext) { if (1 == Provider.Cache.IndexusDistributionCache.ProviderSection.ClientSetting.LoggingEnable) { sp.Stop(); #region Client // Add request to log Handler.LogHandler.Traffic( string.Format(Constants.POSTTRAFFICLOG, client.ServerConnection.LocalEndPoint, System.Threading.Thread.CurrentThread.ManagedThreadId, this.Id, this.Action.ToString(), this.Status.ToString(), this.GetBytes().LongLength, sp.ElapsedMilliseconds ) ); #endregion } } else { if (1 == Provider.Server.IndexusServerReplicationCache.ProviderSection.ServerSetting.LoggingEnable) { sp.Stop(); #region Server // Add request to log Handler.LogHandler.SyncInfo( string.Format(Constants.POSTTRAFFICLOG, client.ServerConnection.LocalEndPoint, System.Threading.Thread.CurrentThread.ManagedThreadId, this.Id, this.Action.ToString(), this.Status.ToString(), this.GetBytes().LongLength, sp.ElapsedMilliseconds ) ); #endregion } } #else if (this.ClientContext) { if (1 == Provider.Cache.IndexusDistributionCache.ProviderSection.ClientSetting.LoggingEnable) { #region Client // Add request to log Handler.LogHandler.Traffic( string.Format(Constants.TRAFFICLOG, client.ServerConnection.LocalEndPoint, System.Threading.Thread.CurrentThread.ManagedThreadId, this.Id, this.Action.ToString(), this.Status.ToString(), dataToSend.LongLength ) ); #endregion } } else { if (1 == Provider.Server.IndexusServerReplicationCache.ProviderSection.ServerSetting.LoggingEnable) { #region Server // Add request to log Handler.LogHandler.SyncInfo( string.Format(Constants.TRAFFICLOG, client.ServerConnection.LocalEndPoint, System.Threading.Thread.CurrentThread.ManagedThreadId, this.Id, this.Action.ToString(), this.Status.ToString(), dataToSend.LongLength ) ); #endregion } } #endif #endregion Postlogging switch (this.action) { case ActionValue.Successful: { // Action done successfully; return(true); } case ActionValue.Error: { // TODO: Error handling somehow, maybe we need to extend // to return an error code or something similar. //try //{ // // // //CacheException ex = Formatters.Serialization.BinaryDeSerialize<CacheException>(this.Payload); // //Console.WriteLine(ex.Title); //} //catch (Exception ex) //{} Handler.LogHandler.Error("Error, check log files!"); return(false); } } } else { Console.WriteLine(string.Format("Could not receive Socket Client from pool {0}", this.hostname)); Handler.LogHandler.Force(string.Format("Could not receive Socket Client from pool {0}", this.hostname)); Handler.LogHandler.Fatal(string.Format("Could not receive Socket Client from pool {0}", this.hostname)); return(false); } } finally { if (client != null) { if (statusBeforeSending != StatusValue.ReplicationRequest) { Sockets.ManageClientTcpSocketConnectionPoolFactory.PutClient(this.hostname, client); } else { Sockets.ManageServerTcpSocketConnectionPoolFactory.PutServerClient(this.hostname, client); } } } return(false); }
public void ParseDataset(string datasetDirectory, Dictionary <string, BreastCancerSampleItem> sampleMap) { var files = new HashSet <string>(from f in CelFile.GetCelFiles(datasetDirectory, false) select Path.GetFileNameWithoutExtension(f)); var sdrfFile = Directory.GetFiles(datasetDirectory, "*.sdrf.txt"); if (sdrfFile.Length == 0) { throw new ArgumentException("Cannot find sdrf file in directory " + datasetDirectory); } var ann = new AnnotationFormat("^#").ReadFromFile(sdrfFile[0]); var dataset = Path.GetFileName(datasetDirectory); foreach (var a in ann) { var filename = Path.GetFileNameWithoutExtension(FindValue(a, ColumnName.Sample)); if (files.Contains(filename)) { if (!sampleMap.ContainsKey(filename)) { sampleMap[filename] = new BreastCancerSampleItem(); sampleMap[filename].Dataset = dataset; sampleMap[filename].Sample = filename; } var item = sampleMap[filename]; string value; if (FindValue(a, ColumnName.Age, out value)) { item.Age = value; } if (FindValue(a, ColumnName.ER, out value)) { item.ER = StatusValue.TransferStatus(value); } if (FindValue(a, ColumnName.PR, out value)) { item.PR = StatusValue.TransferStatus(value); } if (FindValue(a, ColumnName.HER2, out value)) { item.HER2 = StatusValue.TransferStatus(value); } if (FindValue(a, ColumnName.Stage, out value)) { item.Stage = value; } if (FindValue(a, ColumnName.TumorStage, out value)) { item.TumorStatus = value; } if (FindValue(a, ColumnName.Grade, out value)) { item.Grade = value; } if (FindValue(a, ColumnName.NodalStatus, out value)) { item.NodalStatus = value; } if (FindValue(a, ColumnName.PCR, out value)) { item.PCR = value; } if (FindValue(a, ColumnName.DFS, out value)) { item.DFS = value; } if (FindValue(a, ColumnName.DFSTime, out value)) { item.DFSTime = value; } if (FindValue(a, ColumnName.RFS, out value)) { item.RFS = value; } if (FindValue(a, ColumnName.RFSTime, out value)) { item.RFSTime = value; } if (FindValue(a, ColumnName.DMFS, out value)) { item.DMFS = value; } if (FindValue(a, ColumnName.DMFSTime, out value)) { item.DMFSTime = value; } if (FindValue(a, ColumnName.OverallServive, out value)) { item.OverallSurvival = value; } if (FindValue(a, ColumnName.DeadOfDisease, out value)) { item.DeadOfDisease = value; } } } }
public static StatusValue[] Add(StatusValue n, StatusValue[] list) { ArrayList tmp = new ArrayList(); foreach(StatusValue str in list) tmp.Add(str); tmp.Add(n); return tmp.ToArray(typeof(StatusValue)) as StatusValue[]; }
public static StatusValue[] Remove(int index, StatusValue[] list) { ArrayList tmp = new ArrayList(); foreach(StatusValue str in list) tmp.Add(str); tmp.RemoveAt(index); return tmp.ToArray(typeof(StatusValue)) as StatusValue[]; }
public void SetStatusValueType(int index, StatusValueType type, StatusValue val) { for(int i=0; i<classes.Length; i++) { classes[i].bonus.SetStatusValueType(index, type); classes[i].development.SetStatusValueType(index, type, val); } }
public void SetStatusValueType(int index, StatusValueType type, StatusValue val) { for(int i=0; i<character.Length; i++) { character[i].development.SetStatusValueType(index, type, val); character[i].bonus.SetStatusValueType(index, type); if(!StatusValueType.CONSUMABLE.Equals(type)) { this.RemoveStatusTimeChange(i, index); } } }
private void DisplayDifference() { bool flag = false; MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(this.userMonster.monsterId); if (this.levelUpLabel != null) { string text = string.Empty; if (this.displayLevel > this.defaultLevel) { text = string.Format(StringMaster.GetString("SystemFraction"), this.displayLevel.ToString(), monsterMasterByMonsterId.Simple.maxLevel); } this.levelUpLabel.text = text; flag = true; } int bonusStep = int.Parse(this.userMonster.friendship) / ConstValue.RIZE_CONDITION_FRENDSHIPSTATUS; StatusValue friendshipBonusValue = MonsterFriendshipData.GetFriendshipBonusValue(monsterMasterByMonsterId.Simple, bonusStep); StatusValue statusValue = MonsterStatusData.GetStatusValue(this.userMonster.monsterId, this.displayLevel.ToString()); StatusValue statusValue2 = MonsterStatusData.GetStatusValue(this.userMonster.monsterId, this.userMonster.level); if (this.hpUpLabel != null) { float num = 0f; float num2 = 0f; int num3 = 0; if (int.TryParse(this.userMonster.hpAbility, out num3)) { num = Mathf.Floor((float)statusValue.hp * (float)num3 / 100f); num2 = Mathf.Floor((float)statusValue2.hp * (float)num3 / 100f); } int num4 = int.Parse(this.userMonster.hp) - (statusValue2.hp + friendshipBonusValue.hp + (int)num2); this.hpUpLabel.text = this.GetTextStatusUpValue(this.userMonster.hp, statusValue.hp + friendshipBonusValue.hp + (int)num + num4); flag = true; } if (this.atkUpLabel != null) { float num5 = 0f; float num6 = 0f; int num7 = 0; if (int.TryParse(this.userMonster.attackAbility, out num7)) { num5 = Mathf.Floor((float)statusValue.attack * (float)num7 / 100f); num6 = Mathf.Floor((float)statusValue2.attack * (float)num7 / 100f); } int num8 = int.Parse(this.userMonster.attack) - (statusValue2.attack + friendshipBonusValue.attack + (int)num6); this.atkUpLabel.text = this.GetTextStatusUpValue(this.userMonster.attack, statusValue.attack + friendshipBonusValue.attack + (int)num5 + num8); flag = true; } if (this.defUpLabel != null) { float num9 = 0f; float num10 = 0f; int num11 = 0; if (int.TryParse(this.userMonster.defenseAbility, out num11)) { num9 = Mathf.Floor((float)statusValue.defense * (float)num11 / 100f); num10 = Mathf.Floor((float)statusValue2.defense * (float)num11 / 100f); } int num12 = int.Parse(this.userMonster.defense) - (statusValue2.defense + friendshipBonusValue.defense + (int)num10); this.defUpLabel.text = this.GetTextStatusUpValue(this.userMonster.defense, statusValue.defense + friendshipBonusValue.defense + (int)num9 + num12); flag = true; } if (this.sAtkUpLabel != null) { float num13 = 0f; float num14 = 0f; int num15 = 0; if (int.TryParse(this.userMonster.spAttackAbility, out num15)) { num13 = Mathf.Floor((float)statusValue.magicAttack * (float)num15 / 100f); num14 = Mathf.Floor((float)statusValue2.magicAttack * (float)num15 / 100f); } int num16 = int.Parse(this.userMonster.spAttack) - (statusValue2.magicAttack + friendshipBonusValue.magicAttack + (int)num14); this.sAtkUpLabel.text = this.GetTextStatusUpValue(this.userMonster.spAttack, statusValue.magicAttack + friendshipBonusValue.magicAttack + (int)num13 + num16); flag = true; } if (this.sDefUpLabel != null) { float num17 = 0f; float num18 = 0f; int num19 = 0; if (int.TryParse(this.userMonster.spDefenseAbility, out num19)) { num17 = Mathf.Floor((float)statusValue.magicDefense * (float)num19 / 100f); num18 = Mathf.Floor((float)statusValue2.magicDefense * (float)num19 / 100f); } int num20 = int.Parse(this.userMonster.spDefense) - (statusValue2.magicDefense + friendshipBonusValue.magicDefense + (int)num18); this.sDefUpLabel.text = this.GetTextStatusUpValue(this.userMonster.spDefense, statusValue.magicDefense + friendshipBonusValue.magicDefense + (int)num17 + num20); flag = true; } if (this.spdUpLabel != null) { float num21 = 0f; float num22 = 0f; int num23 = 0; if (int.TryParse(this.userMonster.speedAbility, out num23)) { num21 = Mathf.Floor((float)statusValue.speed * (float)num23 / 100f); num22 = Mathf.Floor((float)statusValue2.speed * (float)num23 / 100f); } int num24 = int.Parse(this.userMonster.speed) - (statusValue2.speed + friendshipBonusValue.speed + (int)num22); this.spdUpLabel.text = this.GetTextStatusUpValue(this.userMonster.speed, statusValue.speed + friendshipBonusValue.speed + (int)num21 + num24); flag = true; } if (this.luckUpLabel != null) { this.luckUpLabel.text = this.GetTextStatusUpValue("0", this.luckUpValue); flag = true; } if (flag && this.animationCoroutine == null) { this.animationCoroutine = AppCoroutine.Start(this.PlayStatusUpAnimation(), false); } }
public override void SetProperty(T t, string value) { pi.SetValue(t, StatusValue.TransferStatus(value), null); }
public void LoadData() { ArrayList data = XMLHandler.LoadXML(dir+filename); if(data.Count > 0) { foreach(Hashtable entry in data) { if(entry[XMLHandler.NODE_NAME] as string == StatusValueData.STATUSVALUES) { if(entry.ContainsKey(XMLHandler.NODES)) { ArrayList subs = entry[XMLHandler.NODES] as ArrayList; value = new StatusValue[subs.Count]; icon = new string[subs.Count]; foreach(Hashtable val in subs) { if(val[XMLHandler.NODE_NAME] as string == StatusValueData.VALUE) { int i = int.Parse((string)val["id"]); icon[i] = ""; value[i] = new StatusValue(); value[i].minValue = int.Parse((string)val["minvalue"]); value[i].maxValue = int.Parse((string)val["maxvalue"]); value[i].type = (StatusValueType)System.Enum.Parse(typeof(StatusValueType), (string)val["type"]); if(StatusValueType.CONSUMABLE.Equals(value[i].type)) { value[i].maxStatus = int.Parse((string)val["maxstatus"]); value[i].killChar = bool.Parse((string)val["killchar"]); } else if(StatusValueType.EXPERIENCE.Equals(value[i].type)) { value[i].levelUp = bool.Parse((string)val["levelup"]); if(val.ContainsKey("levelupclass")) value[i].levelUpClass = true; } ArrayList s = val[XMLHandler.NODES] as ArrayList; foreach(Hashtable ht in s) { this.LoadLanguages(ht, i, subs.Count); if(ht[XMLHandler.NODE_NAME] as string == StatusValueData.ADDTEXT) { value[i].addText.SetData(ht); } else if(ht[XMLHandler.NODE_NAME] as string == StatusValueData.SUBTEXT) { value[i].subText.SetData(ht); } } } } } } } } }
public void AddCharacter(string n, string d, int count, StatusValue[] value) { base.AddBaseData(n, d, count); character = ArrayHelper.Add(new Character(), character); character[character.Length-1].development.BaseInit(value); }
/// <summary> /// Initializes a new instance of the <see cref="IndexusMessage"/> class. /// </summary> /// <param name="id">The id.</param> /// <param name="status">The status.</param> /// <param name="action">The action.</param> /// <param name="priority">The priority.</param> /// <param name="host">The host.</param> /// <param name="expires">The expires.</param> /// <param name="key">The key.</param> /// <param name="payload">The payload.</param> public IndexusMessage(long id, StatusValue status, ActionValue action, CacheItemPriority priority, string host, DateTime expires, string key, byte[] payload) { #region Access Log #if TRACE { Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;"); } #endif #endregion Access Log this.id = id; this.status = status; this.action = action; this.itemPriority = priority; if (!string.IsNullOrEmpty(host)) this.hostname = host; this.expires = expires; this.key = key; this.payload = payload; this.timestamp = DateTime.Now; }
protected override void Execute(CodeActivityContext context) { //Load Input Fields unto local variables string filePath = FilePath.Get(context); string colLetter = ColLetter.Get(context); int colIndex = ColIndex.Get(context); int rowIndex = RowIndex.Get(context); eStatus setStatus = StatusValue; //Validate that file path is not empty if (!String.IsNullOrEmpty(filePath)) { try { //Initialize Excel Interop objects; object m = Type.Missing; Excel.Application xlApp = new Excel.Application(); Excel.Workbooks xlWorkbooks = xlApp.Workbooks; Excel._Workbook xWB; //check if file Exists if not Create the file first if (!File.Exists(filePath)) { xWB = xlWorkbooks.Add(Excel.XlWBATemplate.xlWBATWorksheet); xWB.SaveAs(filePath, Excel.XlFileFormat.xlOpenXMLWorkbook, m, m, false, false, Excel.XlSaveAsAccessMode.xlShared, false, false, m, m, m); xWB.Close(); } Excel.Workbook xlWorkbook = xlWorkbooks.Open(filePath, m, false, m, m, m, m, m, m, m, m, m, m, m, m); Excel._Worksheet xlWorksheet = xlWorkbook.Sheets[1]; Excel.Range xlRange = xlWorksheet.UsedRange; // Initialize Tools create for this project (Class Tools or Tools.cs) Tools toolKit = new Tools(); //Validate if Column Letter is empty and Column Index is 0 to return an error or continue if (String.IsNullOrEmpty(colLetter) && colIndex == 0) { //We require at least one of the two Column values to process, if not return false and throw an exception StatusSet.Set(context, false); throw new ArgumentNullException(); } else { //Validate if Column Letter is empty to determine if to use the column letter or the column index input fields if (String.IsNullOrEmpty(colLetter)) { //Set Status Value using Column Index ((Excel.Range)xlWorksheet.Cells[rowIndex, colIndex]).Value2 = StatusValue.ToString(); StatusSet.Set(context, true); } else { //Set Status Value using Column Letter(s) ((Excel.Range)xlWorksheet.Cells[rowIndex, toolKit.GetColNumber(colLetter)]).Value2 = StatusValue.ToString(); StatusSet.Set(context, false); } } //Save and Close Workbook xlWorkbook.Save(); xlWorkbook.Close(true, m, m); //CLOSE AND GARBAGE COLLECT Marshal.ReleaseComObject(xlWorksheet); xlWorksheet = null; Marshal.ReleaseComObject(xlWorkbooks); xlWorkbooks = null; Marshal.ReleaseComObject(xlWorkbook); xlWorkbook = null; xlApp.Quit(); Marshal.ReleaseComObject(xlApp); xlApp = null; GC.Collect(); //Garbage Collect GC.WaitForPendingFinalizers(); //Wait until Garbage Collect completes } catch { throw; } } else { throw new ArgumentNullException(); } }
public void AddStatusValue(int index, StatusValue val) { for(int i=0; i<classes.Length; i++) { classes[i].bonus.AddStatusValue(); classes[i].development.AddStatusValue(index, val); } }
public void MonsterDataSet(MonsterData mData, DataMng.ExperienceInfo experienceInfo, int chipSlotNum, string exchangeId) { this.viewExtraSkillPage = MonsterStatusData.IsVersionUp(mData.GetMonsterMaster().Simple.rare); this.monsterStatusList.ClearValues(); this.monsterStatusList.SetValues(mData, true, false); this.monsterBasicInfo.ClearMonsterData(); this.monsterBasicInfo.SetMonsterData(mData, experienceInfo); this.monsterResistance.ClearValues(); this.monsterResistance.SetValues(mData); if (this.viewExtraSkillPage) { this.ver2LeaderSkill.ClearSkill(); this.ver2LeaderSkill.SetSkill(mData); this.ver2LearnSkill1.ClearSkill(); this.ver2LearnSkill1.SetSkill(mData); this.ver2LearnSkill2.ClearSkill(); this.ver2LearnSkill2.SetSkill(mData); this.ver2LearnSkill3.ClearSkill(); this.ver2LearnSkill3.SetSkill(mData); } else { this.leaderSkill.ClearSkill(); this.leaderSkill.SetSkill(mData); this.learnSkill1.ClearSkill(); this.learnSkill1.SetSkill(mData); this.learnSkill2.ClearSkill(); this.learnSkill2.SetSkill(mData); } StatusValue statusValue = MonsterStatusData.GetStatusValue(mData.userMonster.monsterId, mData.userMonster.level); this.SetMedalParameter(this.hpUpLabel, mData.userMonster.hpAbility, (float)statusValue.hp); this.SetMedalParameter(this.attackUpLabel, mData.userMonster.attackAbility, (float)statusValue.attack); this.SetMedalParameter(this.defenseUpLabel, mData.userMonster.defenseAbility, (float)statusValue.defense); this.SetMedalParameter(this.spAttackUpLabel, mData.userMonster.spAttackAbility, (float)statusValue.magicAttack); this.SetMedalParameter(this.spDefenseUpLabel, mData.userMonster.spDefenseAbility, (float)statusValue.magicDefense); this.SetMedalParameter(this.speedUpLabel, mData.userMonster.speedAbility, (float)statusValue.speed); this.monsterMedal.SetActive(true); this.monsterMedal.SetValues(mData.userMonster); chipSlotNum += 5; for (int i = 0; i < this.chipObjList.Count; i++) { this.chipObjList[i].SetActive(false); } for (int j = 0; j < chipSlotNum; j++) { if (j >= this.chipObjList.Count) { break; } this.chipObjList[j].SetActive(true); } if (int.Parse(exchangeId) >= 10000) { this.browTypeLabel1.gameObject.SetActive(true); this.browTypeLabel2.gameObject.SetActive(true); this.browTypeLabel1.text = string.Format(StringMaster.GetString("ExchangeSkillTypeDetile"), mData.userMonster.defaultSkillGroupSubId); this.browTypeLabel2.text = string.Format(StringMaster.GetString("ExchangeSkillTypeDetile"), mData.userMonster.defaultSkillGroupSubId); } else { this.browTypeLabel1.gameObject.SetActive(false); this.browTypeLabel2.gameObject.SetActive(false); } }