51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using CircuitsV2.Graph;
|
|
using CircuitsV2.Types;
|
|
using CircuitsV2.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace CircuitsV2.Context
|
|
{
|
|
// Token: 0x02000259 RID: 601
|
|
[Token(Token = "0x2000188")]
|
|
[StructLayout(3)]
|
|
public interface IMemory
|
|
{
|
|
// Token: 0x0600141A RID: 5146
|
|
[Token(Token = "0x600101E")]
|
|
[Address(Slot = "0")]
|
|
bool IsCompatible(string name, CircuitType type);
|
|
|
|
// Token: 0x0600141B RID: 5147
|
|
[Token(Token = "0x600101F")]
|
|
[Address(Slot = "1")]
|
|
string Retain(string desiredName, CircuitType type, Func<ExecParams, Result<None>> onChange, bool forceNewName);
|
|
|
|
// Token: 0x0600141C RID: 5148
|
|
[Token(Token = "0x6001020")]
|
|
[Address(Slot = "2")]
|
|
void Release(string name, Func<ExecParams, Result<None>> onChange);
|
|
|
|
// Token: 0x0600141D RID: 5149
|
|
[Token(Token = "0x6001021")]
|
|
[Address(Slot = "3")]
|
|
Result<CircuitSignal> Get(ExecParams e, string name);
|
|
|
|
// Token: 0x0600141E RID: 5150
|
|
[Token(Token = "0x6001022")]
|
|
[Address(Slot = "4")]
|
|
Result<bool> Set(ExecParams e, string name, in CircuitSignal value);
|
|
|
|
// Token: 0x0600141F RID: 5151
|
|
[Token(Token = "0x6001023")]
|
|
[Address(Slot = "5")]
|
|
void ResetAll();
|
|
|
|
// Token: 0x06001420 RID: 5152
|
|
[Token(Token = "0x6001024")]
|
|
[Address(Slot = "6")]
|
|
void Rename(string name, string desiredName, CircuitType type, Func<ExecParams, Result<None>> onChange);
|
|
}
|
|
}
|