Add ENet thirdparty
This commit is contained in:
@@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
#include "Engine/Core/Collections/Array.h"
|
#include "Engine/Core/Collections/Array.h"
|
||||||
|
|
||||||
|
#define ENET_IMPLEMENTATION
|
||||||
|
#define _WINSOCK_DEPRECATED_NO_WARNINGS
|
||||||
|
#include <enet/enet.h>
|
||||||
|
|
||||||
|
#undef _WINSOCK_DEPRECATED_NO_WARNINGS
|
||||||
|
#undef SendMessage
|
||||||
|
|
||||||
void ENetDriver::Initialize(const NetworkConfig& config)
|
void ENetDriver::Initialize(const NetworkConfig& config)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
22
Source/ThirdParty/enet/enet License.txt
vendored
Normal file
22
Source/ThirdParty/enet/enet License.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2002-2016 Lee Salzman
|
||||||
|
Copyright (c) 2017-2021 Vladyslav Hrytsenko, Dominik Madarász
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
32
Source/ThirdParty/enet/enet.Build.cs
vendored
Normal file
32
Source/ThirdParty/enet/enet.Build.cs
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||||
|
|
||||||
|
using System.IO;
|
||||||
|
using Flax.Build;
|
||||||
|
using Flax.Build.NativeCpp;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// https://github.com/zpl-c/enet
|
||||||
|
/// </summary>
|
||||||
|
public class ENet : DepsModule
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public override void Init()
|
||||||
|
{
|
||||||
|
base.Init();
|
||||||
|
|
||||||
|
LicenseType = LicenseTypes.Custom;
|
||||||
|
LicenseFilePath = "enet License.txt";
|
||||||
|
|
||||||
|
// Merge third-party modules into engine binary
|
||||||
|
BinaryModuleName = "FlaxEngine";
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public override void Setup(BuildOptions options)
|
||||||
|
{
|
||||||
|
base.Setup(options);
|
||||||
|
|
||||||
|
var depsRoot = options.DepsFolder;
|
||||||
|
options.PublicDefinitions.Add("ENET");
|
||||||
|
}
|
||||||
|
}
|
||||||
6086
Source/ThirdParty/enet/enet.h
vendored
Normal file
6086
Source/ThirdParty/enet/enet.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user