Jocke
2284399538
Removed Close method from Client, Server and Network.
...
Removed legacy variable m_ThreadIsRunning in Client.h and Server.h.
Removed m_EventBroker->Unsubscribe(m_EInputCommand) in Client destructor.
2016-01-12 17:47:03 +01:00
Jocke
236230d12c
Packets now dynamically allocates more memory when they need it.
...
Increased local receive buffer for Client and Server() and removed the magic number that was used
In Server.h and Client.h
(char readBuffer[INPUTSIZE] = { 0 }).
Packets start size has now been increased to 512 bytes.
Changed ComponentInfo::FieldsInOrder to store strings instead of pointers.
Removed HasEntity() and are now using ValidEntity() instead.
2016-01-12 12:00:19 +01:00
Jocke
b37ffc7449
WIP Model component not working.
2016-01-11 14:58:49 +01:00
stiffly
a858dab8b6
Network not longer threaded
2015-12-18 12:00:14 +01:00
Jocke
ad43cc44c3
Merge remote-tracking branch 'origin/Networking' into Networking
2015-12-18 11:03:21 +01:00
Jocke
30db0b10fd
Removed NetworkDefinitions.h and moved #define MAXCONNECTIONS 8
...
#define INPUTSIZE 128 to Network.h.
2015-12-18 10:36:14 +01:00
Jocke
97f8be1915
Made Network.h's Start() and Update pure virtual and removed cpp.
...
Removed unnecessary code from NetworkDefinitions.h.
Renamed sizeOfPackage to sizeOfPacket in Packet.cpp.
2015-12-18 10:21:56 +01:00
stiffly
0b714e593f
Removed WinLeakCheck. Minor variable name changes. removed IsWASDKeyDown struct
2015-12-17 17:56:15 +01:00
stiffly
076030a252
Fixes, mostly name changes
2015-12-17 17:28:43 +01:00
stiffly
4bb4e29515
More cleaning code
2015-12-17 13:23:15 +01:00
Jocke
6da5fd1263
Restructured code and added bool to stop client from spamming Snapshots to a server when
...
it wasn't connected to one.
2015-12-16 15:47:51 +01:00
Jocke
58a9d38e26
Added a class that client and server inherits from.
...
Class and server now share the same pointer i game.
You are now able to start a client and a server on the same computer.
2015-12-16 14:56:53 +01:00
stiffly
a2d55feed1
Merge remote-tracking branch 'origin/Networking' into Networking
...
# Conflicts:
# src/Engine/Network/Client.cpp
# src/Engine/Network/Server.cpp
2015-12-16 11:12:15 +01:00
Jocke
e940c1d604
WIP
2015-12-15 14:55:56 +01:00
stiffly
478c692315
Refactoring. Client and server has Update Loop that runs before any game logic each frame.
2015-12-15 14:53:56 +01:00
stiffly
b698a0d36f
WIP
...
Adding models now crashes. Threading
Added a create player event that currently is not used.
2015-12-15 11:21:46 +01:00
Jocke
01d7388f91
Reactored the package loss logic.
...
Server cannot handle multiple clients yet.
Fixed WorldTest code by adding astrix.
2015-12-11 11:55:23 +01:00
stiffly
58952725e9
Added class Package to help refactor the code. The code got easier to read.
2015-12-10 17:07:18 +01:00
stiffly
4de613814b
WIP Packet loss identification. Put packetID in message
2015-12-09 17:43:36 +01:00
Jocke
0807a7d0ae
Fixed the bug where starting a server made the program crash on closing.
...
Fixed some memory leaks in Client.cpp.
2015-12-09 14:43:43 +01:00
stiffly
2a35c3055e
Renamed NetworkDefines.h --> NetworkDefinitions.h
2015-12-09 11:08:57 +01:00
stiffly
58db7b755a
Random bugfixes and cleanup.
2015-12-08 18:24:08 +01:00
Jocke
94adaf8ae3
Added support for multiplayer.
...
Reactored code, clumped together variables in PlayerDefinition.h.
Integrated server with entity system.
2015-12-08 16:41:22 +01:00
Jocke
c48c9e1f86
Added leak check when using windows (WinLeakCheck.h).
...
Added server to project.
A server can now be started in the project.
2015-12-08 13:54:18 +01:00
sippeangelo
6991a2be26
Renamed Networking -> Network
2015-12-07 15:22:26 +01:00