Browse Source

UPM package version 3.2.1

tags/3.2.1
GitHub 3 years ago
parent
commit
01d75b3f32
7 changed files with 12 additions and 12 deletions
  1. +1
    -1
      Core/ComponentBuilder.cs
  2. +1
    -1
      Core/EntityReference/EnginesRoot.LocatorMap.cs
  3. +1
    -1
      DataStructures/ITypeSafeDictionary.cs
  4. +3
    -3
      DataStructures/TypeSafeDictionary.cs
  5. +4
    -4
      Svelto.ECS.csproj
  6. +1
    -1
      Svelto.ECS.nuspec
  7. +1
    -1
      package.json

+ 1
- 1
Core/ComponentBuilder.cs View File

@@ -105,7 +105,7 @@ namespace Svelto.ECS

public override int GetHashCode() { return _initializer.GetHashCode(); }

static void Preallocate(ITypeSafeDictionary dictionary, uint size) { dictionary.SetCapacity(size); }
static void Preallocate(ITypeSafeDictionary dictionary, uint size) { dictionary.ResizeTo(size); }

readonly T _initializer;



+ 1
- 1
Core/EntityReference/EnginesRoot.LocatorMap.cs View File

@@ -188,7 +188,7 @@ namespace Svelto.ECS
{
_egidToReferenceMap
.GetOrCreate(groupID, () => new SharedSveltoDictionaryNative<uint, EntityReference>(size))
.SetCapacity(size);
.ResizeTo(size);

_entityReferenceMap.Resize(size);
}


+ 1
- 1
DataStructures/ITypeSafeDictionary.cs View File

@@ -33,7 +33,7 @@ namespace Svelto.ECS.Internal
void AddEntityToDictionary(EGID fromEntityGid, EGID toEntityID, ITypeSafeDictionary toGroup);
void RemoveEntityFromDictionary(EGID fromEntityGid);

void SetCapacity(uint size);
void ResizeTo(uint size);
void Trim();
void Clear();
void FastClear();


+ 3
- 3
DataStructures/TypeSafeDictionary.cs View File

@@ -364,15 +364,15 @@ namespace Svelto.ECS.Internal
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetCapacity(uint size)
public void ResizeTo(uint size)
{
if (isUnmanaged)
{
implUnmgd.ExpandTo(size);
implUnmgd.ResizeTo(size);
}
else
{
implMgd.ExpandTo(size);
implMgd.ResizeTo(size);
}
}



+ 4
- 4
Svelto.ECS.csproj View File

@@ -20,9 +20,9 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\com.sebaslab.svelto.common\Svelto.Common.csproj"/>
<PackageReference Include="System.Memory" Version="4.5.2"/>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.6.0-preview8.19405.3"/>
<None Remove="**\*.meta"/>
<PackageReference Include="System.Memory" Version="4.5.2" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.6.0-preview8.19405.3" />
<None Remove="**\*.meta" />
<ProjectReference Include="..\Svelto.Common\Svelto.Common.csproj" />
</ItemGroup>
</Project>

+ 1
- 1
Svelto.ECS.nuspec View File

@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Svelto.ECS</id>
<authors>sebas77</authors>
<authors>Sebastiano Mandala</authors>
<version>$version$</version>
<description>C# Lightweight Data Oriented Entity Component System Framework</description>
<projectUrl>https://github.com/sebas77/Svelto.ECS</projectUrl>


+ 1
- 1
package.json View File

@@ -9,7 +9,7 @@
"svelto"
],
"name": "com.sebaslab.svelto.ecs",
"version": "3.2.0",
"version": "3.2.1",
"type": "library",
"unity": "2019.3"
}

Loading…
Cancel
Save