using System; using ACE.DatLoader; using ACE.DatLoader.FileTypes; using ACE.Entity; using ACE.Entity.Enum.Properties; using ACE.Entity.Models; namespace ACE.Server.WorldObjects { public class Clothing : WorldObject { /// /// A new biota be created taking all of its values from weenie. /// public Clothing(Weenie weenie, ObjectGuid guid) : base(weenie, guid) { SetEphemeralValues(); } /// /// Restore a WorldObject from the database. /// public Clothing(Biota biota) : base(biota) { SetEphemeralValues(); } private void SetEphemeralValues() { } /// /// This will also set the icon based on the palette /// public void SetProperties(int palette, double shade) { var icon = DatManager.PortalDat.ReadFromDat(GetProperty(PropertyDataId.ClothingBase) ?? 0).GetIcon((uint)palette); SetProperty(PropertyDataId.Icon, icon); SetProperty(PropertyInt.PaletteTemplate, palette); SetProperty(PropertyFloat.Shade, shade); } } }