コード例 #1
0
ファイル: Client Mail.cs プロジェクト: ELMASTERS/SagaRevised
 /// <summary>
 /// Occurs when requesting to refresh the inbox list with mail items.
 /// </summary>
 private void CM_REQUESTINBOXMAILLIST(CMSG_REQUESTINOX cpkt)
 {
     SMSG_MAILLIST spkt = new SMSG_MAILLIST();
     spkt.SessionId = this.character.id;
     spkt.SourceActor = this.character.id;
     foreach (Mail c in Singleton.Database.GetInboxMail(this.character))
         spkt.AddMail(c);
     this.Send((byte[])spkt);
 }
コード例 #2
0
ファイル: MapItem.cs プロジェクト: ELMASTERS/SagaRevised
        protected void OnCheckMail(Character target)
        {
            SMSG_MAILLIST spkt = new SMSG_MAILLIST();
            spkt.SessionId = target.id;
            spkt.SourceActor = target.id;

            foreach (Mail c in Singleton.Database.GetInboxMail(target))
                spkt.AddMail(c);

            target.client.Send((byte[])spkt);
        }