mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
- renamed sln to FFXIVClassic.sln - threaded logging - todo: print packets using Log.Packet
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
using FFXIVClassic.Common;
|
|
using FFXIVClassic_Lobby_Server.dataobjects;
|
|
|
|
namespace FFXIVClassic_Lobby_Server
|
|
{
|
|
class Character
|
|
{
|
|
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;
|
|
|
|
public byte guardian;
|
|
public byte birthMonth;
|
|
public byte birthDay;
|
|
|
|
public uint currentClass = 3;
|
|
public uint currentJob = 0;
|
|
public int currentLevel = 1;
|
|
|
|
public byte initialTown;
|
|
public byte tribe;
|
|
|
|
public static CharaInfo EncodedToCharacter(String charaInfo)
|
|
{
|
|
charaInfo.Replace("+", "-");
|
|
charaInfo.Replace("/", "_");
|
|
byte[] data = System.Convert.FromBase64String(charaInfo);
|
|
|
|
Program.Log.Debug("------------Base64 printout------------------");
|
|
Program.Log.Debug(Utils.ByteArrayToHex(data));
|
|
Program.Log.Debug("------------Base64 printout------------------");
|
|
|
|
CharaInfo chara = new CharaInfo();
|
|
|
|
return chara;
|
|
}
|
|
}
|
|
}
|