public string GetDataOne(UI_Player_Information type) { switch (type) { case UI_Player_Information.ID: return(m_ID); case UI_Player_Information.Total: return(m_Total); case UI_Player_Information.Level: return(m_Level); case UI_Player_Information.CmdLevel: return(m_MyCmdLevel); case UI_Player_Information.FireWallLevel_0: return(m_MySubBuildingList[0]); case UI_Player_Information.Hero_Have: return(m_HeroHaveingState); case UI_Player_Information.Hero_Level: return(m_HeroLevelState); } return("Exception"); }
public void SetUpdateData(UI_Player_Information type, string updateIncreaseValue, int heroIndex, int heroUpAmount) { switch (type) { case UI_Player_Information.Total: m_Total = (int.Parse(m_Total) + int.Parse(updateIncreaseValue)).ToString(); break; case UI_Player_Information.Level: m_Level = (int.Parse(m_Level) + int.Parse(updateIncreaseValue)).ToString(); break; case UI_Player_Information.CmdLevel: m_MyCmdLevel = (int.Parse(m_MyCmdLevel) + int.Parse(updateIncreaseValue)).ToString(); break; case UI_Player_Information.FireWallLevel_0: m_MySubBuildingList[0] = (int.Parse(m_MySubBuildingList[0]) + int.Parse(updateIncreaseValue)).ToString(); break; case UI_Player_Information.Hero_Have: //비트 마스크 m_HeroHaveingState = updateIncreaseValue; break; case UI_Player_Information.Hero_Level: m_HeroLevelState = updateIncreaseValue; break; } m_DataStream = m_Total + "/" + m_Level + "/" + m_MyCmdLevel + "/" + m_HeroHaveingState + "/" + m_HeroLevelState + "/"; for (int i = 0; i < m_MySubBuildingList.Length; i++) { m_DataStream += (m_MySubBuildingList[i] + "/"); } Singletone_NetWorkManager.singletone_Network.Send_Update_UserData(m_DataStream); }