From 3f3d9d97ec5d6f6c5ab9e4ba4d5ccaeeb0d92c69 Mon Sep 17 00:00:00 2001 From: kbengine Date: Tue, 11 Nov 2014 16:54:31 +0800 Subject: [PATCH] up --- Entity.cs | 2 +- KBEngine.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Entity.cs b/Entity.cs index ff68d13..c4b241d 100644 --- a/Entity.cs +++ b/Entity.cs @@ -52,7 +52,7 @@ public Entity() } } - public virtual void destroy () + public virtual void onDestroy () { } diff --git a/KBEngine.cs b/KBEngine.cs index 9b21216..bf17c07 100644 --- a/KBEngine.cs +++ b/KBEngine.cs @@ -1529,7 +1529,7 @@ public void Client_onEntityLeaveWorld(Int32 eid) else { entities.Remove(eid); - entity.destroy(); + entity.onDestroy(); _entityIDAliasIDList.Remove(eid); } } @@ -1663,7 +1663,7 @@ public void clearEntities(bool isall) if(dic.Value.inWorld) dic.Value.onLeaveWorld(); - dic.Value.destroy(); + dic.Value.onDestroy(); } entities.Clear(); @@ -1676,7 +1676,7 @@ public void clearEntities(bool isall) if(dic.Value.inWorld) dic.Value.onLeaveWorld(); - dic.Value.destroy(); + dic.Value.onDestroy(); } entities.Clear(); @@ -1741,7 +1741,7 @@ public void Client_onEntityDestroyed(Int32 eid) entity.onLeaveWorld(); entities.Remove(eid); - entity.destroy(); + entity.onDestroy(); } public void Client_onUpdateBasePos(MemoryStream stream)