feat: backporting existing raylib-cs examples and new official raylib examples to WASM, adopting raylib's original code style
This commit is contained in:
parent
768fa93c41
commit
732b7aa346
234 changed files with 38999 additions and 10578 deletions
17
Examples/ExcludeFromBrowserAttribute.cs
Normal file
17
Examples/ExcludeFromBrowserAttribute.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
namespace Examples;
|
||||
|
||||
/// <summary>
|
||||
/// Marks an <see cref="IExample"/> that is omitted from the browser host (Web/Host.cs)
|
||||
/// because of a wasm/WebGL platform limitation. Desktop runs are unaffected.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
||||
public sealed class ExcludeFromBrowserAttribute : Attribute
|
||||
{
|
||||
/// <summary>Why the example cannot run in the browser.</summary>
|
||||
public string Reason { get; }
|
||||
|
||||
public ExcludeFromBrowserAttribute(string reason = null)
|
||||
{
|
||||
Reason = reason;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue