Scripting API
Scripting API
ResourceType<T>
Struct in Abyss.Core, from Abyss.Core.
A resource type registered with a World — singleton data with no entity attached.
public readonly struct ResourceType<T> where T : unmanagedRemarks
Registration and insertion are separate, mirroring components: a system can declare access to a resource before anything has supplied a value, just as it can query a component no entity has yet.
Type parameters
T: The plain-data struct this resource stores.
Properties
Id
public ResourceId Id { get; }The native resource id.
Methods
Read
public ResourceTerm Read()A term declaring read access to this resource.
Write
public ResourceTerm Write()A term declaring read/write access to this resource.
Operators
implicit operator ResourceId
public static implicit operator ResourceId(ResourceType<T> type)Allows a typed resource to be used wherever an untyped id is expected.
Parameters
type
