2011-10-03 14:41:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
class cWindow;
|
2011-12-29 08:16:23 -05:00
|
|
|
class cBlockEntity;
|
2011-10-03 14:41:19 -04:00
|
|
|
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; }
|
2011-12-29 08:16:23 -05:00
|
|
|
|
|
|
|
void SetEntity(cBlockEntity *a_Entity) { m_Entity = a_Entity; }
|
|
|
|
cBlockEntity *GetEntity() { return m_Entity; }
|
2011-10-03 14:41:19 -04:00
|
|
|
private:
|
|
|
|
cWindow* m_Window;
|
2011-12-29 08:16:23 -05:00
|
|
|
cBlockEntity *m_Entity;
|
2011-10-03 14:41:19 -04:00
|
|
|
};
|