Skip to content

1.1.5

Compare
Choose a tag to compare
@genaray genaray released this 18 Jan 17:05
· 266 commits to master since this release
dc8df01

Changes

  • References<...> and EntityReferences<...> are now called Components<...> and EntityComponents<....>
  • Archetypes, chunk and the world do not automatically release resources anymore. That was slow as heck.
  • Entity version now works correctly.

New Features

  • World.TrimExcess() can now be called regularly to release unused memory and resources.
  • World.Reference(in entity) or entity.Reference() return a EntityReference used to reference entities.
  • World.Destroy is now slightly faster

Entity references

using var world = World.Create();

var entity = world.Create(_entityGroup);
var reference = world.Reference(entity);  // This should be stored in your component ( entity.Reference() is also available. )

// Checks if the entity is the same as before by comparing the version and its id
if(reference.IsAlive()) {
    var cmps = reference.Entity.Get(...);
}      

Bug fixes and contributors

Big thanks to @stgeorge , @Pheubel and @RoyAwesome for your bug discoverys and enhancements ! :)