CollisionLayers
namespace Griff.Scenes;
public static class CollisionLayersMatching collision layer names: case doesn’t matter, and an empty layer is called “Default”.
Methods
Section titled “Methods”Contains
Section titled “Contains”public static bool Contains(IEnumerable<string> layers, string? layer)True if layer is one of layers.
NameOf
Section titled “NameOf”public static string NameOf(string? layer)The layer’s name, with empty meaning Default.
public static string[] Parse(string? list)Reads a list of layer names like “Bullet, Enemy” (commas or semicolons between them).
Read once for the same string (see Names), shared: don’t change the array.
Fields
Section titled “Fields”Default
Section titled “Default”public const string Default