mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-25 03:49:46 +00:00
.h -> .hpp everything
This commit is contained in:
parent
7d3257669a
commit
7418263193
845 changed files with 53732 additions and 53754 deletions
|
|
@ -1,48 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
//package net.minecraft.client.gui.screens;
|
||||
|
||||
#include <vector>
|
||||
#include "../Screen.h"
|
||||
#include "../../Minecraft.h"
|
||||
#include "../../player/LocalPlayer.h"
|
||||
|
||||
class BaseContainerMenu;
|
||||
|
||||
class BaseContainerScreen: public Screen
|
||||
{
|
||||
typedef Screen super;
|
||||
public:
|
||||
BaseContainerScreen(BaseContainerMenu* menu)
|
||||
: menu(menu)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void init() {
|
||||
super::init();
|
||||
minecraft->player->containerMenu = menu;
|
||||
}
|
||||
|
||||
virtual void tick() {
|
||||
super::tick();
|
||||
if (!minecraft->player->isAlive() || minecraft->player->removed)
|
||||
minecraft->player->closeContainer();
|
||||
}
|
||||
|
||||
virtual void keyPressed( int eventKey )
|
||||
{
|
||||
if (eventKey == Keyboard::KEY_ESCAPE) {
|
||||
minecraft->player->closeContainer();
|
||||
} else {
|
||||
super::keyPressed(eventKey);
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool closeOnPlayerHurt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected:
|
||||
BaseContainerMenu* menu;
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue