Gamelogic - Forgot some stuff
This commit is contained in:
parent
9eb8fcba40
commit
34d79d1207
|
@ -13,7 +13,7 @@ ClientObject::~ClientObject()
|
||||||
this->client.Disconnect();
|
this->client.Disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientObject::SetPostbox(Oyster::PostBox<NetworkSession::ClientEvent>* box)
|
void ClientObject::SetPostbox(Oyster::PostBox<NetworkSession::NetEvent>* box)
|
||||||
{
|
{
|
||||||
this->box = box;
|
this->box = box;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ void ClientObject::ProtocolRecievedCallback(Oyster::Network::CustomNetProtocol&
|
||||||
{
|
{
|
||||||
if(!this->box) return;
|
if(!this->box) return;
|
||||||
|
|
||||||
NetworkSession::ClientEvent _event;
|
NetworkSession::NetEvent _event;
|
||||||
_event.protocol = protocol;
|
_event.protocol = protocol;
|
||||||
_event.reciever = this;
|
_event.reciever = this;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace DanBias
|
||||||
ClientObject(const Oyster::Network::NetworkClient& client);
|
ClientObject(const Oyster::Network::NetworkClient& client);
|
||||||
~ClientObject();
|
~ClientObject();
|
||||||
|
|
||||||
void SetPostbox(Oyster::PostBox<NetworkSession::ClientEvent>* box);
|
void SetPostbox(Oyster::PostBox<NetworkSession::NetEvent>* box);
|
||||||
|
|
||||||
GameLogic::Player* Logic_Object();
|
GameLogic::Player* Logic_Object();
|
||||||
Oyster::Network::NetworkClient* NetClient_Object();
|
Oyster::Network::NetworkClient* NetClient_Object();
|
||||||
|
@ -27,7 +27,7 @@ namespace DanBias
|
||||||
private:
|
private:
|
||||||
GameLogic::Player logicPlayer;
|
GameLogic::Player logicPlayer;
|
||||||
Oyster::Network::NetworkClient client;
|
Oyster::Network::NetworkClient client;
|
||||||
Oyster::IPostBox<DanBias::NetworkSession::ClientEvent>* box;
|
Oyster::IPostBox<DanBias::NetworkSession::NetEvent>* box;
|
||||||
};
|
};
|
||||||
|
|
||||||
}//End namespace DanBias
|
}//End namespace DanBias
|
||||||
|
|
Loading…
Reference in New Issue