using DefaultNamespace; using System; using Unity.Entities; using UnityEngine.ResourceManagement.AsyncOperations; [assembly: RegisterGenericComponentType(typeof(AssetReferenceData))] namespace DefaultNamespace { public struct AssetReferenceData : ISharedComponentData, IEquatable> where T : class { public AsyncOperationWrapper Operation; public AssetReferenceData(AsyncOperationHandle operation) { Operation = new AsyncOperationWrapper(operation); } public bool Equals(AssetReferenceData other) { return Operation.Equals(other.Operation); } public override bool Equals(object obj) { return obj is AssetReferenceData other && Equals(other); } public override int GetHashCode() { return Operation.GetHashCode(); } } }