scripts
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.U2D
|
||||
{
|
||||
// Token: 0x0200010F RID: 271
|
||||
public sealed class SpriteAtlasManager
|
||||
{
|
||||
// Token: 0x14000011 RID: 17
|
||||
// (add) Token: 0x06001318 RID: 4888 RVA: 0x00019528 File Offset: 0x00017728
|
||||
// (remove) Token: 0x06001319 RID: 4889 RVA: 0x0001955C File Offset: 0x0001775C
|
||||
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public static event SpriteAtlasManager.RequestAtlasCallback atlasRequested;
|
||||
|
||||
// Token: 0x0600131A RID: 4890 RVA: 0x00019590 File Offset: 0x00017790
|
||||
[RequiredByNativeCode]
|
||||
private static bool RequestAtlas(string tag)
|
||||
{
|
||||
bool flag;
|
||||
if (SpriteAtlasManager.atlasRequested != null)
|
||||
{
|
||||
SpriteAtlasManager.atlasRequested(tag, new Action<SpriteAtlas>(SpriteAtlasManager.Register));
|
||||
flag = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
flag = false;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x0600131B RID: 4891
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
internal static extern void Register(SpriteAtlas spriteAtlas);
|
||||
|
||||
// Token: 0x0600131C RID: 4892 RVA: 0x000195E0 File Offset: 0x000177E0
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
static SpriteAtlasManager()
|
||||
{
|
||||
SpriteAtlasManager.atlasRequested = null;
|
||||
}
|
||||
|
||||
// Token: 0x02000110 RID: 272
|
||||
// (Invoke) Token: 0x0600131E RID: 4894
|
||||
public delegate void RequestAtlasCallback(string tag, Action<SpriteAtlas> action);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user