challenge erzeugt und wird jetzt auch benutzt
This commit is contained in:
@@ -63,6 +63,7 @@
|
|||||||
<Compile Include="src\Message.cs" />
|
<Compile Include="src\Message.cs" />
|
||||||
<Compile Include="src\Opponent.cs" />
|
<Compile Include="src\Opponent.cs" />
|
||||||
<Compile Include="src\Result.cs" />
|
<Compile Include="src\Result.cs" />
|
||||||
|
<Compile Include="src\Challenge.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
</Project>
|
</Project>
|
||||||
19
src/Challenge.cs
Normal file
19
src/Challenge.cs
Normal file
@@ -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);
|
||||||
@@ -256,7 +256,7 @@ namespace WorldOfPeacecraft
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bool accepted = challengeBlock.GetBoolValue("accepted");
|
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"
|
//CHALLENGE: "begin:challenge","id:",INT,"type:",("DRAGON"|"STAGHUNT"|"SKIRMISH"),"accepted:",BOOLEAN,"end:challenge"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user