2011-10-03 14:41:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
class cWindow;
|
2011-12-29 08:16:23 -05:00
|
|
|
class cBlockEntity;
|
2012-03-19 05:37:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
class cWindowOwner
|
|
|
|
{
|
|
|
|
public:
|
2012-03-19 05:37:10 -04:00
|
|
|
cWindowOwner() : m_Window( NULL ) {}
|
|
|
|
void CloseWindow() { m_Window = NULL; }
|
2011-10-03 14:41:19 -04:00
|
|
|
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;
|
2012-03-19 05:37:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|