Message Klasse erzeugt und verwendet in Parser.cs

This commit is contained in:
Wafa Sadri
2014-04-11 10:27:21 +02:00
parent d91ec3fa6e
commit ab10b354b2
4 changed files with 33 additions and 1 deletions

19
src/Message.cs Normal file
View File

@@ -0,0 +1,19 @@
using System;
namespace inf3
{
public class Message
{
int sourceID;
string source;
string text;
public Message (int srcid, string src, string txt)
{
sourceID = srcid;
source = src;
text = txt;
}
}
}

View File

@@ -179,7 +179,7 @@ namespace WorldOfPeacecraft
int srcid = mesBlock.GetIntValue ("srcid");
string src = mesBlock.GetStringValue ("src");
string txt = mesBlock.GetStringValue ("txt");
//Message m = new Message (srcid, src, txt);
Message m = new Message (srcid, src, txt);
//TODO Herausfinden wie wir das oben lösen (gilt für alle Funktionenstümpfe)
}