2014-02-14 14:32:17 +01:00
|
|
|
#ifndef DANBIAS_CLIENT_NETLOADSTATE_H
|
|
|
|
#define DANBIAS_CLIENT_NETLOADSTATE_H
|
|
|
|
|
|
|
|
#include "GameClientState.h"
|
|
|
|
#include "NetworkClient.h"
|
|
|
|
|
|
|
|
namespace DanBias
|
|
|
|
{
|
|
|
|
namespace Client
|
|
|
|
{
|
|
|
|
class NetLoadState : public GameClientState
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NetLoadState( );
|
|
|
|
virtual ~NetLoadState( );
|
|
|
|
|
2014-02-17 11:27:43 +01:00
|
|
|
bool Init( SharedStateContent &shared );
|
|
|
|
ClientState Update( float deltaTime );
|
2014-02-14 14:32:17 +01:00
|
|
|
|
|
|
|
bool Render();
|
|
|
|
bool Release();
|
|
|
|
void ChangeState( ClientState next );
|
2014-02-14 15:19:10 +01:00
|
|
|
|
2014-02-18 17:28:24 +01:00
|
|
|
const NetEvent & DataRecieved( const NetEvent &message );
|
2014-02-14 15:19:10 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
struct MyData;
|
|
|
|
::Utility::DynamicMemory::UniquePointer<MyData> privData;
|
2014-02-14 17:12:38 +01:00
|
|
|
|
|
|
|
void LoadGame( const ::std::string &fileName );
|
2014-02-14 14:32:17 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif // ! DANBIAS_CLIENT_LOGINSTATE_H
|