Skip to content

Commit a9de852

Browse files
committed
Added MLAPI Lite
1 parent a422735 commit a9de852

File tree

15 files changed

+117
-129
lines changed

15 files changed

+117
-129
lines changed

Docs.shfbproj

Lines changed: 0 additions & 90 deletions
This file was deleted.

MLAPI-Editor/MLAPI-Editor.csproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@
3232
<WarningLevel>4</WarningLevel>
3333
<LangVersion>7</LangVersion>
3434
</PropertyGroup>
35+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug_Lite|AnyCPU' ">
36+
<DebugSymbols>true</DebugSymbols>
37+
<DebugType>full</DebugType>
38+
<Optimize>false</Optimize>
39+
<OutputPath>bin\Lite\Debug\</OutputPath>
40+
<DefineConstants>DEBUG;TRACE;DISABLE_CRYPTOGRAPHY</DefineConstants>
41+
<ErrorReport>prompt</ErrorReport>
42+
<WarningLevel>4</WarningLevel>
43+
<LangVersion>7</LangVersion>
44+
</PropertyGroup>
45+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release_Lite|AnyCPU' ">
46+
<DebugType>pdbonly</DebugType>
47+
<Optimize>true</Optimize>
48+
<OutputPath>bin\Lite\Release\</OutputPath>
49+
<DefineConstants>TRACE;DISABLE_CRYPTOGRAPHY</DefineConstants>
50+
<ErrorReport>prompt</ErrorReport>
51+
<WarningLevel>4</WarningLevel>
52+
<LangVersion>7</LangVersion>
53+
</PropertyGroup>
3554
<ItemGroup>
3655
<Compile Include="MLAPIEditor.cs" />
3756
<Compile Include="MLAPIProfiler.cs" />

MLAPI-Examples/MLAPI-Examples.csproj

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>MLAPI_Examples</RootNamespace>
1111
<AssemblyName>MLAPI-Examples</AssemblyName>
12-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
</PropertyGroup>
1515
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -31,6 +31,25 @@
3131
<ErrorReport>prompt</ErrorReport>
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>
34+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug_Lite|AnyCPU' ">
35+
<PlatformTarget>AnyCPU</PlatformTarget>
36+
<DebugSymbols>true</DebugSymbols>
37+
<DebugType>full</DebugType>
38+
<Optimize>false</Optimize>
39+
<OutputPath>bin\Lite\Debug\</OutputPath>
40+
<DefineConstants>DEBUG;TRACE;DISABLE_CRYPTOGRAPHY</DefineConstants>
41+
<ErrorReport>prompt</ErrorReport>
42+
<WarningLevel>4</WarningLevel>
43+
</PropertyGroup>
44+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release_Lite|AnyCPU' ">
45+
<PlatformTarget>AnyCPU</PlatformTarget>
46+
<DebugType>pdbonly</DebugType>
47+
<Optimize>true</Optimize>
48+
<OutputPath>bin\Lite\Release\</OutputPath>
49+
<DefineConstants>TRACE;DISABLE_CRYPTOGRAPHY</DefineConstants>
50+
<ErrorReport>prompt</ErrorReport>
51+
<WarningLevel>4</WarningLevel>
52+
</PropertyGroup>
3453
<ItemGroup>
3554
<Reference Include="System" />
3655
<Reference Include="System.Core" />

MLAPI-Examples/ManagerExamples.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using MLAPI;
22
using MLAPI.Components;
3+
#if !DISABLE_CRYPTOGRAPHY
34
using MLAPI.Cryptography;
5+
#endif
46
using MLAPI.Data;
57

68
namespace MLAPI_Examples
@@ -19,6 +21,7 @@ public NetworkedObject GetLocalPlayerObject()
1921
return SpawnManager.GetLocalPlayerObject();
2022
}
2123

24+
#if !DISABLE_CRYPTOGRAPHY
2225
// Only runs on server
2326
public byte[] GetAESKeyForClient(uint clientId)
2427
{
@@ -30,6 +33,7 @@ public byte[] GetAESKeyForServer()
3033
{
3134
return CryptographyHelper.GetServerKey();
3235
}
36+
#endif
3337

3438
// Contains player object, owned objects, cryptography keys and more
3539
public NetworkedClient GetClient(uint clientId)

MLAPI.Tests/Data/HashCodeTest.cs renamed to MLAPI-Tests/Data/HashCodeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
namespace MLAPI.Tests.Data
2+
namespace MLAPI_Tests.Data
33
{
44
using MLAPI.Data;
55
using NUnit.Framework;

MLAPI.Tests/MLAPI.Tests.csproj renamed to MLAPI-Tests/MLAPI-Tests.csproj

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProjectGuid>{59E9F73A-398C-4F46-85E7-1DCDEEB2A85F}</ProjectGuid>
88
<OutputType>Library</OutputType>
9-
<RootNamespace>MLAPI.Tests</RootNamespace>
10-
<AssemblyName>MLAPI.Tests</AssemblyName>
9+
<RootNamespace>MLAPI_Tests</RootNamespace>
10+
<AssemblyName>MLAPI-Tests</AssemblyName>
1111
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
1212
<NuGetPackageImportStamp>
1313
</NuGetPackageImportStamp>
@@ -29,6 +29,24 @@
2929
<WarningLevel>4</WarningLevel>
3030
<LangVersion>7</LangVersion>
3131
</PropertyGroup>
32+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug_Lite|AnyCPU' ">
33+
<DebugSymbols>true</DebugSymbols>
34+
<DebugType>full</DebugType>
35+
<Optimize>false</Optimize>
36+
<OutputPath>bin\Lite\Debug</OutputPath>
37+
<DefineConstants>DEBUG;DISABLE_CRYPTOGRAPHY</DefineConstants>
38+
<ErrorReport>prompt</ErrorReport>
39+
<WarningLevel>4</WarningLevel>
40+
<LangVersion>7</LangVersion>
41+
</PropertyGroup>
42+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release_Lite|AnyCPU' ">
43+
<Optimize>true</Optimize>
44+
<OutputPath>bin\Lite\Release</OutputPath>
45+
<DefineConstants>DISABLE_CRYPTOGRAPHY</DefineConstants>
46+
<ErrorReport>prompt</ErrorReport>
47+
<WarningLevel>4</WarningLevel>
48+
<LangVersion>7</LangVersion>
49+
</PropertyGroup>
3250
<ItemGroup>
3351
<Reference Include="System" />
3452
<Reference Include="nunit.framework">

MLAPI.Tests/NetworkingManagerComponents/Binary/ArithmeticTest.cs renamed to MLAPI-Tests/NetworkingManagerComponents/Binary/ArithmeticTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
namespace MLAPI.Tests.Serialization
2+
namespace MLAPI_Tests.Serialization
33
{
44
using MLAPI.Serialization;
55
using NUnit.Framework;

MLAPI.Tests/NetworkingManagerComponents/Binary/BitStreamTest.cs renamed to MLAPI-Tests/NetworkingManagerComponents/Binary/BitStreamTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
namespace MLAPI.Tests.Serialization
2+
namespace MLAPI_Tests.Serialization
33
{
44
using MLAPI.Serialization;
55
using NUnit.Framework;

MLAPI.Tests/Test.cs renamed to MLAPI-Tests/Test.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using NUnit.Framework;
22
using System;
3-
namespace MLAPI.Tests
3+
namespace MLAPI_Tests
44
{
55
[TestFixture()]
66
public class Test
File renamed without changes.

0 commit comments

Comments
 (0)