@@ -114,7 +114,7 @@ public enum CLIENT_TYPE
114114 // https://github.com/kbengine/kbengine/tree/master/docs/api
115115 public Dictionary < Int32 , Entity > entities = new Dictionary < Int32 , Entity > ( ) ;
116116
117- // 在玩家AOI范围小于256个实体时我们可以通过一字节索引来找到entity
117+ // 在玩家View范围小于256个实体时我们可以通过一字节索引来找到entity
118118 private List < Int32 > _entityIDAliasIDList = new List < Int32 > ( ) ;
119119 private Dictionary < Int32 , MemoryStream > _bufferedCreateEntityMessage = new Dictionary < Int32 , MemoryStream > ( ) ;
120120
@@ -1492,9 +1492,9 @@ public Entity findEntity(Int32 entityID)
14921492 }
14931493
14941494 /*
1495- 通过流数据获得AOI实体的ID
1495+ 通过流数据获得View实体的ID
14961496 */
1497- public Int32 getAoiEntityIDFromStream ( MemoryStream stream )
1497+ public Int32 getViewEntityIDFromStream ( MemoryStream stream )
14981498 {
14991499 if ( ! _args . useAliasEntityID )
15001500 return stream . readInt32 ( ) ;
@@ -1525,7 +1525,7 @@ public Int32 getAoiEntityIDFromStream(MemoryStream stream)
15251525 */
15261526 public void Client_onUpdatePropertysOptimized ( MemoryStream stream )
15271527 {
1528- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
1528+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
15291529 onUpdatePropertys_ ( eid , stream ) ;
15301530 }
15311531
@@ -1607,7 +1607,7 @@ public void onUpdatePropertys_(Int32 eid, MemoryStream stream)
16071607 */
16081608 public void Client_onRemoteMethodCallOptimized ( MemoryStream stream )
16091609 {
1610- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
1610+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
16111611 onRemoteMethodCall_ ( eid , stream ) ;
16121612 }
16131613
@@ -1666,7 +1666,7 @@ public void onRemoteMethodCall_(Int32 eid, MemoryStream stream)
16661666 }
16671667
16681668 /*
1669- 服务端通知一个实体进入了世界(如果实体是当前玩家则玩家第一次在一个space中创建了, 如果是其他实体则是其他实体进入了玩家的AOI )
1669+ 服务端通知一个实体进入了世界(如果实体是当前玩家则玩家第一次在一个space中创建了, 如果是其他实体则是其他实体进入了玩家的View )
16701670 */
16711671 public void Client_onEntityEnterWorld ( MemoryStream stream )
16721672 {
@@ -1767,16 +1767,16 @@ public void Client_onEntityEnterWorld(MemoryStream stream)
17671767 }
17681768
17691769 /*
1770- 服务端使用优化的方式通知一个实体离开了世界(如果实体是当前玩家则玩家离开了space, 如果是其他实体则是其他实体离开了玩家的AOI )
1770+ 服务端使用优化的方式通知一个实体离开了世界(如果实体是当前玩家则玩家离开了space, 如果是其他实体则是其他实体离开了玩家的View )
17711771 */
17721772 public void Client_onEntityLeaveWorldOptimized ( MemoryStream stream )
17731773 {
1774- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
1774+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
17751775 KBEngineApp . app . Client_onEntityLeaveWorld ( eid ) ;
17761776 }
17771777
17781778 /*
1779- 服务端通知一个实体离开了世界(如果实体是当前玩家则玩家离开了space, 如果是其他实体则是其他实体离开了玩家的AOI )
1779+ 服务端通知一个实体离开了世界(如果实体是当前玩家则玩家离开了space, 如果是其他实体则是其他实体离开了玩家的View )
17801780 */
17811781 public void Client_onEntityLeaveWorld ( Int32 eid )
17821782 {
@@ -2213,7 +2213,7 @@ public void Client_onUpdateBaseDir(MemoryStream stream)
22132213
22142214 public void Client_onUpdateData ( MemoryStream stream )
22152215 {
2216- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2216+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
22172217 Entity entity = null ;
22182218
22192219 if ( ! entities . TryGetValue ( eid , out entity ) )
@@ -2271,7 +2271,7 @@ public void Client_onSetEntityPosAndDir(MemoryStream stream)
22712271
22722272 public void Client_onUpdateData_ypr ( MemoryStream stream )
22732273 {
2274- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2274+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
22752275
22762276 SByte y = stream . readInt8 ( ) ;
22772277 SByte p = stream . readInt8 ( ) ;
@@ -2282,7 +2282,7 @@ public void Client_onUpdateData_ypr(MemoryStream stream)
22822282
22832283 public void Client_onUpdateData_yp ( MemoryStream stream )
22842284 {
2285- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2285+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
22862286
22872287 SByte y = stream . readInt8 ( ) ;
22882288 SByte p = stream . readInt8 ( ) ;
@@ -2292,7 +2292,7 @@ public void Client_onUpdateData_yp(MemoryStream stream)
22922292
22932293 public void Client_onUpdateData_yr ( MemoryStream stream )
22942294 {
2295- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2295+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
22962296
22972297 SByte y = stream . readInt8 ( ) ;
22982298 SByte r = stream . readInt8 ( ) ;
@@ -2302,7 +2302,7 @@ public void Client_onUpdateData_yr(MemoryStream stream)
23022302
23032303 public void Client_onUpdateData_pr ( MemoryStream stream )
23042304 {
2305- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2305+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23062306
23072307 SByte p = stream . readInt8 ( ) ;
23082308 SByte r = stream . readInt8 ( ) ;
@@ -2312,7 +2312,7 @@ public void Client_onUpdateData_pr(MemoryStream stream)
23122312
23132313 public void Client_onUpdateData_y ( MemoryStream stream )
23142314 {
2315- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2315+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23162316
23172317 SByte y = stream . readInt8 ( ) ;
23182318
@@ -2321,7 +2321,7 @@ public void Client_onUpdateData_y(MemoryStream stream)
23212321
23222322 public void Client_onUpdateData_p ( MemoryStream stream )
23232323 {
2324- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2324+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23252325
23262326 SByte p = stream . readInt8 ( ) ;
23272327
@@ -2330,7 +2330,7 @@ public void Client_onUpdateData_p(MemoryStream stream)
23302330
23312331 public void Client_onUpdateData_r ( MemoryStream stream )
23322332 {
2333- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2333+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23342334
23352335 SByte r = stream . readInt8 ( ) ;
23362336
@@ -2339,7 +2339,7 @@ public void Client_onUpdateData_r(MemoryStream stream)
23392339
23402340 public void Client_onUpdateData_xz ( MemoryStream stream )
23412341 {
2342- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2342+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23432343
23442344 Vector2 xz = stream . readPackXZ ( ) ;
23452345
@@ -2348,7 +2348,7 @@ public void Client_onUpdateData_xz(MemoryStream stream)
23482348
23492349 public void Client_onUpdateData_xz_ypr ( MemoryStream stream )
23502350 {
2351- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2351+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23522352
23532353 Vector2 xz = stream . readPackXZ ( ) ;
23542354
@@ -2361,7 +2361,7 @@ public void Client_onUpdateData_xz_ypr(MemoryStream stream)
23612361
23622362 public void Client_onUpdateData_xz_yp ( MemoryStream stream )
23632363 {
2364- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2364+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23652365
23662366 Vector2 xz = stream . readPackXZ ( ) ;
23672367
@@ -2373,7 +2373,7 @@ public void Client_onUpdateData_xz_yp(MemoryStream stream)
23732373
23742374 public void Client_onUpdateData_xz_yr ( MemoryStream stream )
23752375 {
2376- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2376+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23772377
23782378 Vector2 xz = stream . readPackXZ ( ) ;
23792379
@@ -2385,7 +2385,7 @@ public void Client_onUpdateData_xz_yr(MemoryStream stream)
23852385
23862386 public void Client_onUpdateData_xz_pr ( MemoryStream stream )
23872387 {
2388- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2388+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
23892389
23902390 Vector2 xz = stream . readPackXZ ( ) ;
23912391
@@ -2397,15 +2397,15 @@ public void Client_onUpdateData_xz_pr(MemoryStream stream)
23972397
23982398 public void Client_onUpdateData_xz_y ( MemoryStream stream )
23992399 {
2400- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2400+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24012401 Vector2 xz = stream . readPackXZ ( ) ;
24022402 SByte yaw = stream . readInt8 ( ) ;
24032403 _updateVolatileData ( eid , xz [ 0 ] , KBEDATATYPE_BASE . KBE_FLT_MAX , xz [ 1 ] , yaw , KBEDATATYPE_BASE . KBE_FLT_MAX , KBEDATATYPE_BASE . KBE_FLT_MAX , 1 ) ;
24042404 }
24052405
24062406 public void Client_onUpdateData_xz_p ( MemoryStream stream )
24072407 {
2408- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2408+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24092409
24102410 Vector2 xz = stream . readPackXZ ( ) ;
24112411
@@ -2416,7 +2416,7 @@ public void Client_onUpdateData_xz_p(MemoryStream stream)
24162416
24172417 public void Client_onUpdateData_xz_r ( MemoryStream stream )
24182418 {
2419- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2419+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24202420
24212421 Vector2 xz = stream . readPackXZ ( ) ;
24222422
@@ -2427,7 +2427,7 @@ public void Client_onUpdateData_xz_r(MemoryStream stream)
24272427
24282428 public void Client_onUpdateData_xyz ( MemoryStream stream )
24292429 {
2430- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2430+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24312431
24322432 Vector2 xz = stream . readPackXZ ( ) ;
24332433 float y = stream . readPackY ( ) ;
@@ -2437,7 +2437,7 @@ public void Client_onUpdateData_xyz(MemoryStream stream)
24372437
24382438 public void Client_onUpdateData_xyz_ypr ( MemoryStream stream )
24392439 {
2440- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2440+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24412441
24422442 Vector2 xz = stream . readPackXZ ( ) ;
24432443 float y = stream . readPackY ( ) ;
@@ -2451,7 +2451,7 @@ public void Client_onUpdateData_xyz_ypr(MemoryStream stream)
24512451
24522452 public void Client_onUpdateData_xyz_yp ( MemoryStream stream )
24532453 {
2454- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2454+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24552455
24562456 Vector2 xz = stream . readPackXZ ( ) ;
24572457 float y = stream . readPackY ( ) ;
@@ -2464,7 +2464,7 @@ public void Client_onUpdateData_xyz_yp(MemoryStream stream)
24642464
24652465 public void Client_onUpdateData_xyz_yr ( MemoryStream stream )
24662466 {
2467- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2467+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24682468
24692469 Vector2 xz = stream . readPackXZ ( ) ;
24702470 float y = stream . readPackY ( ) ;
@@ -2477,7 +2477,7 @@ public void Client_onUpdateData_xyz_yr(MemoryStream stream)
24772477
24782478 public void Client_onUpdateData_xyz_pr ( MemoryStream stream )
24792479 {
2480- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2480+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24812481
24822482 Vector2 xz = stream . readPackXZ ( ) ;
24832483 float y = stream . readPackY ( ) ;
@@ -2490,7 +2490,7 @@ public void Client_onUpdateData_xyz_pr(MemoryStream stream)
24902490
24912491 public void Client_onUpdateData_xyz_y ( MemoryStream stream )
24922492 {
2493- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2493+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
24942494
24952495 Vector2 xz = stream . readPackXZ ( ) ;
24962496 float y = stream . readPackY ( ) ;
@@ -2501,7 +2501,7 @@ public void Client_onUpdateData_xyz_y(MemoryStream stream)
25012501
25022502 public void Client_onUpdateData_xyz_p ( MemoryStream stream )
25032503 {
2504- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2504+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
25052505
25062506 Vector2 xz = stream . readPackXZ ( ) ;
25072507 float y = stream . readPackY ( ) ;
@@ -2513,7 +2513,7 @@ public void Client_onUpdateData_xyz_p(MemoryStream stream)
25132513
25142514 public void Client_onUpdateData_xyz_r ( MemoryStream stream )
25152515 {
2516- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2516+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
25172517
25182518 Vector2 xz = stream . readPackXZ ( ) ;
25192519 float y = stream . readPackY ( ) ;
0 commit comments