public CharacterTile(WSOGame myGame, Vector2 location, CharacterData charData)
            : this(myGame, location, true)
        {
            username = charData.USERNAME;
            raceID = charData.RACE_ID;
            hairStyleID = charData.HAIR_STYLE_ID;
            hairColorID = charData.HAIR_COLOR_ID;
            faceStyleID = charData.FACE_STYLE_ID;
            shirtStyleID = charData.SHIRT_STYLE_ID;
            shirtColorID = charData.SHIRT_COLOR_ID;
            legsStyleID = charData.LEGS_STYLE_ID;
            legsColorID = charData.LEGS_COLOR_ID;
            skinColorID = charData.SKIN_COLOR_ID;

            SetAppeareance();
        }
        public void AddTile(CharacterData charData)
        {
            Vector2 position;
            CharacterTile tile;

            if (characterTiles.Count == 0){
                position = leftLocation;
            } else if (characterTiles.Count == 1){
                position = middleLocation;
            } else if (characterTiles.Count == 2) {
                position = rightLocation;
            } else {
                return;
            }

            tile = new CharacterTile(myGame, position, charData);
            tile.LoadContent(content);

            characterTiles.Add(tile);
        }
 public void RetrieveCharacterData(NetIncomingMessage incomingMessage)
 {
     int i;
     int charID;
     CharacterData charData;
     for (i = 0; i < 3; i++) {
         charID = incomingMessage.ReadInt32();
         if (charID != 0) {
             charData = new CharacterData();
             charData.CHARACTER_ID = charID;
             charData.USERNAME = incomingMessage.ReadString();
             charData.RACE_ID = incomingMessage.ReadByte();
             charData.HAIR_STYLE_ID = incomingMessage.ReadByte();
             charData.HAIR_COLOR_ID = incomingMessage.ReadByte();
             charData.FACE_STYLE_ID = incomingMessage.ReadByte();
             charData.SHIRT_STYLE_ID = incomingMessage.ReadByte();
             charData.SHIRT_COLOR_ID = incomingMessage.ReadByte();
             charData.LEGS_STYLE_ID = incomingMessage.ReadByte();
             charData.LEGS_COLOR_ID = incomingMessage.ReadByte();
             charData.SKIN_COLOR_ID = incomingMessage.ReadByte();
             charData.GENDER_ID = incomingMessage.ReadByte();
             myGame.selectMenu.AddTile(charData);
         } else {
             myGame.selectMenu.AddEmptyTile();
         }
     }
     myGame.selectMenu.characterDataLoaded = true;
 }