[+] 接入ET8服务端

[+] 接入ET8服务端
This commit is contained in:
ALEXTANG
2023-07-13 12:23:48 +08:00
parent e0be062006
commit 336d4b2eb9
1316 changed files with 130657 additions and 626 deletions

View File

@@ -0,0 +1,12 @@
using System.Collections.Generic;
namespace ET.Server
{
[ChildOf(typeof(RobotCaseComponent))]
public class RobotCase: Entity, IAwake, IDestroy
{
public ETCancellationToken CancellationToken;
public string CommandLine;
public HashSet<long> Scenes { get; } = new HashSet<long>();
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e9f8ce7fbba8b27458372ab3ff3c0e7f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace ET.Server
{
[ComponentOf(typeof(Scene))]
public class RobotCaseComponent: Entity, IAwake, IDestroy
{
public Dictionary<int, RobotCase> RobotCases = new Dictionary<int, RobotCase>();
public int N = 10000;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 75c6bd85c92893d4e82e087a5b65e8d8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
namespace ET.Server
{
public struct RobotInvokeArgs
{
public Fiber Fiber { get; set; }
public string Content { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6f570483ab9a6f8458ab9346fa863a63
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,27 @@
namespace ET.Server
{
public static class RobotLog
{
#if DOTNET
public static void Debug(ref System.Runtime.CompilerServices.DefaultInterpolatedStringHandler message)
{
Logger.Instance.Debug(message.ToStringAndClear());
}
public static void Console(ref System.Runtime.CompilerServices.DefaultInterpolatedStringHandler message)
{
Logger.Instance.Console(message.ToStringAndClear());
}
#endif
public static void Debug(string msg)
{
Logger.Instance.Debug(msg);
}
public static void Console(string msg)
{
Logger.Instance.Console(msg);
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0d2320c977663dc45b2fa20ca780ae4d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: