mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
41 lines
855 B
C#
41 lines
855 B
C#
using AssetRipper.SourceGenerated.Subclasses.TriggerModule;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class TriggerModuleExtensions
|
|
{
|
|
public enum TriggerAction
|
|
{
|
|
Ignore = 0,
|
|
Kill = 1,
|
|
Callback = 2,
|
|
}
|
|
|
|
public static void SetToDefault(this ITriggerModule module)
|
|
{
|
|
module.Inside = (int)TriggerAction.Kill;
|
|
module.RadiusScale = 1;
|
|
}
|
|
|
|
public static TriggerAction GetInside(this ITriggerModule module)
|
|
{
|
|
return (TriggerAction)module.Inside;
|
|
}
|
|
|
|
public static TriggerAction GetOutside(this ITriggerModule module)
|
|
{
|
|
return (TriggerAction)module.Outside;
|
|
}
|
|
|
|
public static TriggerAction GetEnter(this ITriggerModule module)
|
|
{
|
|
return (TriggerAction)module.Enter;
|
|
}
|
|
|
|
public static TriggerAction GetExit(this ITriggerModule module)
|
|
{
|
|
return (TriggerAction)module.Exit;
|
|
}
|
|
}
|
|
}
|