Skip to content

Commit 3f3d9d9

Browse files
committed
up
1 parent c573796 commit 3f3d9d9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Entity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Entity()
5252
}
5353
}
5454

55-
public virtual void destroy ()
55+
public virtual void onDestroy ()
5656
{
5757
}
5858

KBEngine.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ public void Client_onEntityLeaveWorld(Int32 eid)
15291529
else
15301530
{
15311531
entities.Remove(eid);
1532-
entity.destroy();
1532+
entity.onDestroy();
15331533
_entityIDAliasIDList.Remove(eid);
15341534
}
15351535
}
@@ -1663,7 +1663,7 @@ public void clearEntities(bool isall)
16631663
if(dic.Value.inWorld)
16641664
dic.Value.onLeaveWorld();
16651665

1666-
dic.Value.destroy();
1666+
dic.Value.onDestroy();
16671667
}
16681668

16691669
entities.Clear();
@@ -1676,7 +1676,7 @@ public void clearEntities(bool isall)
16761676
if(dic.Value.inWorld)
16771677
dic.Value.onLeaveWorld();
16781678

1679-
dic.Value.destroy();
1679+
dic.Value.onDestroy();
16801680
}
16811681

16821682
entities.Clear();
@@ -1741,7 +1741,7 @@ public void Client_onEntityDestroyed(Int32 eid)
17411741
entity.onLeaveWorld();
17421742

17431743
entities.Remove(eid);
1744-
entity.destroy();
1744+
entity.onDestroy();
17451745
}
17461746

17471747
public void Client_onUpdateBasePos(MemoryStream stream)

0 commit comments

Comments
 (0)