fix: adding some entity methods for YAML

This commit is contained in:
Dylan R. E. Moonfire 2022-07-18 17:49:21 -05:00
parent 8ce9a12847
commit 28c4ab850e
1 changed files with 16 additions and 0 deletions

View 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);
}
}