2014-02-17 11:27:43 +01:00
|
|
|
/********************************************************************
|
|
|
|
* Created by Dan Andersson, 2014
|
|
|
|
* Contains a shared memory struct.
|
|
|
|
* Whihc reference passed seamlessly between the game states
|
|
|
|
* at their Init calls.
|
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
#ifndef SHAREDSTATECONTENT_H
|
|
|
|
#define SHAREDSTATECONTENT_H
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include "Utilities.h"
|
|
|
|
#include "C_Object.h"
|
2014-02-17 14:33:11 +01:00
|
|
|
#include "C_obj\C_StaticObj.h"
|
|
|
|
#include "C_obj\C_DynamicObj.h"
|
2014-02-19 10:59:23 +01:00
|
|
|
#include "C_Light.h"
|
2014-02-17 11:27:43 +01:00
|
|
|
#include "NetworkClient.h"
|
2014-02-20 16:15:47 +01:00
|
|
|
#include "Input.h"
|
2014-02-17 11:27:43 +01:00
|
|
|
|
|
|
|
namespace DanBias { namespace Client
|
|
|
|
{
|
|
|
|
struct SharedStateContent
|
|
|
|
{
|
|
|
|
public:
|
2014-02-17 14:33:11 +01:00
|
|
|
::std::map<int, ::Utility::DynamicMemory::UniquePointer<::DanBias::Client::C_StaticObj>> staticObjects;
|
|
|
|
::std::map<int, ::Utility::DynamicMemory::UniquePointer<::DanBias::Client::C_DynamicObj>> dynamicObjects;
|
2014-02-19 10:59:23 +01:00
|
|
|
::std::map<int, ::Utility::DynamicMemory::UniquePointer<::DanBias::Client::C_Light>> lights;
|
2014-02-17 11:27:43 +01:00
|
|
|
::Oyster::Network::NetworkClient *network;
|
2014-02-20 16:15:47 +01:00
|
|
|
|
|
|
|
::Input::Mouse *mouseDevice;
|
|
|
|
::Input::Keyboard *keyboardDevice_raw;
|
|
|
|
::Input::ApplicationKeyboard *keyboardDevice_application;
|
2014-02-17 11:27:43 +01:00
|
|
|
};
|
|
|
|
} }
|
|
|
|
|
|
|
|
#endif
|