Entitas
This commit is contained in:
ALEXTANG
2023-07-17 15:28:27 +08:00
parent 31d4d6c0b8
commit a273e9d5f8
64 changed files with 994 additions and 13 deletions

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ab10a5a730054c5aaa942164c750abfb
timeCreated: 1689576189

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 94212c40840344b5bd6ba4fc82097d47
timeCreated: 1689576337

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 78e93a657ea64d5d97000e8b6cc83ffc
timeCreated: 1689576342

View File

@@ -0,0 +1,20 @@
using TEngine;
namespace GameLogic.BattleDemo
{
/// <summary>
/// 逻辑层实体。
/// </summary>
public abstract class EntityLogic : Entity
{
public override void OnCreate()
{
base.OnCreate();
}
public override void Dispose()
{
base.Dispose();
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e7b01c5b166445d680dc411dfbe5c781
timeCreated: 1689576203

View File

@@ -0,0 +1,15 @@
namespace GameLogic.BattleDemo
{
public class PlayerEntity : EntityLogic
{
public override void OnCreate()
{
base.OnCreate();
}
public override void Dispose()
{
base.Dispose();
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 9939517fe9f04f0d9c0c544fbdd43564
timeCreated: 1689576650

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: fad718b498934a5d8c63aa6d1e115485
timeCreated: 1689576347

View File

@@ -0,0 +1,14 @@
using UnityEngine;
namespace GameLogic.BattleDemo
{
/// <summary>
/// 表现层实体。
/// </summary>
public abstract class EntityVisual:MonoBehaviour
{
public EntityLogic Entity { protected set; get;}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 892288dabf264b20b49b03ae91ccf5f8
timeCreated: 1689576255

View File

@@ -46,7 +46,7 @@ namespace GameLogic
public GameClientStatus Status { get; set; } = GameClientStatus.StatusInit;
public Scene Scene { private set; get; }
private string _lastAddress = null;
private string _lastAddress = String.Empty;
public GameClient()
{