示例#1
0
 public Object CopyObject()
 {
     Message newMessage = new Message();
     newMessage.Text = Text;
     newMessage.Times = Times;
     return newMessage;
 }
 public void LoadObject(StreamReader inStream)
 {
     dialogIndex = Int32.Parse(inStream.ReadLine());
     messages = new List<Message>();
     int messageSize = Int32.Parse(inStream.ReadLine());
     for(int i=0; i < messageSize; i++)
     {
         Message newMessage = new Message();
         newMessage.LoadObject(inStream);
         messages.Add(newMessage);
     }
 }