[+] 接入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,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;
}
}
}
}

View File

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

View File

@@ -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();
}
}

View File

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

View File

@@ -0,0 +1,8 @@
namespace ET.Server
{
[ChildOf(typeof(PlayerComponent))]
public sealed class Player : Entity, IAwake<string>
{
public string Account { get; set; }
}
}

View File

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

View File

@@ -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>();
}
}

View File

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

View File

@@ -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;
}
}
}
}

View File

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

View File

@@ -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;
}
}
}
}

View File

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