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,20 @@
|
||||
namespace ET.Server
|
||||
{
|
||||
[ComponentOf(typeof(Player))]
|
||||
public class GateMapComponent: Entity, IAwake
|
||||
{
|
||||
private EntityRef<Scene> scene;
|
||||
|
||||
public Scene Scene
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.scene;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.scene = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d6e8828a2661073409b89add293b3508
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ET.Server
|
||||
{
|
||||
[ComponentOf(typeof(Scene))]
|
||||
public class GateSessionKeyComponent : Entity, IAwake
|
||||
{
|
||||
public readonly Dictionary<long, string> sessionKey = new();
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0c4855591c919784c9e72d7ab5414b21
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,8 @@
|
||||
namespace ET.Server
|
||||
{
|
||||
[ChildOf(typeof(PlayerComponent))]
|
||||
public sealed class Player : Entity, IAwake<string>
|
||||
{
|
||||
public string Account { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98e58bdf33de9a645ab818ae062dca38
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace ET.Server
|
||||
{
|
||||
[ComponentOf(typeof(Scene))]
|
||||
public class PlayerComponent : Entity, IAwake, IDestroy
|
||||
{
|
||||
public Dictionary<string, Player> dictionary = new Dictionary<string, Player>();
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 639fcaa2e756a964a9556cadc1c5cb5f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,20 @@
|
||||
namespace ET.Server
|
||||
{
|
||||
[ComponentOf(typeof(Player))]
|
||||
public class PlayerSessionComponent : Entity, IAwake
|
||||
{
|
||||
private EntityRef<Session> session;
|
||||
|
||||
public Session Session
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.session;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.session = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 237648d5968a24ebb885807879f8382d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,20 @@
|
||||
namespace ET.Server
|
||||
{
|
||||
[ComponentOf(typeof(Session))]
|
||||
public class SessionPlayerComponent : Entity, IAwake, IDestroy
|
||||
{
|
||||
private EntityRef<Player> player;
|
||||
|
||||
public Player Player
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.player;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.player = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: edd141e260773de498ca22f7b9ff072a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user