RavEngine
Loading...
Searching...
No Matches
NetworkBase.hpp
1#pragma once
2#include <atomic>
3#include <thread>
4#include "Uuid.hpp"
5#include "SpinLock.hpp"
6#include "DataStructures.hpp"
7#include "Entity.hpp"
8#include <steam/steamnetworkingtypes.h>
9
10namespace RavEngine{
11
13 friend class NetworkManager;
14protected:
15 std::thread worker;
16 std::atomic<bool> workerIsRunning = false;
17 std::atomic<bool> workerHasStopped = true;
18
19
20 //Track all the networkidentities by their IDs
22
23public:
24
25 enum Reliability{
28 };
29
30 struct CommandCode {
31 enum {
32 Spawn = 1, // receive on client
33 Destroy, // receive on client
34 RPC,
35 OwnershipToThis, // receive on client
36 OwnershipRevoked, // receive on client
37 ClientRequestingWorldSynchronization // receive on server
38 };
39 };
40};
41
42}
Definition NetworkBase.hpp:12
Definition NetworkManager.hpp:15
Definition concurrentqueue.h:747
Definition Animation.hpp:6
Definition NetworkBase.hpp:30