mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* AuthenticationDatabase switched to Entity Framework Core, DB First * Adds AsNoTracking() for performance and implements CreateAccount() instead of AddAccount() * woops * Auth db no longer needs to be init, or inherit from Database * test fix hopefully * Database objects in ACE.Entity would no longer be required * Major WIP * more progress * AuthenticationDatabase switched to Entity Framework Core, DB First * Adds AsNoTracking() for performance and implements CreateAccount() instead of AddAccount() * woops * Auth db no longer needs to be init, or inherit from Database * test fix hopefully * Database objects in ACE.Entity would no longer be required * Major WIP * more progress * include missing CharacterCreateInfo * GetCharacters changes to show how we can use the propertybag for these values * Lot of progress with the WorldObject code * comment add * add biota to CreateWorldObject for loading inv from db
52 lines
2 KiB
C#
52 lines
2 KiB
C#
using System.IO;
|
|
|
|
namespace ACE.Entity
|
|
{
|
|
public class Appearance
|
|
{
|
|
public uint Eyes { get; set; }
|
|
public uint Nose { get; set; }
|
|
public uint Mouth { get; set; }
|
|
public uint HairColor { get; set; }
|
|
public uint EyeColor { get; set; }
|
|
public uint HairStyle { get; set; }
|
|
public uint HeadgearStyle { get; set; }
|
|
public uint HeadgearColor { get; set; }
|
|
public uint ShirtStyle { get; set; }
|
|
public uint ShirtColor { get; set; }
|
|
public uint PantsStyle { get; set; }
|
|
public uint PantsColor { get; set; }
|
|
public uint FootwearStyle { get; set; }
|
|
public uint FootwearColor { get; set; }
|
|
public double SkinHue { get; set; }
|
|
public double HairHue { get; set; }
|
|
public double HeadgearHue { get; set; }
|
|
public double ShirtHue { get; set; }
|
|
public double PantsHue { get; set; }
|
|
public double FootwearHue { get; set; }
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
{
|
|
Eyes = reader.ReadUInt32();
|
|
Nose = reader.ReadUInt32();
|
|
Mouth = reader.ReadUInt32();
|
|
HairColor = reader.ReadUInt32();
|
|
EyeColor = reader.ReadUInt32();
|
|
HairStyle = reader.ReadUInt32();
|
|
HeadgearStyle = reader.ReadUInt32();
|
|
HeadgearColor = reader.ReadUInt32();
|
|
ShirtStyle = reader.ReadUInt32();
|
|
ShirtColor = reader.ReadUInt32();
|
|
PantsStyle = reader.ReadUInt32();
|
|
PantsColor = reader.ReadUInt32();
|
|
FootwearStyle = reader.ReadUInt32();
|
|
FootwearColor = reader.ReadUInt32();
|
|
SkinHue = reader.ReadDouble();
|
|
HairHue = reader.ReadDouble();
|
|
HeadgearHue = reader.ReadDouble();
|
|
ShirtHue = reader.ReadDouble();
|
|
PantsHue = reader.ReadDouble();
|
|
FootwearHue = reader.ReadDouble();
|
|
}
|
|
}
|
|
}
|