Update versions from 1.0.x to 1.1.x
In version 1.1.0, the following breaking changes:
- Renamed query method from
QueryComponentstoQuery - Removed
IMaskcomponents as they are no longer meaningful and it is required to replace them all withITagComponents when raising the version - Removed
IStandardComponentcomponents, they are now meaningless and it is required to replace them all with regularIComponentcomponents when raising the version- If the behavior of standard components is required (To have the component present on all entities) you can use
OnEntityCreateentity section
- If the behavior of standard components is required (To have the component present on all entities) you can use
- The
RoEntitytype has been removed, parallel queries now returnEntityinstead ofRoEntity - The
WithAddstype has been removed, the standardWithmust be used - The
TryDeleteTagmethod has been removed, theSetTagandDeleteTagoperations are now safe and returnbool. For more details in tag section - Entity no longer implements the
IEntityinterface. If you need the interface, useentity.Box(). For more details, see entity section Querywhen passing a custom value with a parameter withoutrefstill expects therefmodifier inside the function (W.Query.For(Time.deltaTime, (ref float dt, ent) => …))- Removed
WithLink,WithLinksAll,WithLinksAnyquery methods for relations
Update versions from 1.1.x to 1.2.x
In version 1.1.0, the following breaking changes:
- Renamed query method
QueryEntities.For()->Query.Entities() - Renamed entity methods for raw types:
entity.HasAllOf(Type componentType)->entity.RawHasAllOf(Type componentType)entity.Add(Type componentType)->entity.RawAdd(Type componentType)entity.TryAdd(Type componentType)->entity.RawTryAdd(Type componentType)entity.TryAdd(Type componentType, out bool added)->entity.RawTryAdd(Type componentType, out bool added)entity.GetRaw(Type componentType)->entity.RawGet(Type componentType)entity.PutRaw(IComponent component)->entity.RawPut(IComponent component)entity.TryDelete(Type componentType)->entity.RawTryDelete(Type componentType)entity.Delete(Type componentType)->entity.RawDelete(Type componentType)entity.CopyComponentsTo(Type componentType, Entity target)->entity.RawCopyComponentsTo(Type componentType, Entity target)entity.MoveComponentsTo(Type componentType, Entity target)->entity.RawMoveComponentsTo(Type componentType, Entity target)entity.HasAllOfTags(Type tagType)->entity.RawHasAllOfTags(Type tagType)entity.SetTag(Type tagType)->entity.RawSetTag(Type tagType)entity.DeleteTag(Type tagType)->entity.RawDeleteTag(Type tagType)entity.MoveTagsTo(Type tagType, Entity target)->entity.RawMoveTagsTo(Type tagType, Entity target)
- Renamed interface methods
IQueryFunction:Run(...)->Invoke(...)
EntityGID:- The size has changed from 4 bytes to 8 bytes.
- Method
Id()replaced by the fieldId - Method
Version()replaced by the fieldVersion - Method
Raw()replaced by the fieldRaw - Method
IsRegistered()replaced by the methodIsActual() - Entity version: type changed
byte->ushort
- Removed type
GIDStore - Method removed
World.Clear() - World configuration setting removed
WorldConfig.baseEntitiesCapacity-> this parameter accepts the methodWorld.Initialize(baseEntitiesCapacity) Entity:default(W.Entity)can never be a actual entity- Method
entity.IsActual()replaced by the methodentity.IsNotDestroyed()