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
|
|
|
|
|
|
|
void DataRecieved( ::Oyster::Network::NetEvent<::Oyster::Network::NetworkClient*, ::Oyster::Network::NetworkClient::ClientEventArgs> e );
|
|
|
|
|
|
|
|
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
|