Merge branch 'master' of manuel-voegele.de:inf3
This commit is contained in:
@@ -22,6 +22,9 @@ namespace WorldOfPeacecraft
|
||||
private bool initialized = false;
|
||||
private Pathwalker Pathwalker = new Pathwalker();
|
||||
|
||||
public delegate void ChallengeEventHandler(Challenge c);
|
||||
public event ChallengeEventHandler Challenge;
|
||||
|
||||
public Backend (IGui gui)
|
||||
{
|
||||
Gui = gui;
|
||||
@@ -210,6 +213,11 @@ namespace WorldOfPeacecraft
|
||||
InitializedEvent.WaitOne();
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
public void ChallengeIncome(Challenge c)
|
||||
{
|
||||
Challenge(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -310,6 +310,7 @@ namespace WorldOfPeacecraft
|
||||
}
|
||||
bool accepted = challengeBlock.GetBoolValue("accepted");
|
||||
Challenge c = new Challenge(id, type, accepted);
|
||||
Backend.ChallengeIncome(c);
|
||||
}
|
||||
|
||||
private void ProcessPlayerSelf (Block playerBlock)
|
||||
|
||||
Reference in New Issue
Block a user