@@ -1327,7 +1327,6 @@ public void SendToServer<T>(string messageType, string channelName, T instance)
1327
1327
/// <param name="messageType">User defined messageType</param>
1328
1328
/// <param name="channelName">User defined channelName</param>
1329
1329
/// <param name="data">The binary data to send</param>
1330
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1331
1330
public void SendToClient ( uint clientId , string messageType , string channelName , byte [ ] data )
1332
1331
{
1333
1332
if ( ! MessageManager . messageTypes . ContainsKey ( messageType ) )
@@ -1360,7 +1359,6 @@ public void SendToClient(uint clientId, string messageType, string channelName,
1360
1359
/// <param name="messageType">User defined messageType</param>
1361
1360
/// <param name="channelName">User defined channelName</param>
1362
1361
/// <param name="writer">The binary data to send</param>
1363
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1364
1362
public void SendToClient ( uint clientId , string messageType , string channelName , BitWriter writer )
1365
1363
{
1366
1364
if ( ! MessageManager . messageTypes . ContainsKey ( messageType ) )
@@ -1389,7 +1387,6 @@ public void SendToClient(uint clientId, string messageType, string channelName,
1389
1387
/// <param name="messageType">User defined messageType</param>
1390
1388
/// <param name="channelName">User defined channelName</param>
1391
1389
/// <param name="instance">The instance to send</param>
1392
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1393
1390
public void SendToClient < T > ( int clientId , string messageType , string channelName , T instance )
1394
1391
{
1395
1392
SendToClient ( clientId , messageType , channelName , BinarySerializer . Serialize < T > ( instance ) ) ;
@@ -1402,7 +1399,6 @@ public void SendToClient<T>(int clientId, string messageType, string channelName
1402
1399
/// <param name="messageType">User defined messageType</param>
1403
1400
/// <param name="channelName">User defined channelName</param>
1404
1401
/// <param name="data">The binary data to send</param>
1405
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1406
1402
public void SendToClients ( uint [ ] clientIds , string messageType , string channelName , byte [ ] data )
1407
1403
{
1408
1404
if ( ! MessageManager . messageTypes . ContainsKey ( messageType ) )
@@ -1434,7 +1430,6 @@ public void SendToClients(uint[] clientIds, string messageType, string channelNa
1434
1430
/// <param name="messageType">User defined messageType</param>
1435
1431
/// <param name="channelName">User defined channelName</param>
1436
1432
/// <param name="writer">The binary data to send</param>
1437
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1438
1433
public void SendToClients ( uint [ ] clientIds , string messageType , string channelName , BitWriter writer )
1439
1434
{
1440
1435
if ( ! MessageManager . messageTypes . ContainsKey ( messageType ) )
@@ -1463,7 +1458,6 @@ public void SendToClients(uint[] clientIds, string messageType, string channelNa
1463
1458
/// <param name="messageType">User defined messageType</param>
1464
1459
/// <param name="channelName">User defined channelName</param>
1465
1460
/// <param name="instance">The instance to send</param>
1466
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1467
1461
public void SendToClients < T > ( int [ ] clientIds , string messageType , string channelName , T instance )
1468
1462
{
1469
1463
SendToClients ( clientIds , messageType , channelName , BinarySerializer . Serialize < T > ( instance ) ) ;
@@ -1476,7 +1470,6 @@ public void SendToClients<T>(int[] clientIds, string messageType, string channel
1476
1470
/// <param name="messageType">User defined messageType</param>
1477
1471
/// <param name="channelName">User defined channelName</param>
1478
1472
/// <param name="data">The binary data to send</param>
1479
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1480
1473
public void SendToClients ( List < uint > clientIds , string messageType , string channelName , byte [ ] data )
1481
1474
{
1482
1475
if ( ! MessageManager . messageTypes . ContainsKey ( messageType ) )
@@ -1508,7 +1501,6 @@ public void SendToClients(List<uint> clientIds, string messageType, string chann
1508
1501
/// <param name="messageType">User defined messageType</param>
1509
1502
/// <param name="channelName">User defined channelName</param>
1510
1503
/// <param name="writer">The binary data to send</param>
1511
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1512
1504
public void SendToClients ( List < uint > clientIds , string messageType , string channelName , BitWriter writer )
1513
1505
{
1514
1506
if ( ! MessageManager . messageTypes . ContainsKey ( messageType ) )
@@ -1537,7 +1529,6 @@ public void SendToClients(List<uint> clientIds, string messageType, string chann
1537
1529
/// <param name="messageType">User defined messageType</param>
1538
1530
/// <param name="channelName">User defined channelName</param>
1539
1531
/// <param name="instance">The instance to send</param>
1540
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1541
1532
public void SendToClients < T > ( List < int > clientIds , string messageType , string channelName , T instance )
1542
1533
{
1543
1534
SendToClients ( clientIds , messageType , channelName , BinarySerializer . Serialize < T > ( instance ) ) ;
@@ -1549,7 +1540,6 @@ public void SendToClients<T>(List<int> clientIds, string messageType, string cha
1549
1540
/// <param name="messageType">User defined messageType</param>
1550
1541
/// <param name="channelName">User defined channelName</param>
1551
1542
/// <param name="data">The binary data to send</param>
1552
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1553
1543
public void SendToClients ( string messageType , string channelName , byte [ ] data )
1554
1544
{
1555
1545
if ( ! MessageManager . messageTypes . ContainsKey ( messageType ) )
@@ -1580,7 +1570,6 @@ public void SendToClients(string messageType, string channelName, byte[] data)
1580
1570
/// <param name="messageType">User defined messageType</param>
1581
1571
/// <param name="channelName">User defined channelName</param>
1582
1572
/// <param name="writer">The binary data to send</param>
1583
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1584
1573
public void SendToClients ( string messageType , string channelName , BitWriter writer )
1585
1574
{
1586
1575
if ( ! MessageManager . messageTypes . ContainsKey ( messageType ) )
@@ -1608,12 +1597,16 @@ public void SendToClients(string messageType, string channelName, BitWriter writ
1608
1597
/// <param name="messageType">User defined messageType</param>
1609
1598
/// <param name="channelName">User defined channelName</param>
1610
1599
/// <param name="instance">The instance to send</param>
1611
- /// <param name="respectObservers">If this is true, the message will only be sent to clients observing the sender object</param>
1612
- public void SendToClients < T > ( string messageType , string channelName , T instance , bool respectObservers = false )
1600
+ public void SendToClients < T > ( string messageType , string channelName , T instance )
1613
1601
{
1614
- SendToClients ( messageType , channelName , BinarySerializer . Serialize < T > ( instance ) , respectObservers ) ;
1602
+ SendToClients ( messageType , channelName , BinarySerializer . Serialize < T > ( instance ) ) ;
1615
1603
}
1616
1604
1605
+ /// <summary>
1606
+ /// Returns the NetworkedObject with a given NetworkId
1607
+ /// </summary>
1608
+ /// <param name="networkId">The NetworkId</param>
1609
+ /// <returns>Returns the NetworkedObject</returns>
1617
1610
public NetworkedObject GetNetworkedObject ( uint networkId )
1618
1611
{
1619
1612
return SpawnManager . spawnedObjects [ networkId ] ;
0 commit comments