Skip to content

Commit 2d851a9

Browse files
authored
Merge pull request #150 from darvell/master
Replace IntX with BigInteger.
2 parents c22000f + 7c2c411 commit 2d851a9

File tree

6 files changed

+3018
-111
lines changed

6 files changed

+3018
-111
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace MLAPI.Data
7+
{
8+
internal static class UnsignedIntegerArrayExtensions
9+
{
10+
public static bool BitAt(this uint[] data, long index) => (data[index / 32] & (1 << (int)(index % 32))) != 0;
11+
}
12+
}

MLAPI/MLAPI.csproj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@
6565
<LangVersion>7</LangVersion>
6666
</PropertyGroup>
6767
<ItemGroup>
68-
<Reference Include="IntXLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1744b76c74eaee1e, processorArchitecture=MSIL" Condition="!$(DefineConstants.Contains(DISABLE_CRYPTOGRAPHY))">
69-
<HintPath>..\packages\IntX.1.0.1.0\lib\net20\IntXLib.dll</HintPath>
70-
</Reference>
7168
<Reference Include="System" />
7269
<Reference Include="System.Core" />
70+
<Reference Include="System.Security" />
7371
<Reference Include="System.Xml.Linq" />
7472
<Reference Include="System.Data.DataSetExtensions" />
7573
<Reference Include="System.Data" />
@@ -78,13 +76,11 @@
7876
<SpecificVersion>False</SpecificVersion>
7977
<HintPath>..\Libraries\Unity\UnityEngine.dll</HintPath>
8078
</Reference>
81-
<Reference Include="IntXLib">
82-
<HintPath>..\packages\IntX.1.0.1.0\lib\net20\IntXLib.dll</HintPath>
83-
</Reference>
8479
</ItemGroup>
8580
<ItemGroup>
8681
<Compile Include="Data\Channel.cs" />
8782
<Compile Include="Data\AttributeMessageMode.cs" />
83+
<Compile Include="Data\UnsignedIntegerArrayExtensions.cs" />
8884
<Compile Include="Data\MLAPIConstants.cs" />
8985
<Compile Include="Data\NetworkedCollections\NetworkedDictionary.cs" />
9086
<Compile Include="Data\NetworkedCollections\NetworkedList.cs" />
@@ -112,6 +108,7 @@
112108
<Compile Include="MonoBehaviours\Prototyping\NetworkedAnimator.cs" />
113109
<Compile Include="MonoBehaviours\Prototyping\NetworkedNavMeshAgent.cs" />
114110
<Compile Include="NetworkingManagerComponents\Binary\Arithmetic.cs" />
111+
<Compile Include="NetworkingManagerComponents\Binary\BigInteger.cs" />
115112
<Compile Include="NetworkingManagerComponents\Binary\BitReader.cs" />
116113
<Compile Include="NetworkingManagerComponents\Binary\BitWriter.cs" />
117114
<Compile Include="NetworkingManagerComponents\Binary\BitStream.cs" />

0 commit comments

Comments
 (0)