mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Entitas
Entitas
This commit is contained in:
3
Assets/GameScripts/HotFix/GameLogic/BattleDemo.meta
Normal file
3
Assets/GameScripts/HotFix/GameLogic/BattleDemo.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ab10a5a730054c5aaa942164c750abfb
|
||||
timeCreated: 1689576189
|
3
Assets/GameScripts/HotFix/GameLogic/BattleDemo/Core.meta
Normal file
3
Assets/GameScripts/HotFix/GameLogic/BattleDemo/Core.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94212c40840344b5bd6ba4fc82097d47
|
||||
timeCreated: 1689576337
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 78e93a657ea64d5d97000e8b6cc83ffc
|
||||
timeCreated: 1689576342
|
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e7b01c5b166445d680dc411dfbe5c781
|
||||
timeCreated: 1689576203
|
@@ -0,0 +1,15 @@
|
||||
namespace GameLogic.BattleDemo
|
||||
{
|
||||
public class PlayerEntity : EntityLogic
|
||||
{
|
||||
public override void OnCreate()
|
||||
{
|
||||
base.OnCreate();
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9939517fe9f04f0d9c0c544fbdd43564
|
||||
timeCreated: 1689576650
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fad718b498934a5d8c63aa6d1e115485
|
||||
timeCreated: 1689576347
|
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace GameLogic.BattleDemo
|
||||
{
|
||||
/// <summary>
|
||||
/// 表现层实体。
|
||||
/// </summary>
|
||||
public abstract class EntityVisual:MonoBehaviour
|
||||
{
|
||||
public EntityLogic Entity { protected set; get;}
|
||||
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 892288dabf264b20b49b03ae91ccf5f8
|
||||
timeCreated: 1689576255
|
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user