FastEngine
0.9.4
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
includes
FastEngine
network
C_error.hpp
1
/*
2
* Copyright 2025 Guillaume Guillet
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef _FGE_C_ERROR_HPP_INCLUDED_
18
#define _FGE_C_ERROR_HPP_INCLUDED_
19
20
#include "FastEngine/fge_extern.hpp"
21
#include <cstdint>
22
#include <ostream>
23
24
namespace
fge::net
25
{
26
27
struct
FGE_API
Error
28
{
29
enum class
Types
30
{
31
ERR_NONE,
32
ERR_ALREADY_INVALID,
33
ERR_EXTRACT,
34
ERR_RULE,
35
ERR_TRANSMIT,
36
ERR_DATA,
37
38
ERR_SCENE_OLD_PACKET
39
};
40
41
Types _type{Types::ERR_NONE};
42
std::size_t _readPos{0};
43
char
const
* _error{
nullptr
};
44
char
const
* _function{
nullptr
};
45
46
void
dump(std::ostream& os)
const
;
47
};
48
49
}
// namespace fge::net
50
51
#endif
// _FGE_C_ERROR_HPP_INCLUDED_
fge::net::Error
Definition
C_error.hpp:28
Generated by
1.14.0