mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
fix
This commit is contained in:
parent
0252f9e0a5
commit
a5aadb7666
@ -12,7 +12,7 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
#if ENABLE_IL2CPP
|
||||
using Unity.IL2CPP.CompilerServices;
|
||||
[Il2CppSetOption (Option.NullChecks, false)]
|
||||
[Il2CppSetOption(Option.NullChecks, false)]
|
||||
[Il2CppSetOption(Option.ArrayBoundsChecks, false)]
|
||||
#endif
|
||||
//_dense заполняется с индекса 1
|
||||
|
@ -81,17 +81,22 @@
|
||||
namespace Unity.IL2CPP.CompilerServices
|
||||
{
|
||||
using System;
|
||||
enum Option
|
||||
public enum Option
|
||||
{
|
||||
NullChecks = 1,
|
||||
ArrayBoundsChecks = 2
|
||||
ArrayBoundsChecks = 2,
|
||||
DivideByZeroChecks = 3,
|
||||
}
|
||||
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
|
||||
class Il2CppSetOptionAttribute : Attribute
|
||||
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Delegate, Inherited = false, AllowMultiple = true)]
|
||||
public class Il2CppSetOptionAttribute : Attribute
|
||||
{
|
||||
public Option Option { get; private set; }
|
||||
public object Value { get; private set; }
|
||||
public Il2CppSetOptionAttribute (Option option, object value) { Option = option; Value = value; }
|
||||
public Il2CppSetOptionAttribute(Option option, object value)
|
||||
{
|
||||
Option = option;
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user