@@ -114,7 +114,7 @@ public enum CLIENT_TYPE
114
114
// https://github.com/kbengine/kbengine/tree/master/docs/api
115
115
public Dictionary < Int32 , Entity > entities = new Dictionary < Int32 , Entity > ( ) ;
116
116
117
- // 在玩家AOI范围小于256个实体时我们可以通过一字节索引来找到entity
117
+ // 在玩家View范围小于256个实体时我们可以通过一字节索引来找到entity
118
118
private List < Int32 > _entityIDAliasIDList = new List < Int32 > ( ) ;
119
119
private Dictionary < Int32 , MemoryStream > _bufferedCreateEntityMessage = new Dictionary < Int32 , MemoryStream > ( ) ;
120
120
@@ -1492,9 +1492,9 @@ public Entity findEntity(Int32 entityID)
1492
1492
}
1493
1493
1494
1494
/*
1495
- 通过流数据获得AOI实体的ID
1495
+ 通过流数据获得View实体的ID
1496
1496
*/
1497
- public Int32 getAoiEntityIDFromStream ( MemoryStream stream )
1497
+ public Int32 getViewEntityIDFromStream ( MemoryStream stream )
1498
1498
{
1499
1499
if ( ! _args . useAliasEntityID )
1500
1500
return stream . readInt32 ( ) ;
@@ -1525,7 +1525,7 @@ public Int32 getAoiEntityIDFromStream(MemoryStream stream)
1525
1525
*/
1526
1526
public void Client_onUpdatePropertysOptimized ( MemoryStream stream )
1527
1527
{
1528
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
1528
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
1529
1529
onUpdatePropertys_ ( eid , stream ) ;
1530
1530
}
1531
1531
@@ -1607,7 +1607,7 @@ public void onUpdatePropertys_(Int32 eid, MemoryStream stream)
1607
1607
*/
1608
1608
public void Client_onRemoteMethodCallOptimized ( MemoryStream stream )
1609
1609
{
1610
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
1610
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
1611
1611
onRemoteMethodCall_ ( eid , stream ) ;
1612
1612
}
1613
1613
@@ -1666,7 +1666,7 @@ public void onRemoteMethodCall_(Int32 eid, MemoryStream stream)
1666
1666
}
1667
1667
1668
1668
/*
1669
- 服务端通知一个实体进入了世界(如果实体是当前玩家则玩家第一次在一个space中创建了, 如果是其他实体则是其他实体进入了玩家的AOI )
1669
+ 服务端通知一个实体进入了世界(如果实体是当前玩家则玩家第一次在一个space中创建了, 如果是其他实体则是其他实体进入了玩家的View )
1670
1670
*/
1671
1671
public void Client_onEntityEnterWorld ( MemoryStream stream )
1672
1672
{
@@ -1767,16 +1767,16 @@ public void Client_onEntityEnterWorld(MemoryStream stream)
1767
1767
}
1768
1768
1769
1769
/*
1770
- 服务端使用优化的方式通知一个实体离开了世界(如果实体是当前玩家则玩家离开了space, 如果是其他实体则是其他实体离开了玩家的AOI )
1770
+ 服务端使用优化的方式通知一个实体离开了世界(如果实体是当前玩家则玩家离开了space, 如果是其他实体则是其他实体离开了玩家的View )
1771
1771
*/
1772
1772
public void Client_onEntityLeaveWorldOptimized ( MemoryStream stream )
1773
1773
{
1774
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
1774
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
1775
1775
KBEngineApp . app . Client_onEntityLeaveWorld ( eid ) ;
1776
1776
}
1777
1777
1778
1778
/*
1779
- 服务端通知一个实体离开了世界(如果实体是当前玩家则玩家离开了space, 如果是其他实体则是其他实体离开了玩家的AOI )
1779
+ 服务端通知一个实体离开了世界(如果实体是当前玩家则玩家离开了space, 如果是其他实体则是其他实体离开了玩家的View )
1780
1780
*/
1781
1781
public void Client_onEntityLeaveWorld ( Int32 eid )
1782
1782
{
@@ -2213,7 +2213,7 @@ public void Client_onUpdateBaseDir(MemoryStream stream)
2213
2213
2214
2214
public void Client_onUpdateData ( MemoryStream stream )
2215
2215
{
2216
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2216
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2217
2217
Entity entity = null ;
2218
2218
2219
2219
if ( ! entities . TryGetValue ( eid , out entity ) )
@@ -2271,7 +2271,7 @@ public void Client_onSetEntityPosAndDir(MemoryStream stream)
2271
2271
2272
2272
public void Client_onUpdateData_ypr ( MemoryStream stream )
2273
2273
{
2274
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2274
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2275
2275
2276
2276
SByte y = stream . readInt8 ( ) ;
2277
2277
SByte p = stream . readInt8 ( ) ;
@@ -2282,7 +2282,7 @@ public void Client_onUpdateData_ypr(MemoryStream stream)
2282
2282
2283
2283
public void Client_onUpdateData_yp ( MemoryStream stream )
2284
2284
{
2285
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2285
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2286
2286
2287
2287
SByte y = stream . readInt8 ( ) ;
2288
2288
SByte p = stream . readInt8 ( ) ;
@@ -2292,7 +2292,7 @@ public void Client_onUpdateData_yp(MemoryStream stream)
2292
2292
2293
2293
public void Client_onUpdateData_yr ( MemoryStream stream )
2294
2294
{
2295
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2295
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2296
2296
2297
2297
SByte y = stream . readInt8 ( ) ;
2298
2298
SByte r = stream . readInt8 ( ) ;
@@ -2302,7 +2302,7 @@ public void Client_onUpdateData_yr(MemoryStream stream)
2302
2302
2303
2303
public void Client_onUpdateData_pr ( MemoryStream stream )
2304
2304
{
2305
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2305
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2306
2306
2307
2307
SByte p = stream . readInt8 ( ) ;
2308
2308
SByte r = stream . readInt8 ( ) ;
@@ -2312,7 +2312,7 @@ public void Client_onUpdateData_pr(MemoryStream stream)
2312
2312
2313
2313
public void Client_onUpdateData_y ( MemoryStream stream )
2314
2314
{
2315
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2315
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2316
2316
2317
2317
SByte y = stream . readInt8 ( ) ;
2318
2318
@@ -2321,7 +2321,7 @@ public void Client_onUpdateData_y(MemoryStream stream)
2321
2321
2322
2322
public void Client_onUpdateData_p ( MemoryStream stream )
2323
2323
{
2324
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2324
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2325
2325
2326
2326
SByte p = stream . readInt8 ( ) ;
2327
2327
@@ -2330,7 +2330,7 @@ public void Client_onUpdateData_p(MemoryStream stream)
2330
2330
2331
2331
public void Client_onUpdateData_r ( MemoryStream stream )
2332
2332
{
2333
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2333
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2334
2334
2335
2335
SByte r = stream . readInt8 ( ) ;
2336
2336
@@ -2339,7 +2339,7 @@ public void Client_onUpdateData_r(MemoryStream stream)
2339
2339
2340
2340
public void Client_onUpdateData_xz ( MemoryStream stream )
2341
2341
{
2342
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2342
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2343
2343
2344
2344
Vector2 xz = stream . readPackXZ ( ) ;
2345
2345
@@ -2348,7 +2348,7 @@ public void Client_onUpdateData_xz(MemoryStream stream)
2348
2348
2349
2349
public void Client_onUpdateData_xz_ypr ( MemoryStream stream )
2350
2350
{
2351
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2351
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2352
2352
2353
2353
Vector2 xz = stream . readPackXZ ( ) ;
2354
2354
@@ -2361,7 +2361,7 @@ public void Client_onUpdateData_xz_ypr(MemoryStream stream)
2361
2361
2362
2362
public void Client_onUpdateData_xz_yp ( MemoryStream stream )
2363
2363
{
2364
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2364
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2365
2365
2366
2366
Vector2 xz = stream . readPackXZ ( ) ;
2367
2367
@@ -2373,7 +2373,7 @@ public void Client_onUpdateData_xz_yp(MemoryStream stream)
2373
2373
2374
2374
public void Client_onUpdateData_xz_yr ( MemoryStream stream )
2375
2375
{
2376
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2376
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2377
2377
2378
2378
Vector2 xz = stream . readPackXZ ( ) ;
2379
2379
@@ -2385,7 +2385,7 @@ public void Client_onUpdateData_xz_yr(MemoryStream stream)
2385
2385
2386
2386
public void Client_onUpdateData_xz_pr ( MemoryStream stream )
2387
2387
{
2388
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2388
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2389
2389
2390
2390
Vector2 xz = stream . readPackXZ ( ) ;
2391
2391
@@ -2397,15 +2397,15 @@ public void Client_onUpdateData_xz_pr(MemoryStream stream)
2397
2397
2398
2398
public void Client_onUpdateData_xz_y ( MemoryStream stream )
2399
2399
{
2400
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2400
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2401
2401
Vector2 xz = stream . readPackXZ ( ) ;
2402
2402
SByte yaw = stream . readInt8 ( ) ;
2403
2403
_updateVolatileData ( eid , xz [ 0 ] , KBEDATATYPE_BASE . KBE_FLT_MAX , xz [ 1 ] , yaw , KBEDATATYPE_BASE . KBE_FLT_MAX , KBEDATATYPE_BASE . KBE_FLT_MAX , 1 ) ;
2404
2404
}
2405
2405
2406
2406
public void Client_onUpdateData_xz_p ( MemoryStream stream )
2407
2407
{
2408
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2408
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2409
2409
2410
2410
Vector2 xz = stream . readPackXZ ( ) ;
2411
2411
@@ -2416,7 +2416,7 @@ public void Client_onUpdateData_xz_p(MemoryStream stream)
2416
2416
2417
2417
public void Client_onUpdateData_xz_r ( MemoryStream stream )
2418
2418
{
2419
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2419
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2420
2420
2421
2421
Vector2 xz = stream . readPackXZ ( ) ;
2422
2422
@@ -2427,7 +2427,7 @@ public void Client_onUpdateData_xz_r(MemoryStream stream)
2427
2427
2428
2428
public void Client_onUpdateData_xyz ( MemoryStream stream )
2429
2429
{
2430
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2430
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2431
2431
2432
2432
Vector2 xz = stream . readPackXZ ( ) ;
2433
2433
float y = stream . readPackY ( ) ;
@@ -2437,7 +2437,7 @@ public void Client_onUpdateData_xyz(MemoryStream stream)
2437
2437
2438
2438
public void Client_onUpdateData_xyz_ypr ( MemoryStream stream )
2439
2439
{
2440
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2440
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2441
2441
2442
2442
Vector2 xz = stream . readPackXZ ( ) ;
2443
2443
float y = stream . readPackY ( ) ;
@@ -2451,7 +2451,7 @@ public void Client_onUpdateData_xyz_ypr(MemoryStream stream)
2451
2451
2452
2452
public void Client_onUpdateData_xyz_yp ( MemoryStream stream )
2453
2453
{
2454
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2454
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2455
2455
2456
2456
Vector2 xz = stream . readPackXZ ( ) ;
2457
2457
float y = stream . readPackY ( ) ;
@@ -2464,7 +2464,7 @@ public void Client_onUpdateData_xyz_yp(MemoryStream stream)
2464
2464
2465
2465
public void Client_onUpdateData_xyz_yr ( MemoryStream stream )
2466
2466
{
2467
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2467
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2468
2468
2469
2469
Vector2 xz = stream . readPackXZ ( ) ;
2470
2470
float y = stream . readPackY ( ) ;
@@ -2477,7 +2477,7 @@ public void Client_onUpdateData_xyz_yr(MemoryStream stream)
2477
2477
2478
2478
public void Client_onUpdateData_xyz_pr ( MemoryStream stream )
2479
2479
{
2480
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2480
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2481
2481
2482
2482
Vector2 xz = stream . readPackXZ ( ) ;
2483
2483
float y = stream . readPackY ( ) ;
@@ -2490,7 +2490,7 @@ public void Client_onUpdateData_xyz_pr(MemoryStream stream)
2490
2490
2491
2491
public void Client_onUpdateData_xyz_y ( MemoryStream stream )
2492
2492
{
2493
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2493
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2494
2494
2495
2495
Vector2 xz = stream . readPackXZ ( ) ;
2496
2496
float y = stream . readPackY ( ) ;
@@ -2501,7 +2501,7 @@ public void Client_onUpdateData_xyz_y(MemoryStream stream)
2501
2501
2502
2502
public void Client_onUpdateData_xyz_p ( MemoryStream stream )
2503
2503
{
2504
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2504
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2505
2505
2506
2506
Vector2 xz = stream . readPackXZ ( ) ;
2507
2507
float y = stream . readPackY ( ) ;
@@ -2513,7 +2513,7 @@ public void Client_onUpdateData_xyz_p(MemoryStream stream)
2513
2513
2514
2514
public void Client_onUpdateData_xyz_r ( MemoryStream stream )
2515
2515
{
2516
- Int32 eid = getAoiEntityIDFromStream ( stream ) ;
2516
+ Int32 eid = getViewEntityIDFromStream ( stream ) ;
2517
2517
2518
2518
Vector2 xz = stream . readPackXZ ( ) ;
2519
2519
float y = stream . readPackY ( ) ;
0 commit comments