namespace ODMO.Commons.Models.Character
{
public sealed partial class CharacterMapRegionModel
{
///
/// Unlocks the region.
///
public void Unlock() => Unlocked = 128;
///
/// Serializes the map region object.
///
public byte[] ToArray()
{
using (MemoryStream m = new ())
{
m.Write(BitConverter.GetBytes((short)Unlocked), 0, 1);
return m.ToArray();
}
}
}
}