diff --git a/inf3.csproj b/inf3.csproj index 406e1a6..c1d8b12 100644 --- a/inf3.csproj +++ b/inf3.csproj @@ -63,6 +63,7 @@ + \ No newline at end of file diff --git a/src/Challenge.cs b/src/Challenge.cs new file mode 100644 index 0000000..7d0d053 --- /dev/null +++ b/src/Challenge.cs @@ -0,0 +1,19 @@ +using System; + +namespace inf3 +{ + public class Challenge + { + int id_; + string type_; + bool accepted_; + public Challenge (int id, string type, bool accepted) + { + id_ = id; + type_ = type; + accepted_ = accepted; + } + } +} + +//Challenge c = new Challenge(id, type, accepted); \ No newline at end of file diff --git a/src/Parser.cs b/src/Parser.cs index 77b42fe..1607a67 100644 --- a/src/Parser.cs +++ b/src/Parser.cs @@ -256,7 +256,7 @@ namespace WorldOfPeacecraft break; } bool accepted = challengeBlock.GetBoolValue("accepted"); - //Challenge c = new Challenge(id, type, accepted); + Challenge c = new Challenge(id, type, accepted); //CHALLENGE: "begin:challenge","id:",INT,"type:",("DRAGON"|"STAGHUNT"|"SKIRMISH"),"accepted:",BOOLEAN,"end:challenge" }