61 lines
2.5 KiB
C#
61 lines
2.5 KiB
C#
using System;
|
|
using Il2CppInterop.Common.Attributes;
|
|
using Il2CppInterop.Runtime;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000119 RID: 281
|
|
public class AudioPlayer : MonoBehaviour
|
|
{
|
|
// Token: 0x06003CD2 RID: 15570 RVA: 0x000F04FC File Offset: 0x000EE6FC
|
|
[CallerCount(63)]
|
|
[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe AudioPlayer()
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr))
|
|
{
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AudioPlayer.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06003CD3 RID: 15571 RVA: 0x000F0548 File Offset: 0x000EE748
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static AudioPlayer()
|
|
{
|
|
Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "AudioPlayer");
|
|
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr);
|
|
AudioPlayer.NativeFieldInfoPtr_player = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr, "player");
|
|
AudioPlayer.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr, 100667042);
|
|
}
|
|
|
|
// Token: 0x06003CD4 RID: 15572 RVA: 0x0000351C File Offset: 0x0000171C
|
|
public AudioPlayer(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17001694 RID: 5780
|
|
// (get) Token: 0x06003CD5 RID: 15573 RVA: 0x000F05A0 File Offset: 0x000EE7A0
|
|
// (set) Token: 0x06003CD6 RID: 15574 RVA: 0x000F05D4 File Offset: 0x000EE7D4
|
|
public unsafe AudioSource player
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AudioPlayer.NativeFieldInfoPtr_player);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new AudioSource(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(AudioPlayer.NativeFieldInfoPtr_player), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x040027CA RID: 10186
|
|
private static readonly IntPtr NativeFieldInfoPtr_player;
|
|
|
|
// Token: 0x040027CB RID: 10187
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
|
|
}
|