Refactor the game event loop and add menus to the Linux build

Patch from @x-qq
Addresses #195
This commit is contained in:
2020-01-25 17:57:32 -05:00
parent 1fcbd8e922
commit 29ef8b9c1e
17 changed files with 600 additions and 155 deletions

View File

@@ -278,6 +278,13 @@ void menu_activate() {
[[file_menu itemWithTitle: @"Save As…"] setEnabled: YES];
}
bool menuBarProcessEvent(const sf::Event&) {
return false;
}
void drawMenuBar() {
}
@implementation MenuHandler
-(void) monstMenu:(id) sender {
cMonster* monst = [[sender representedObject] monst];