Scripting API
Scripting API
NameView
Struct in Abyss.Core, from Abyss.Core.
What one entity is called: a view of Bevy's Name where Bevy keeps it, which a system is given a row at a time, to compare without making a string.
public readonly ref struct NameViewRemarks
Read, never written: a system names an entity with SetName. Good while the system that was given it runs, as a chunk's spans are.
Properties
Utf8
public ReadOnlySpan<byte> Utf8 { get; }The name, as UTF-8.
Methods
Is
public bool Is(ReadOnlySpan<byte> name)Whether it is name, compared as UTF-8: name.Is("Captain"u8).
Parameters
name
Is
public bool Is(ReadOnlySpan<char> name)Whether it is name, exactly: name.Is("Captain"). Makes no string.
Parameters
name
ToString
public override string ToString()The name as a string, made for the asking.
