sendmail(guid, title, content, sender, levelDemand, validPeriod, money, gold, item1, item1num, item2, item2num, ...);
상속: StorySystem.AbstractStoryCommand
예제 #1
0
        protected override IStoryCommand CloneCommand()
        {
            SendMailCommand cmd = new SendMailCommand();

            cmd.m_Receiver    = m_Receiver.Clone();
            cmd.m_Title       = m_Title.Clone();
            cmd.m_Content     = m_Content.Clone();
            cmd.m_Sender      = m_Sender.Clone();
            cmd.m_LevelDemand = m_LevelDemand.Clone();
            cmd.m_ValidPeriod = m_ValidPeriod.Clone();
            cmd.m_Money       = m_Money.Clone();
            cmd.m_Gold        = m_Gold.Clone();
            for (int i = 0; i < m_MailItems.Count; ++i)
            {
                IStoryValue <int> val = m_MailItems[i];
                cmd.m_MailItems.Add(val.Clone());
            }
            return(cmd);
        }
 public override IStoryCommand Clone()
 {
     SendMailCommand cmd = new SendMailCommand();
     cmd.m_Receiver = m_Receiver.Clone();
     cmd.m_Title = m_Title.Clone();
     cmd.m_Content = m_Content.Clone();
     cmd.m_Sender = m_Sender.Clone();
     cmd.m_LevelDemand = m_LevelDemand.Clone();
     cmd.m_ValidPeriod = m_ValidPeriod.Clone();
     cmd.m_Money = m_Money.Clone();
     cmd.m_Gold = m_Gold.Clone();
     for (int i = 0; i < m_MailItems.Count; ++i) {
         IStoryValue<int> val = m_MailItems[i];
         cmd.m_MailItems.Add(val.Clone());
     }
     return cmd;
 }