1
0
cuberite-2a/source/cWindowOwner.h
mtilden@gmail.com c4f4ae5c71 - Chests open and close on clients when opened/closed
- Beginnings of "Double Chest". All that's needed is detection when 2 chests get put next to each other, block other chests from then touching them on any side, load/save with the m_JoinedChest seeing each other and adding and making sure the left side is always the top rows.

I'm not sure exactly at this moment how to do all of the detection and saving/loading of the double chest stuff so if you've any ideas feel free to point out some areas in the server code or implement it yourself.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@154 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-12-29 13:16:23 +00:00

21 lines
473 B
C++

#pragma once
#include "MemoryLeak.h"
class cWindow;
class cBlockEntity;
class cWindowOwner
{
public:
cWindowOwner() : m_Window( 0 ) {}
void CloseWindow() { m_Window = 0; }
void OpenWindow( cWindow* a_Window ) { m_Window = a_Window; }
cWindow* GetWindow() { return m_Window; }
void SetEntity(cBlockEntity *a_Entity) { m_Entity = a_Entity; }
cBlockEntity *GetEntity() { return m_Entity; }
private:
cWindow* m_Window;
cBlockEntity *m_Entity;
};