Struct ArchetypeChunk
  
Syntax
public struct ArchetypeChunk : IEquatable<ArchetypeChunk>
 
Properties
  
Archetype
Declaration
public EntityArchetype Archetype { get; }
 
Property Value
Capacity
Declaration
public int Capacity { get; }
 
Property Value
| Type | 
Description | 
| System.Int32 | 
 | 
Count
Declaration
public int Count { get; }
 
Property Value
| Type | 
Description | 
| System.Int32 | 
 | 
Full
Declaration
public bool Full { get; }
 
Property Value
| Type | 
Description | 
| System.Boolean | 
 | 
Null
Declaration
public static ArchetypeChunk Null { get; }
 
Property Value
Methods
  
DidChange<T>(ArchetypeChunkBufferType<T>, UInt32)
Declaration
public bool DidChange<T>(ArchetypeChunkBufferType<T> chunkBufferType, uint version)
    where T : struct, IBufferElementData
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Type Parameters
DidChange<T>(ArchetypeChunkComponentType<T>, UInt32)
Declaration
public bool DidChange<T>(ArchetypeChunkComponentType<T> chunkComponentType, uint version)
    where T : struct, IComponentData
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Type Parameters
DidChange<T>(ArchetypeChunkSharedComponentType<T>, UInt32)
Declaration
public bool DidChange<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData, uint version)
    where T : struct, ISharedComponentData
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Type Parameters
Equals(Object)
Declaration
public override bool Equals(object compare)
 
Parameters
| Type | 
Name | 
Description | 
| System.Object | 
compare | 
 | 
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Overrides
System.ValueType.Equals(System.Object)
Equals(ArchetypeChunk)
Declaration
public bool Equals(ArchetypeChunk archetypeChunk)
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
GetBufferAccessor<T>(ArchetypeChunkBufferType<T>)
Declaration
public BufferAccessor<T> GetBufferAccessor<T>(ArchetypeChunkBufferType<T> bufferComponentType)
    where T : struct, IBufferElementData
 
Parameters
Returns
Type Parameters
GetChunkComponentData<T>(ArchetypeChunkComponentType<T>)
Declaration
public T GetChunkComponentData<T>(ArchetypeChunkComponentType<T> chunkComponentType)
    where T : struct
 
Parameters
Returns
Type Parameters
GetComponentObjects<T>(ArchetypeChunkComponentType<T>, EntityManager)
Declaration
public ArchetypeChunkComponentObjects<T> GetComponentObjects<T>(ArchetypeChunkComponentType<T> componentType, EntityManager manager)
    where T : class
 
Parameters
Returns
Type Parameters
GetComponentVersion<T>(ArchetypeChunkBufferType<T>)
Declaration
public uint GetComponentVersion<T>(ArchetypeChunkBufferType<T> chunkBufferType)
    where T : struct, IBufferElementData
 
Parameters
Returns
| Type | 
Description | 
| System.UInt32 | 
 | 
Type Parameters
GetComponentVersion<T>(ArchetypeChunkComponentType<T>)
Declaration
public uint GetComponentVersion<T>(ArchetypeChunkComponentType<T> chunkComponentType)
    where T : struct, IComponentData
 
Parameters
Returns
| Type | 
Description | 
| System.UInt32 | 
 | 
Type Parameters
GetComponentVersion<T>(ArchetypeChunkSharedComponentType<T>)
Declaration
public uint GetComponentVersion<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData)
    where T : struct, ISharedComponentData
 
Parameters
Returns
| Type | 
Description | 
| System.UInt32 | 
 | 
Type Parameters
GetHashCode()
Declaration
public override int GetHashCode()
 
Returns
| Type | 
Description | 
| System.Int32 | 
 | 
Overrides
System.ValueType.GetHashCode()
GetNativeArray(ArchetypeChunkEntityType)
Declaration
public NativeArray<Entity> GetNativeArray(ArchetypeChunkEntityType archetypeChunkEntityType)
 
Parameters
Returns
| Type | 
Description | 
| NativeArray<Entity> | 
 | 
GetNativeArray<T>(ArchetypeChunkComponentType<T>)
Declaration
public NativeArray<T> GetNativeArray<T>(ArchetypeChunkComponentType<T> chunkComponentType)
    where T : struct, IComponentData
 
Parameters
Returns
| Type | 
Description | 
| NativeArray<T> | 
 | 
Type Parameters
GetSharedComponentData<T>(ArchetypeChunkSharedComponentType<T>, EntityManager)
Declaration
public T GetSharedComponentData<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData, EntityManager entityManager)
    where T : struct, ISharedComponentData
 
Parameters
Returns
Type Parameters
GetSharedComponentIndex<T>(ArchetypeChunkSharedComponentType<T>)
Declaration
public int GetSharedComponentIndex<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData)
    where T : struct, ISharedComponentData
 
Parameters
Returns
| Type | 
Description | 
| System.Int32 | 
 | 
Type Parameters
Has<T>(ArchetypeChunkBufferType<T>)
Declaration
public bool Has<T>(ArchetypeChunkBufferType<T> chunkBufferType)
    where T : struct, IBufferElementData
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Type Parameters
Has<T>(ArchetypeChunkComponentType<T>)
Declaration
public bool Has<T>(ArchetypeChunkComponentType<T> chunkComponentType)
    where T : struct, IComponentData
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Type Parameters
Has<T>(ArchetypeChunkSharedComponentType<T>)
Declaration
public bool Has<T>(ArchetypeChunkSharedComponentType<T> chunkComponentType)
    where T : struct, ISharedComponentData
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Type Parameters
HasChunkComponent<T>(ArchetypeChunkComponentType<T>)
Declaration
public bool HasChunkComponent<T>(ArchetypeChunkComponentType<T> chunkComponentType)
    where T : struct, IComponentData
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Type Parameters
Invalid()
Declaration
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Locked()
Returns true if Chunk is Locked
 
Declaration
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
NumSharedComponents()
Declaration
public int NumSharedComponents()
 
Returns
| Type | 
Description | 
| System.Int32 | 
 | 
SetChunkComponentData<T>(ArchetypeChunkComponentType<T>, T)
Declaration
public void SetChunkComponentData<T>(ArchetypeChunkComponentType<T> chunkComponentType, T value)
    where T : struct
 
Parameters
Type Parameters
Operators
  
Equality(ArchetypeChunk, ArchetypeChunk)
Declaration
public static bool operator ==(ArchetypeChunk lhs, ArchetypeChunk rhs)
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Inequality(ArchetypeChunk, ArchetypeChunk)
Declaration
public static bool operator !=(ArchetypeChunk lhs, ArchetypeChunk rhs)
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 |