mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Initial commit of the FFXIV 1.0 lobby server.
This commit is contained in:
commit
c1e214175f
48 changed files with 55780 additions and 0 deletions
36
FFXIVClassic_Lobby_Server/packets/CharacterRequestPacket.cs
Normal file
36
FFXIVClassic_Lobby_Server/packets/CharacterRequestPacket.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_Lobby_Server.packets
|
||||
{
|
||||
class CharacterRequestPacket
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct CharacterRequest
|
||||
{
|
||||
public uint sequence;
|
||||
public uint unknown;
|
||||
public uint characterId;
|
||||
public uint unknown2;
|
||||
public byte slot;
|
||||
public byte command;
|
||||
public ushort worldId;
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 0x20)]
|
||||
public String characterName;
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 0x190)]
|
||||
public String characterInfoEncoded;
|
||||
}
|
||||
|
||||
public static unsafe CharacterRequest toStruct(byte[] bytes)
|
||||
{
|
||||
fixed (byte* pdata = &bytes[0])
|
||||
{
|
||||
return (CharacterRequest)Marshal.PtrToStructure(new IntPtr(pdata), typeof(CharacterRequest));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue