mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Finished character creator DB calls, moved DB stuff to Dapper, started work on get characters.
This commit is contained in:
parent
9dfd6906b9
commit
443212830a
10 changed files with 183 additions and 166 deletions
|
@ -4,62 +4,23 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FFXIVClassic_Lobby_Server.common;
|
||||
using FFXIVClassic_Lobby_Server.dataobjects;
|
||||
|
||||
namespace FFXIVClassic_Lobby_Server
|
||||
{
|
||||
class Character
|
||||
{
|
||||
public string name = "Test Test";
|
||||
public string world = "Test World";
|
||||
|
||||
public uint id = 0;
|
||||
|
||||
public uint tribe = 0;
|
||||
public uint size = 0;
|
||||
public uint voice = 0;
|
||||
public uint skinColor = 0;
|
||||
|
||||
public uint hairStyle = 0;
|
||||
public uint hairColor = 0;
|
||||
public uint eyeColor = 0;
|
||||
|
||||
public uint faceType = 0;
|
||||
public uint faceBrow = 0;
|
||||
public uint faceEye = 0;
|
||||
public uint faceIris = 0;
|
||||
public uint faceNose = 0;
|
||||
public uint faceMouth = 0;
|
||||
public uint faceJaw = 0;
|
||||
public uint faceCheek = 0;
|
||||
public uint faceOption1 = 0;
|
||||
public uint faceOption2 = 0;
|
||||
|
||||
public uint guardian = 0;
|
||||
public uint birthMonth = 0;
|
||||
public uint birthDay = 0;
|
||||
public uint allegiance = 0;
|
||||
|
||||
public uint weapon1 = 0;
|
||||
public uint weapon2 = 0;
|
||||
|
||||
public uint headGear = 0;
|
||||
public uint bodyGear = 0;
|
||||
public uint legsGear = 0;
|
||||
public uint handsGear = 0;
|
||||
public uint feetGear = 0;
|
||||
public uint waistGear = 0;
|
||||
public uint rightEarGear = 0;
|
||||
public uint leftEarGear = 0;
|
||||
public uint rightFingerGear = 0;
|
||||
public uint leftFingerGear = 0;
|
||||
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[] toBytes()
|
||||
{
|
||||
byte[] bytes = new byte[0x120];
|
||||
return bytes;
|
||||
}
|
||||
|
||||
public static String characterToEncoded(Character chara)
|
||||
public static String characterToEncoded(CharaInfo chara)
|
||||
{
|
||||
String charaInfo = System.Convert.ToBase64String(chara.toBytes());
|
||||
charaInfo.Replace("+", "-");
|
||||
|
@ -67,7 +28,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
return charaInfo;
|
||||
}
|
||||
|
||||
public static Character EncodedToCharacter(String charaInfo)
|
||||
public static CharaInfo EncodedToCharacter(String charaInfo)
|
||||
{
|
||||
charaInfo.Replace("+", "-");
|
||||
charaInfo.Replace("/", "_");
|
||||
|
@ -77,7 +38,8 @@ namespace FFXIVClassic_Lobby_Server
|
|||
Console.WriteLine(Utils.ByteArrayToHex(data));
|
||||
Console.WriteLine("------------Base64 printout------------------");
|
||||
|
||||
Character chara = new Character();
|
||||
CharaInfo chara = new CharaInfo();
|
||||
|
||||
return chara;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue