2015-08-26 13:38:58 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using FFXIVClassic_Lobby_Server.common;
|
2015-09-09 00:08:46 -04:00
|
|
|
|
using FFXIVClassic_Lobby_Server.dataobjects;
|
2015-08-26 13:38:58 -04:00
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Lobby_Server
|
|
|
|
|
{
|
|
|
|
|
class Character
|
|
|
|
|
{
|
2015-09-09 00:08:46 -04:00
|
|
|
|
public uint id;
|
|
|
|
|
public ushort slot;
|
|
|
|
|
public ushort serverId;
|
|
|
|
|
public string name;
|
|
|
|
|
public ushort state;
|
|
|
|
|
public string charaInfo;
|
|
|
|
|
public bool isLegacy;
|
|
|
|
|
public bool doRename;
|
|
|
|
|
public uint currentZoneId;
|
2015-10-05 19:37:03 -04:00
|
|
|
|
|
|
|
|
|
public uint guardian = 0;
|
|
|
|
|
public uint birthMonth = 0;
|
|
|
|
|
public uint birthDay = 0;
|
|
|
|
|
public uint currentClass = 0;
|
|
|
|
|
public uint currentJob = 0;
|
|
|
|
|
public uint allegiance = 0;
|
|
|
|
|
|
|
|
|
|
public uint currentLevel = 1;
|
2015-08-26 13:38:58 -04:00
|
|
|
|
|
2015-09-09 00:08:46 -04:00
|
|
|
|
public static CharaInfo EncodedToCharacter(String charaInfo)
|
2015-08-26 13:38:58 -04:00
|
|
|
|
{
|
|
|
|
|
charaInfo.Replace("+", "-");
|
|
|
|
|
charaInfo.Replace("/", "_");
|
|
|
|
|
byte[] data = System.Convert.FromBase64String(charaInfo);
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("------------Base64 printout------------------");
|
|
|
|
|
Console.WriteLine(Utils.ByteArrayToHex(data));
|
|
|
|
|
Console.WriteLine("------------Base64 printout------------------");
|
|
|
|
|
|
2015-09-09 00:08:46 -04:00
|
|
|
|
CharaInfo chara = new CharaInfo();
|
|
|
|
|
|
2015-08-26 13:38:58 -04:00
|
|
|
|
return chara;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|