internal void UpdatePersonalScore(string[] splitCode) { int id = int.Parse(splitCode[1]); PersonalScoreManager.TYPE type = (PersonalScoreManager.TYPE)(int.Parse(splitCode[2])); if (id == _myID) { //TODO add shit } EventController.FireEvent(new NetworkPersonalScoreMessage(id, type)); }
public NetworkPersonalScoreMessage(int id, PersonalScoreManager.TYPE type) { this.id = id; this.type = type; }
public void SendPersonalScore(int id, PersonalScoreManager.TYPE type) { string s = SerializationScript.SerlizalizePersonalScore(id, type); SendData(s, 1, true); }
public static string SerlizalizePersonalScore(int id, PersonalScoreManager.TYPE type) { return(GameEvent.PERSONAL_SCORE + ":" + id + ":" + (int)type); }