2017-12-03 03:12:04 +00:00
|
|
|
namespace PKHeX.Core
|
|
|
|
{
|
|
|
|
public abstract class Mail
|
|
|
|
{
|
|
|
|
protected byte[] Data;
|
|
|
|
protected int DataOffset;
|
2019-09-03 02:30:58 +00:00
|
|
|
public virtual void CopyTo(SaveFile sav) => sav.SetData(Data, DataOffset);
|
2017-12-03 03:12:04 +00:00
|
|
|
public virtual void CopyTo(PK4 pk4) { }
|
2017-12-03 14:48:04 +00:00
|
|
|
public virtual void CopyTo(PK5 pk5) { }
|
2017-12-03 03:12:04 +00:00
|
|
|
public virtual string GetMessage(bool isLastLine) => null;
|
|
|
|
public virtual ushort GetMessage(int index1, int index2) => 0;
|
|
|
|
public virtual void SetMessage(string line1, string line2) { }
|
|
|
|
public virtual void SetMessage(int index1, int index2, ushort value) { }
|
|
|
|
public virtual string AuthorName { get; set; }
|
|
|
|
public virtual ushort AuthorTID { get; set; }
|
2019-07-05 04:48:18 +00:00
|
|
|
public virtual ushort AuthorSID { get; set; }
|
|
|
|
public virtual byte AuthorVersion { get; set; }
|
|
|
|
public virtual byte AuthorLanguage { get; set; }
|
2017-12-03 14:48:04 +00:00
|
|
|
public virtual byte AuthorGender { get; set; }
|
2017-12-03 03:12:04 +00:00
|
|
|
public virtual int AppearPKM { get; set; }
|
|
|
|
public virtual int MailType { get; set; }
|
|
|
|
public abstract bool? IsEmpty { get; } // true: empty, false: legal mail, null: illegal mail
|
|
|
|
public virtual void SetBlank() { }
|
|
|
|
}
|
|
|
|
}
|