mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] 接入ET8服务端
[+] 接入ET8服务端
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e9f8ce7fbba8b27458372ab3ff3c0e7f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 75c6bd85c92893d4e82e087a5b65e8d8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,8 @@
|
||||
namespace ET.Server
|
||||
{
|
||||
public struct RobotInvokeArgs
|
||||
{
|
||||
public Fiber Fiber { get; set; }
|
||||
public string Content { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6f570483ab9a6f8458ab9346fa863a63
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0d2320c977663dc45b2fa20ca780ae4d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user