905 lines
30 KiB
C#
905 lines
30 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Circuits;
|
|
using RecRoom.Networking.RPC;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.Creation.Circuits
|
|
{
|
|
// Token: 0x02002CAD RID: 11437
|
|
[Token(Token = "0x2002CAD")]
|
|
[StructLayout(3)]
|
|
public class StateMachineCircuitNodeDisplay : CircuitNodeDisplay
|
|
{
|
|
// Token: 0x170035DC RID: 13788
|
|
// (get) Token: 0x0601427A RID: 82554 RVA: 0x004D64D4 File Offset: 0x004D46D4
|
|
[Token(Token = "0x170035DC")]
|
|
public IEnumerable<StateMachineState> EAPDJNJALJF
|
|
{
|
|
[Token(Token = "0x601427A")]
|
|
[Address(RVA = "0x16E1090", Offset = "0x16DFA90", VA = "0x1816E1090")]
|
|
get
|
|
{
|
|
Dictionary<byte, StateMachineState>.ValueCollection values = this.NAMEBCGDEBO.Values;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601427B RID: 82555 RVA: 0x004D64F4 File Offset: 0x004D46F4
|
|
[Token(Token = "0x601427B")]
|
|
[Address(RVA = "0x16DE1B0", Offset = "0x16DCBB0", VA = "0x1816DE1B0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.BEFEOOKKMBC();
|
|
ConnectionPoint connectionPoint = this.mainConnectionPoint;
|
|
ConnectionPoint.JFKNKMKCFBI jfknkmkcfbi = new ConnectionPoint.JFKNKMKCFBI(this.FOLGJPHIDJD);
|
|
connectionPoint.PFACAJHLDON += jfknkmkcfbi;
|
|
}
|
|
|
|
// Token: 0x0601427C RID: 82556 RVA: 0x004D6530 File Offset: 0x004D4730
|
|
[Token(Token = "0x601427C")]
|
|
[Address(RVA = "0x16E0A40", Offset = "0x16DF440", VA = "0x1816E0A40", Slot = "23")]
|
|
protected override void Start()
|
|
{
|
|
base.Start();
|
|
Action<float> action = new Action(this.GAJIJLPDHNI);
|
|
IDisposable disposable = ScheduledUpdateMonoBehaviourExtensions.Update30hz(this, action);
|
|
}
|
|
|
|
// Token: 0x0601427D RID: 82557 RVA: 0x004D6558 File Offset: 0x004D4758
|
|
[Token(Token = "0x601427D")]
|
|
[Address(RVA = "0x16DFD00", Offset = "0x16DE700", VA = "0x1816DFD00", Slot = "24")]
|
|
protected override void NDMHFAFLLOH(PhotonView KFONGPOFCDH)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn != 0)
|
|
{
|
|
Action action = new Action(this.NALFCOJPBPM);
|
|
mbbjmcdgdmn.NodeModifiedEvent -= action;
|
|
Action action2;
|
|
this.MBBJMCDGDMN.NodeDeserializedEvent -= action2;
|
|
}
|
|
if (SessionManager.KNLLGLBKAPD || !PhotonNetwork.IsMasterClient)
|
|
{
|
|
break;
|
|
}
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
Dictionary.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
bool flag;
|
|
while (!flag)
|
|
{
|
|
}
|
|
int num2 = 0;
|
|
CreationObject creationObject;
|
|
if (creationObject != num2)
|
|
{
|
|
ObjectGroup <JOPKLANPAKD>k__BackingField = creationObject.<JOPKLANPAKD>k__BackingField;
|
|
int num3 = 0;
|
|
if (<JOPKLANPAKD>k__BackingField != num3)
|
|
{
|
|
creationObject.<JOPKLANPAKD>k__BackingField.EBFEEFGECAC(creationObject);
|
|
}
|
|
}
|
|
creationObject.RequestMasterDespawn();
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
this.NAMEBCGDEBO.Clear();
|
|
base.NDMHFAFLLOH(KFONGPOFCDH);
|
|
}
|
|
|
|
// Token: 0x0601427E RID: 82558 RVA: 0x004D661C File Offset: 0x004D481C
|
|
[Token(Token = "0x601427E")]
|
|
[Address(RVA = "0x16E03A0", Offset = "0x16DEDA0", VA = "0x1816E03A0", Slot = "25")]
|
|
public override void OnCircuitNodeInitialized(CircuitNode IKFLAODDALD)
|
|
{
|
|
base.OnCircuitNodeInitialized(IKFLAODDALD);
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn != 0)
|
|
{
|
|
Action action = new Action(this.NALFCOJPBPM);
|
|
mbbjmcdgdmn.NodeModifiedEvent += action;
|
|
Action action2;
|
|
this.MBBJMCDGDMN.NodeDeserializedEvent += action2;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601427F RID: 82559 RVA: 0x004D6664 File Offset: 0x004D4864
|
|
[Token(Token = "0x601427F")]
|
|
[Address(RVA = "0x16E0310", Offset = "0x16DED10", VA = "0x1816E0310", Slot = "26")]
|
|
public override void OnCircuitNodeDeserialized()
|
|
{
|
|
base..ctor();
|
|
this.FCBBFKOOCFO();
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn != 0 && mbbjmcdgdmn != 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170035DD RID: 13789
|
|
// (get) Token: 0x06014280 RID: 82560 RVA: 0x004D6690 File Offset: 0x004D4890
|
|
[Token(Token = "0x170035DD")]
|
|
public byte GENECNFMDHJ
|
|
{
|
|
[Token(Token = "0x6014280")]
|
|
[Address(RVA = "0x16E10E0", Offset = "0x16DFAE0", VA = "0x1816E10E0")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06014280)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte RecRoom.Core.Creation.Circuits.StateMachineCircuitNodeDisplay::get_CurrentState()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
brtrue(IL_00, ceq:bool(ldloc:CircuitNode(var_0_06), ldc.i4:int32[exp:CircuitNode](0)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014281 RID: 82561 RVA: 0x004D66B0 File Offset: 0x004D48B0
|
|
[Token(Token = "0x6014281")]
|
|
[Address(RVA = "0x16E0080", Offset = "0x16DEA80", VA = "0x1816E0080")]
|
|
private bool OCKPLBBLMNB(InputSlot POFOFFDCGCB)
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
Dictionary.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
List.Enumerator enumerator2;
|
|
if (enumerator2 != 0)
|
|
{
|
|
InputSlot inputSlot;
|
|
while (inputSlot != POFOFFDCGCB)
|
|
{
|
|
}
|
|
}
|
|
if (1UL != (ulong)(-1L))
|
|
{
|
|
if (0UL == (ulong)113L)
|
|
{
|
|
}
|
|
if (0UL == (ulong)86L)
|
|
{
|
|
}
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_57;
|
|
}
|
|
}
|
|
if (1UL != (ulong)(-1L))
|
|
{
|
|
if (0UL == (ulong)113L)
|
|
{
|
|
break;
|
|
}
|
|
if (0UL == (ulong)111L)
|
|
{
|
|
goto IL_4B;
|
|
}
|
|
}
|
|
if (num == 0)
|
|
{
|
|
goto IL_4B;
|
|
}
|
|
}
|
|
return true;
|
|
IL_4B:
|
|
throw new NullReferenceException();
|
|
IL_57:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06014282 RID: 82562 RVA: 0x004D6720 File Offset: 0x004D4920
|
|
[Token(Token = "0x6014282")]
|
|
[Address(RVA = "0x16E0AC0", Offset = "0x16DF4C0", VA = "0x1816E0AC0")]
|
|
public bool TryGetAvailableInputSlot(out InputSlot ODBFIHLBANC)
|
|
{
|
|
if (this.OCKPLBBLMNB((InputSlot)((uint)9)))
|
|
{
|
|
}
|
|
ODBFIHLBANC.value__ = (int)((uint)9);
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06014283 RID: 82563 RVA: 0x004D6748 File Offset: 0x004D4948
|
|
[Token(Token = "0x6014283")]
|
|
[Address(RVA = "0x16DE100", Offset = "0x16DCB00", VA = "0x1816DE100")]
|
|
public void AddState(StateMachineState HJFCHNKAGIM)
|
|
{
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
byte stateIndex = HJFCHNKAGIM.DGICFMDKICL;
|
|
if (!namebcgdebo.ContainsKey(stateIndex))
|
|
{
|
|
Dictionary<byte, StateMachineState> namebcgdebo2 = this.NAMEBCGDEBO;
|
|
byte stateIndex2 = HJFCHNKAGIM.DGICFMDKICL;
|
|
namebcgdebo2.Add(stateIndex2, HJFCHNKAGIM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014284 RID: 82564 RVA: 0x004D678C File Offset: 0x004D498C
|
|
[Token(Token = "0x6014284")]
|
|
[Address(RVA = "0x16E0470", Offset = "0x16DEE70", VA = "0x1816E0470")]
|
|
public void RemoveState(StateMachineState GKNIHNHGBKC)
|
|
{
|
|
int num;
|
|
for (;;)
|
|
{
|
|
num = 0;
|
|
if (PhotonNetwork.IsMasterClient)
|
|
{
|
|
Dictionary<object, object> dictionary = new Dictionary();
|
|
}
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
byte stateIndex = GKNIHNHGBKC.DGICFMDKICL;
|
|
bool flag = namebcgdebo.Remove(stateIndex);
|
|
byte iedmbhpkfio = this.IEDMBHPKFIO;
|
|
byte stateIndex2 = GKNIHNHGBKC.DGICFMDKICL;
|
|
if (iedmbhpkfio != stateIndex2)
|
|
{
|
|
goto IL_76;
|
|
}
|
|
Dictionary<byte, StateMachineState> namebcgdebo2 = this.NAMEBCGDEBO;
|
|
if (namebcgdebo2.Count != 0)
|
|
{
|
|
KeyValuePair<byte, StateMachineState> keyValuePair = Enumerable.First<KeyValuePair<byte, StateMachineState>>(namebcgdebo2);
|
|
byte b;
|
|
this.IEDMBHPKFIO = b;
|
|
}
|
|
this.IEDMBHPKFIO = (byte)num;
|
|
if (num != 0)
|
|
{
|
|
this.ModifyCircuitDefaultState(num);
|
|
goto IL_76;
|
|
}
|
|
IL_82:
|
|
Dictionary<byte, StateMachineState> namebcgdebo3 = this.NAMEBCGDEBO;
|
|
Dictionary.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
bool flag2;
|
|
while (!flag2)
|
|
{
|
|
}
|
|
while (num == 0)
|
|
{
|
|
}
|
|
this.ModifyCircuitStateTransitions(GKNIHNHGBKC, num);
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
break;
|
|
}
|
|
continue;
|
|
IL_76:
|
|
if (num != 0)
|
|
{
|
|
this.ModifyCircuitStateTransitions(GKNIHNHGBKC, num);
|
|
goto IL_82;
|
|
}
|
|
goto IL_82;
|
|
}
|
|
if (num != 0)
|
|
{
|
|
Dictionary<object, object> dictionary2;
|
|
if (num == 0)
|
|
{
|
|
dictionary2 = new Dictionary();
|
|
}
|
|
byte stateIndex3 = GKNIHNHGBKC.DGICFMDKICL;
|
|
int num2 = 0;
|
|
int modifyArg = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.RemovedState, stateIndex3, (byte)num2);
|
|
dictionary2.Add(modifyArg, modifyArg);
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
int modifyArg2 = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.MaxStateIndex, (byte)num4, (byte)num3);
|
|
byte b2 = this.AFKJFIACCML();
|
|
int num5;
|
|
byte b3;
|
|
dictionary2.Add(num5, b3);
|
|
if (num == 0)
|
|
{
|
|
this.ModifyCircuit(dictionary2);
|
|
}
|
|
this.ModifyCircuit(num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014285 RID: 82565 RVA: 0x004D68B4 File Offset: 0x004D4AB4
|
|
[Token(Token = "0x6014285")]
|
|
[Address(RVA = "0x16DF300", Offset = "0x16DDD00", VA = "0x1816DF300")]
|
|
public bool IsStateRemoved(byte NBEPPOHDIFB)
|
|
{
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn == 0 || mbbjmcdgdmn != 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014286 RID: 82566 RVA: 0x004D68D4 File Offset: 0x004D4AD4
|
|
[Token(Token = "0x6014286")]
|
|
[Address(RVA = "0x16DE8F0", Offset = "0x16DD2F0", VA = "0x1816DE8F0")]
|
|
public bool CanAddState()
|
|
{
|
|
return this.NAMEBCGDEBO.Count < 30;
|
|
}
|
|
|
|
// Token: 0x06014287 RID: 82567 RVA: 0x004D68F8 File Offset: 0x004D4AF8
|
|
[Token(Token = "0x6014287")]
|
|
[Address(RVA = "0x16DF280", Offset = "0x16DDC80", VA = "0x1816DF280")]
|
|
public byte GetAvailableStateIndex()
|
|
{
|
|
int num = 0;
|
|
if (this.NAMEBCGDEBO.ContainsKey(num))
|
|
{
|
|
num++;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06014288 RID: 82568 RVA: 0x004D6924 File Offset: 0x004D4B24
|
|
[Token(Token = "0x6014288")]
|
|
[Address(RVA = "0x16DF020", Offset = "0x16DDA20", VA = "0x1816DF020")]
|
|
private void FOLGJPHIDJD(ConnectionPoint HDPMJFANOPG, ConnectionPoint GFMAOEPEFKD, [Optional] ConnectionPoint.PGHEPJALOOK CEAGPJIOMJP)
|
|
{
|
|
ConnectionPoint connectionPoint = this.mainConnectionPoint;
|
|
if (!(HDPMJFANOPG == connectionPoint))
|
|
{
|
|
ConnectionPoint connectionPoint2 = this.mainConnectionPoint;
|
|
if (!(GFMAOEPEFKD == connectionPoint2))
|
|
{
|
|
goto IL_30;
|
|
}
|
|
}
|
|
StateMachineState componentInParent = GFMAOEPEFKD.gameObject.GetComponentInParent<StateMachineState>();
|
|
IL_30:
|
|
if (componentInParent)
|
|
{
|
|
PhotonView photonView = base.photonView;
|
|
RPCActions.RPCAction<StateMachineState> rpcaction = new RPCActions.RPCAction(this.RpcMasterRequestSetDefaultState);
|
|
photonView.RpcMaster<StateMachineState>(rpcaction, componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014289 RID: 82569 RVA: 0x004D6990 File Offset: 0x004D4B90
|
|
[Token(Token = "0x6014289")]
|
|
[Address(RVA = "0x16E08B0", Offset = "0x16DF2B0", VA = "0x1816E08B0")]
|
|
[PunRPC]
|
|
protected void RpcMasterRequestSetDefaultState(StateMachineState GKNIHNHGBKC)
|
|
{
|
|
if (PhotonNetwork.IsMasterClient)
|
|
{
|
|
StateMachineCircuitNodeDisplay stateMachineOwner = GKNIHNHGBKC.CLBGBCFNAII;
|
|
int num = 0;
|
|
if (stateMachineOwner == num && this.NAMEBCGDEBO.Count < 30)
|
|
{
|
|
int num2 = 0;
|
|
GKNIHNHGBKC.SetupOwner(this, num2 != 0);
|
|
}
|
|
if (GKNIHNHGBKC.CLBGBCFNAII == this)
|
|
{
|
|
byte stateIndex = GKNIHNHGBKC.DGICFMDKICL;
|
|
this.IEDMBHPKFIO = stateIndex;
|
|
int num3 = 0;
|
|
this.ModifyCircuitDefaultState(num3);
|
|
this.BEFEOOKKMBC();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601428A RID: 82570 RVA: 0x004D6A0C File Offset: 0x004D4C0C
|
|
[Token(Token = "0x601428A")]
|
|
[Address(RVA = "0x16DEEE0", Offset = "0x16DD8E0", VA = "0x1816DEEE0")]
|
|
private void FFFCEAGILEF(StateMachineState GKNIHNHGBKC)
|
|
{
|
|
StateMachineCircuitNodeDisplay stateMachineOwner = GKNIHNHGBKC.CLBGBCFNAII;
|
|
int num = 0;
|
|
if (stateMachineOwner == num && this.NAMEBCGDEBO.Count < 30)
|
|
{
|
|
int num2 = 0;
|
|
GKNIHNHGBKC.SetupOwner(this, num2 != 0);
|
|
}
|
|
if (GKNIHNHGBKC.CLBGBCFNAII == this)
|
|
{
|
|
byte stateIndex = GKNIHNHGBKC.DGICFMDKICL;
|
|
this.IEDMBHPKFIO = stateIndex;
|
|
int num3 = 0;
|
|
this.ModifyCircuitDefaultState(num3);
|
|
this.BEFEOOKKMBC();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601428B RID: 82571 RVA: 0x004D6A7C File Offset: 0x004D4C7C
|
|
[Token(Token = "0x601428B")]
|
|
[Address(RVA = "0x16DE250", Offset = "0x16DCC50", VA = "0x1816DE250")]
|
|
private void BEFEOOKKMBC()
|
|
{
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
byte iedmbhpkfio = this.IEDMBHPKFIO;
|
|
if (namebcgdebo.ContainsKey(iedmbhpkfio) && !base.KAGPFEMFNBH)
|
|
{
|
|
Dictionary<byte, StateMachineState> namebcgdebo2 = this.NAMEBCGDEBO;
|
|
byte iedmbhpkfio2 = this.IEDMBHPKFIO;
|
|
StateMachineState stateMachineState = namebcgdebo2[iedmbhpkfio2];
|
|
Transform transform = base.transform;
|
|
Transform transform2 = stateMachineState.transform;
|
|
Transform transform3 = base.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
this.MFJCOKDCPGA.z = z;
|
|
Transform transform4 = stateMachineState.transform;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
this.BJLGAHFPCHC.z = z2;
|
|
Transform transform5 = base.transform;
|
|
Transform transform6 = stateMachineState.transform;
|
|
Transform transform7 = base.transform;
|
|
Vector3 up = Vector3.up;
|
|
Vector3 down = Vector3.down;
|
|
Transform transform8 = base.transform;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
Transform transform9 = stateMachineState.transform;
|
|
Vector3 vector4;
|
|
float z4 = vector4.z;
|
|
this.startStateLine.positionCount = 10;
|
|
Vector3[] array = new Vector3[10];
|
|
Vector3 vector5;
|
|
float z5 = vector5.z;
|
|
this.startStateLine.SetPositions(array);
|
|
this.startStateLine.enabled = true;
|
|
return;
|
|
}
|
|
LineRenderer lineRenderer = this.startStateLine;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0601428C RID: 82572 RVA: 0x004D6BA8 File Offset: 0x004D4DA8
|
|
[Token(Token = "0x601428C")]
|
|
[Address(RVA = "0x16DF1B0", Offset = "0x16DDBB0", VA = "0x1816DF1B0")]
|
|
private void GAJIJLPDHNI(float POGAEJIEPIM)
|
|
{
|
|
byte currentState = this.GENECNFMDHJ;
|
|
byte ieepdnjkecm = this.IEEPDNJKECM;
|
|
if (currentState != ieepdnjkecm)
|
|
{
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
}
|
|
byte currentState2 = this.GENECNFMDHJ;
|
|
Dictionary<byte, StateMachineState> namebcgdebo2 = this.NAMEBCGDEBO;
|
|
this.IEEPDNJKECM = currentState2;
|
|
bool flag2;
|
|
if (flag2)
|
|
{
|
|
}
|
|
}
|
|
this.BEFEOOKKMBC();
|
|
}
|
|
|
|
// Token: 0x0601428D RID: 82573 RVA: 0x004D6BFC File Offset: 0x004D4DFC
|
|
[Token(Token = "0x601428D")]
|
|
[Address(RVA = "0x16DFCF0", Offset = "0x16DE6F0", VA = "0x1816DFCF0")]
|
|
private void NALFCOJPBPM()
|
|
{
|
|
this.FCBBFKOOCFO();
|
|
}
|
|
|
|
// Token: 0x0601428E RID: 82574 RVA: 0x004D6C10 File Offset: 0x004D4E10
|
|
[Token(Token = "0x601428E")]
|
|
[Address(RVA = "0x16DED20", Offset = "0x16DD720", VA = "0x1816DED20")]
|
|
private void FCBBFKOOCFO()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn == 0 || mbbjmcdgdmn == 0)
|
|
{
|
|
break;
|
|
}
|
|
this.IEDMBHPKFIO = mbbjmcdgdmn;
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
Dictionary.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x0601428F RID: 82575 RVA: 0x004D6C54 File Offset: 0x004D4E54
|
|
[Token(Token = "0x601428F")]
|
|
[Address(RVA = "0x16DE940", Offset = "0x16DD340", VA = "0x1816DE940")]
|
|
public void CreateStateTransitionsForDeserializedState(StateMachineState HJFCHNKAGIM)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn == 0 || mbbjmcdgdmn == 0)
|
|
{
|
|
break;
|
|
}
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
Dictionary.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
StateMachineNode.State? state;
|
|
while (state == 0)
|
|
{
|
|
}
|
|
if (this.NAMEBCGDEBO.ContainsKey(num))
|
|
{
|
|
StateMachineState stateMachineState = this.NAMEBCGDEBO[num];
|
|
int num2 = 0;
|
|
bool flag;
|
|
if (!(stateMachineState != num2) || flag || stateMachineState == HJFCHNKAGIM)
|
|
{
|
|
}
|
|
}
|
|
num++;
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x06014290 RID: 82576 RVA: 0x004D6CF8 File Offset: 0x004D4EF8
|
|
[Token(Token = "0x6014290")]
|
|
[Address(RVA = "0x16E0BB0", Offset = "0x16DF5B0", VA = "0x1816E0BB0")]
|
|
public void UpdateStateTransitionsForState(StateMachineState GKNIHNHGBKC)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn == 0 || mbbjmcdgdmn == 0)
|
|
{
|
|
break;
|
|
}
|
|
List<StateMachineTransition> list = new List();
|
|
List<StateMachineTransition> outboundTransitions = GKNIHNHGBKC.outboundTransitions;
|
|
list.AddRange(outboundTransitions);
|
|
byte stateIndex = GKNIHNHGBKC.DGICFMDKICL;
|
|
StateMachineNode.State? state;
|
|
if (state != 0 && num < state)
|
|
{
|
|
if (this.NAMEBCGDEBO.ContainsKey(num))
|
|
{
|
|
StateMachineState stateMachineState;
|
|
StateMachineState toState = stateMachineState;
|
|
int num2 = 0;
|
|
if (stateMachineState != num2)
|
|
{
|
|
Predicate<StateMachineTransition> predicate = delegate(StateMachineTransition elem)
|
|
{
|
|
StateMachineState to = elem.to;
|
|
StateMachineState toState2 = toState;
|
|
return to == toState2;
|
|
};
|
|
StateMachineTransition stateMachineTransition = list.Find(predicate);
|
|
if (stateMachineTransition)
|
|
{
|
|
bool flag = list.Remove(stateMachineTransition);
|
|
num++;
|
|
}
|
|
StateMachineState toState3 = toState;
|
|
GKNIHNHGBKC.AddTransition(toState3, (InputSlot)num);
|
|
}
|
|
}
|
|
num++;
|
|
}
|
|
List.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x06014291 RID: 82577 RVA: 0x004D6DD4 File Offset: 0x004D4FD4
|
|
[Token(Token = "0x6014291")]
|
|
[Address(RVA = "0x16DDFB0", Offset = "0x16DC9B0", VA = "0x1816DDFB0")]
|
|
private byte AFKJFIACCML()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
int num2 = 0;
|
|
Dictionary<byte, StateMachineState> namebcgdebo = this.NAMEBCGDEBO;
|
|
Dictionary.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
while (enumerator <= num2)
|
|
{
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06014292 RID: 82578 RVA: 0x004D6E04 File Offset: 0x004D5004
|
|
[Token(Token = "0x6014292")]
|
|
[Address(RVA = "0x16DF9D0", Offset = "0x16DE3D0", VA = "0x1816DF9D0")]
|
|
public void ModifyCircuitStateValues(StateMachineState GKNIHNHGBKC, [Optional] Dictionary<object, object> PDMCNLBFLOB)
|
|
{
|
|
if (PDMCNLBFLOB == 0)
|
|
{
|
|
Dictionary<object, object> dictionary = new Dictionary();
|
|
}
|
|
byte stateIndex = GKNIHNHGBKC.DGICFMDKICL;
|
|
int num = 0;
|
|
int num2 = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.StateVal1, stateIndex, (byte)num);
|
|
int val = GKNIHNHGBKC.val1;
|
|
PDMCNLBFLOB.Add(num2, num2);
|
|
byte stateIndex2 = GKNIHNHGBKC.DGICFMDKICL;
|
|
int num3 = 0;
|
|
int modifyArg = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.StateVal2, stateIndex2, (byte)num3);
|
|
int val2 = GKNIHNHGBKC.val2;
|
|
num2 = modifyArg;
|
|
PDMCNLBFLOB.Add(num2, modifyArg);
|
|
byte stateIndex3 = GKNIHNHGBKC.DGICFMDKICL;
|
|
int num4 = 0;
|
|
int modifyArg2 = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.StateVal3, stateIndex3, (byte)num4);
|
|
int val3 = GKNIHNHGBKC.val3;
|
|
num2 = modifyArg2;
|
|
PDMCNLBFLOB.Add(num2, modifyArg2);
|
|
byte stateIndex4 = GKNIHNHGBKC.DGICFMDKICL;
|
|
int num5 = 0;
|
|
int modifyArg3 = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.MinTimeInStateMS, stateIndex4, (byte)num5);
|
|
int minTimeInStateMS = GKNIHNHGBKC.minTimeInStateMS;
|
|
num2 = modifyArg3;
|
|
PDMCNLBFLOB.Add(num2, modifyArg3);
|
|
if (PDMCNLBFLOB == 0)
|
|
{
|
|
this.ModifyCircuit(PDMCNLBFLOB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014293 RID: 82579 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014293")]
|
|
[Address(RVA = "0x16DF770", Offset = "0x16DE170", VA = "0x1816DF770")]
|
|
public void ModifyCircuitStateTransitions(StateMachineState GKNIHNHGBKC, [Optional] Dictionary<object, object> PDMCNLBFLOB)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014294 RID: 82580 RVA: 0x004D6ED0 File Offset: 0x004D50D0
|
|
[Token(Token = "0x6014294")]
|
|
[Address(RVA = "0x16DF620", Offset = "0x16DE020", VA = "0x1816DF620")]
|
|
public void ModifyCircuitRemoveState(StateMachineState GKNIHNHGBKC, [Optional] Dictionary<object, object> PDMCNLBFLOB)
|
|
{
|
|
if (PDMCNLBFLOB == 0)
|
|
{
|
|
Dictionary<object, object> dictionary = new Dictionary();
|
|
}
|
|
byte stateIndex = GKNIHNHGBKC.DGICFMDKICL;
|
|
int num = 0;
|
|
int num2 = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.RemovedState, stateIndex, (byte)num);
|
|
bool flag;
|
|
PDMCNLBFLOB.Add(num2, flag);
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
num2 = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.MaxStateIndex, (byte)num3, (byte)num4);
|
|
byte b = this.AFKJFIACCML();
|
|
PDMCNLBFLOB.Add(num2, b);
|
|
if (PDMCNLBFLOB == 0)
|
|
{
|
|
this.ModifyCircuit(PDMCNLBFLOB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014295 RID: 82581 RVA: 0x004D6F38 File Offset: 0x004D5138
|
|
[Token(Token = "0x6014295")]
|
|
[Address(RVA = "0x16DF3F0", Offset = "0x16DDDF0", VA = "0x1816DF3F0")]
|
|
public void ModifyCircuitAddState(StateMachineState GKNIHNHGBKC, [Optional] Dictionary<object, object> PDMCNLBFLOB)
|
|
{
|
|
if (PDMCNLBFLOB == 0)
|
|
{
|
|
Dictionary<object, object> dictionary = new Dictionary();
|
|
}
|
|
byte stateIndex = GKNIHNHGBKC.DGICFMDKICL;
|
|
int num = 0;
|
|
int num2 = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.RemovedState, stateIndex, (byte)num);
|
|
bool flag;
|
|
PDMCNLBFLOB.Add(num2, flag);
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
num2 = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.MaxStateIndex, (byte)num3, (byte)num4);
|
|
byte b = this.AFKJFIACCML();
|
|
PDMCNLBFLOB.Add(num2, b);
|
|
if (PDMCNLBFLOB == 0)
|
|
{
|
|
this.ModifyCircuit(PDMCNLBFLOB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014296 RID: 82582 RVA: 0x004D6FA0 File Offset: 0x004D51A0
|
|
[Token(Token = "0x6014296")]
|
|
[Address(RVA = "0x16DF540", Offset = "0x16DDF40", VA = "0x1816DF540")]
|
|
public void ModifyCircuitDefaultState([Optional] Dictionary<object, object> PDMCNLBFLOB)
|
|
{
|
|
if (PDMCNLBFLOB == 0)
|
|
{
|
|
Dictionary<object, object> dictionary = new Dictionary();
|
|
}
|
|
int num = 0;
|
|
int num2 = 0;
|
|
int modifyArg = StateMachineNode.GetModifyArg(StateMachineNode.ModifyCommands.DefaultState, (byte)num, (byte)num2);
|
|
byte iedmbhpkfio = this.IEDMBHPKFIO;
|
|
PDMCNLBFLOB.Add(modifyArg, modifyArg);
|
|
if (PDMCNLBFLOB == 0)
|
|
{
|
|
this.ModifyCircuit(PDMCNLBFLOB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014297 RID: 82583 RVA: 0x004D6FE8 File Offset: 0x004D51E8
|
|
[Token(Token = "0x6014297")]
|
|
[Address(RVA = "0x16DFBF0", Offset = "0x16DE5F0", VA = "0x1816DFBF0")]
|
|
public void ModifyCircuit(Dictionary<object, object> PDMCNLBFLOB)
|
|
{
|
|
CircuitManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num = 0;
|
|
if (!(instance == num))
|
|
{
|
|
CircuitManager instance2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int <NodeId>k__BackingField = this.MBBJMCDGDMN.<NodeId>k__BackingField;
|
|
instance2.RequestMasterModifyNode(<NodeId>k__BackingField, PDMCNLBFLOB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014298 RID: 82584 RVA: 0x004D7028 File Offset: 0x004D5228
|
|
[Token(Token = "0x6014298")]
|
|
[Address(RVA = "0x16E0B30", Offset = "0x16DF530", VA = "0x1816E0B30")]
|
|
public void UpdateMetaData()
|
|
{
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn != 0 && mbbjmcdgdmn != 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014299 RID: 82585 RVA: 0x004D7048 File Offset: 0x004D5248
|
|
[Token(Token = "0x6014299")]
|
|
[Address(RVA = "0x16E1010", Offset = "0x16DFA10", VA = "0x1816E1010")]
|
|
public StateMachineCircuitNodeDisplay()
|
|
{
|
|
Dictionary<byte, StateMachineState> dictionary = new Dictionary();
|
|
this.NAMEBCGDEBO = dictionary;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400D874 RID: 55412
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x400D874")]
|
|
[SerializeField]
|
|
private ConnectionPoint mainConnectionPoint;
|
|
|
|
// Token: 0x0400D875 RID: 55413
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x400D875")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private LineRenderer startStateLine;
|
|
|
|
// Token: 0x0400D876 RID: 55414
|
|
[Token(Token = "0x400D876")]
|
|
public const byte INVALID_STATE = 255;
|
|
|
|
// Token: 0x0400D877 RID: 55415
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x400D877")]
|
|
private byte IEDMBHPKFIO;
|
|
|
|
// Token: 0x0400D878 RID: 55416
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x400D878")]
|
|
private Dictionary<byte, StateMachineState> NAMEBCGDEBO;
|
|
|
|
// Token: 0x0400D879 RID: 55417
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE8")]
|
|
[Token(Token = "0x400D879")]
|
|
private Vector3 MFJCOKDCPGA;
|
|
|
|
// Token: 0x0400D87A RID: 55418
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xF4")]
|
|
[Token(Token = "0x400D87A")]
|
|
private Vector3 BJLGAHFPCHC;
|
|
|
|
// Token: 0x0400D87B RID: 55419
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x100")]
|
|
[Token(Token = "0x400D87B")]
|
|
private byte IEEPDNJKECM;
|
|
|
|
// Token: 0x02002CAE RID: 11438
|
|
[Token(Token = "0x2002CAE")]
|
|
[CompilerGenerated]
|
|
private sealed class BOPDCEADNLE
|
|
{
|
|
// Token: 0x0601429A RID: 82586 RVA: 0x004D7068 File Offset: 0x004D5268
|
|
[Token(Token = "0x601429A")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public BOPDCEADNLE()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601429B RID: 82587 RVA: 0x004D707C File Offset: 0x004D527C
|
|
[Token(Token = "0x601429B")]
|
|
[Address(RVA = "0x18C7FF0", Offset = "0x18C69F0", VA = "0x1818C7FF0")]
|
|
internal bool <UpdateStateTransitionsForState>b__0(StateMachineTransition elem)
|
|
{
|
|
StateMachineState to = elem.to;
|
|
StateMachineState stateMachineState = this.toState;
|
|
return to == stateMachineState;
|
|
}
|
|
|
|
// Token: 0x0400D87C RID: 55420
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400D87C")]
|
|
public StateMachineState toState;
|
|
}
|
|
}
|
|
}
|