fix: adding some entity methods for YAML
This commit is contained in:
parent
8ce9a12847
commit
28c4ab850e
1 changed files with 16 additions and 0 deletions
16
src/Nitride.Yaml/IsYamlExtensions.cs
Normal file
16
src/Nitride.Yaml/IsYamlExtensions.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using Gallium;
|
||||
|
||||
namespace Nitride.Yaml;
|
||||
|
||||
public static class IsYamlExtensions
|
||||
{
|
||||
public static Entity RemoveIsYaml(this Entity entity)
|
||||
{
|
||||
return entity.Remove<IsYaml>();
|
||||
}
|
||||
|
||||
public static Entity SetIsYaml(this Entity entity)
|
||||
{
|
||||
return entity.Set(IsYaml.Instance);
|
||||
}
|
||||
}
|
Reference in a new issue