Beispiel #1
0
    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));
    }
Beispiel #2
0
 public NetworkPersonalScoreMessage(int id, PersonalScoreManager.TYPE type)
 {
     this.id   = id;
     this.type = type;
 }
Beispiel #3
0
    public void SendPersonalScore(int id, PersonalScoreManager.TYPE type)
    {
        string s = SerializationScript.SerlizalizePersonalScore(id, type);

        SendData(s, 1, true);
    }
Beispiel #4
0
 public static string SerlizalizePersonalScore(int id, PersonalScoreManager.TYPE type)
 {
     return(GameEvent.PERSONAL_SCORE + ":" + id + ":" + (int)type);
 }