LobbyServer.ASK_CHARACTER_INFO.getCustom C# (CSharp) Method

getCustom() public method

public getCustom ( CharacterEntry ch ) : Byte[]
ch MyDB.CharacterEntry
return Byte[]
        public Byte[] getCustom(CharacterEntry ch)
        {
            Byte[] result = null;
            if (ch.Appearance != null && ch.Appearance.Length > 1)
            {
                String[] values = ch.Appearance.Split('-');
                result = new Byte[values.Length];
                for (int i = 0; i < values.Length; ++i) result[i] = values[i].Length > 1 ? Convert.ToByte(values[i], 16) : (byte)0;
            }
            return result;
        }
    }
ASK_CHARACTER_INFO