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,43 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ET.Server
|
||||
{
|
||||
[UniqueId(0, 100)]
|
||||
public static class LocationType
|
||||
{
|
||||
public const int Unit = 0;
|
||||
public const int Player = 1;
|
||||
public const int Friend = 2;
|
||||
public const int Chat = 3;
|
||||
public const int GateSession = 4;
|
||||
public const int Max = 100;
|
||||
}
|
||||
|
||||
[ChildOf(typeof(LocationOneType))]
|
||||
public class LockInfo: Entity, IAwake<ActorId, CoroutineLock>, IDestroy
|
||||
{
|
||||
public ActorId LockActorId;
|
||||
|
||||
public CoroutineLock CoroutineLock
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
|
||||
[ChildOf(typeof(LocationManagerComoponent))]
|
||||
public class LocationOneType: Entity, IAwake<int>
|
||||
{
|
||||
public int LocationType;
|
||||
|
||||
public readonly Dictionary<long, ActorId> locations = new();
|
||||
|
||||
public readonly Dictionary<long, LockInfo> lockInfos = new();
|
||||
}
|
||||
|
||||
[ComponentOf(typeof(Scene))]
|
||||
public class LocationManagerComoponent: Entity, IAwake
|
||||
{
|
||||
public LocationOneType[] LocationOneTypes = new LocationOneType[LocationType.Max];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user