108 lines
3.6 KiB
C#
108 lines
3.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Circuits;
|
|
using RecRoom.Core;
|
|
using RecRoom.Core.Creation.Circuits;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.Bowling
|
|
{
|
|
// Token: 0x02002770 RID: 10096
|
|
[Token(Token = "0x2002770")]
|
|
[StructLayout(3)]
|
|
public class BowlingPinCircuitOutput : MonoBehaviour
|
|
{
|
|
// Token: 0x17002F9B RID: 12187
|
|
// (get) Token: 0x06011A34 RID: 72244 RVA: 0x00434DC0 File Offset: 0x00432FC0
|
|
[Token(Token = "0x17002F9B")]
|
|
public Tool PBBJCLJPFMI
|
|
{
|
|
[Token(Token = "0x6011A34")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.tool;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011A35 RID: 72245 RVA: 0x00434DD4 File Offset: 0x00432FD4
|
|
[Token(Token = "0x6011A35")]
|
|
[Address(RVA = "0x10FF570", Offset = "0x10FDF70", VA = "0x1810FF570")]
|
|
private void Start()
|
|
{
|
|
Action<float> action = new Action(this.GAJIJLPDHNI);
|
|
IDisposable disposable = ScheduledUpdateMonoBehaviourExtensions.Update10hz(this, action);
|
|
}
|
|
|
|
// Token: 0x06011A36 RID: 72246 RVA: 0x00434DF8 File Offset: 0x00432FF8
|
|
[Token(Token = "0x6011A36")]
|
|
[Address(RVA = "0x10FF460", Offset = "0x10FDE60", VA = "0x1810FF460")]
|
|
private void GAJIJLPDHNI(float POGAEJIEPIM)
|
|
{
|
|
bool isMasterClient = PhotonNetwork.IsMasterClient;
|
|
if (isMasterClient)
|
|
{
|
|
BowlingPin bowlingPin = this.pin;
|
|
ContinuousSourceNodeDisplay continuousSourceNodeDisplay = this.continuousSourceNode;
|
|
float angleFromUpright = bowlingPin.JEGDKLAGHIL;
|
|
int num = 0;
|
|
continuousSourceNodeDisplay.SetOutput((OutputSlot)num, isMasterClient ? 1 : 0);
|
|
BowlingPin bowlingPin2 = this.pin;
|
|
ContinuousSourceNodeDisplay continuousSourceNodeDisplay2 = this.continuousSourceNode;
|
|
float angleFromUpright2 = bowlingPin2.JEGDKLAGHIL;
|
|
continuousSourceNodeDisplay2.SetOutput(OutputSlot.G, isMasterClient ? 1 : 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011A37 RID: 72247 RVA: 0x00434E5C File Offset: 0x0043305C
|
|
[Token(Token = "0x6011A37")]
|
|
[Address(RVA = "0x10FF460", Offset = "0x10FDE60", VA = "0x1810FF460")]
|
|
private void BPJPELLMCLA()
|
|
{
|
|
bool isMasterClient = PhotonNetwork.IsMasterClient;
|
|
if (isMasterClient)
|
|
{
|
|
BowlingPin bowlingPin = this.pin;
|
|
ContinuousSourceNodeDisplay continuousSourceNodeDisplay = this.continuousSourceNode;
|
|
float angleFromUpright = bowlingPin.JEGDKLAGHIL;
|
|
int num = 0;
|
|
continuousSourceNodeDisplay.SetOutput((OutputSlot)num, isMasterClient ? 1 : 0);
|
|
BowlingPin bowlingPin2 = this.pin;
|
|
ContinuousSourceNodeDisplay continuousSourceNodeDisplay2 = this.continuousSourceNode;
|
|
float angleFromUpright2 = bowlingPin2.JEGDKLAGHIL;
|
|
continuousSourceNodeDisplay2.SetOutput(OutputSlot.G, isMasterClient ? 1 : 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011A38 RID: 72248 RVA: 0x00434EC0 File Offset: 0x004330C0
|
|
[Token(Token = "0x6011A38")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public BowlingPinCircuitOutput()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400BCD8 RID: 48344
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400BCD8")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400BCD9 RID: 48345
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400BCD9")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private BowlingPin pin;
|
|
|
|
// Token: 0x0400BCDA RID: 48346
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400BCDA")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private ContinuousSourceNodeDisplay continuousSourceNode;
|
|
}
|
|
}
|