Merge branch 'master' of manuel-voegele.de:inf3

This commit is contained in:
2014-06-05 12:34:29 +02:00
2 changed files with 9 additions and 0 deletions

View File

@@ -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);
}
}
}

View File

@@ -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)