@@ -1178,101 +1178,52 @@ public bool IsChildOf<T>(T value) where T : Enum
1178
1178
return ref this;
1179
1179
}
1180
1180
1181
- /// <inheritdoc cref="Entity.SetAutoOverride{T}(T)"/>
1182
- public ref {{ typeName }} SetAutoOverride<T>(T component)
1181
+ /// <inheritdoc cref="Entity.SetAutoOverride{T}(in T)"/>
1182
+ public ref {{ typeName }} SetAutoOverride<T>(in T component)
1183
1183
{
1184
- Entity.SetAutoOverride(component);
1184
+ Entity.SetAutoOverride(in component);
1185
1185
return ref this;
1186
1186
}
1187
1187
1188
- /// <inheritdoc cref="Entity.SetAutoOverride{T}(ref T )"/>
1189
- public ref {{ typeName }} SetAutoOverride<T>(ref T component)
1188
+ /// <inheritdoc cref="Entity.SetAutoOverride{TFirst}(ulong, in TFirst )"/>
1189
+ public ref {{ typeName }} SetAutoOverride<TFirst>(ulong second, in TFirst component)
1190
1190
{
1191
- Entity.SetAutoOverride(ref component);
1191
+ Entity.SetAutoOverride(second, in component);
1192
1192
return ref this;
1193
1193
}
1194
1194
1195
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst}(ulong, TFirst)"/>
1196
- public ref {{ typeName }} SetAutoOverride<TFirst>(ulong second, TFirst component)
1195
+ /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(in TFirst)"/>
1196
+ public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(in TFirst component)
1197
1197
{
1198
- Entity.SetAutoOverride(second, component);
1198
+ Entity.SetAutoOverride<TFirst, TSecond>(in component);
1199
1199
return ref this;
1200
1200
}
1201
1201
1202
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst}(ulong, ref TFirst )"/>
1203
- public ref {{ typeName }} SetAutoOverride<TFirst>(ulong second, ref TFirst component)
1202
+ /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(in TSecond )"/>
1203
+ public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(in TSecond component)
1204
1204
{
1205
- Entity.SetAutoOverride(second, ref component);
1205
+ Entity.SetAutoOverride<TFirst, TSecond>(in component);
1206
1206
return ref this;
1207
1207
}
1208
1208
1209
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(TFirst)"/>
1210
- public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(TFirst component)
1209
+ /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(TSecond, in TFirst)"/>
1210
+ public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(TSecond second, in TFirst component) where TSecond : Enum
1211
1211
{
1212
- Entity.SetAutoOverride<TFirst, TSecond>(component);
1212
+ Entity.SetAutoOverride<TFirst, TSecond>(second, in component);
1213
1213
return ref this;
1214
1214
}
1215
1215
1216
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(ref TFirst)"/>
1217
- public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(ref TFirst component)
1216
+ /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(TFirst, in TSecond )"/>
1217
+ public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(TFirst first, in TSecond component) where TFirst : Enum
1218
1218
{
1219
- Entity.SetAutoOverride<TFirst, TSecond>(ref component);
1219
+ Entity.SetAutoOverride<TFirst, TSecond>(first, in component);
1220
1220
return ref this;
1221
1221
}
1222
1222
1223
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(TSecond)"/>
1224
- public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(TSecond component)
1223
+ /// <inheritdoc cref="Entity.SetAutoOverrideSecond{ TSecond}(ulong, in TSecond)"/>
1224
+ public ref {{ typeName }} SetAutoOverrideSecond< TSecond>(ulong first, in TSecond component)
1225
1225
{
1226
- Entity.SetAutoOverride<TFirst, TSecond>(component);
1227
- return ref this;
1228
- }
1229
-
1230
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(ref TSecond)"/>
1231
- public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(ref TSecond component)
1232
- {
1233
- Entity.SetAutoOverride<TFirst, TSecond>(ref component);
1234
- return ref this;
1235
- }
1236
-
1237
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(TSecond, TFirst)"/>
1238
- public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(TSecond second, TFirst component) where TSecond : Enum
1239
- {
1240
- Entity.SetAutoOverride<TFirst, TSecond>(second, component);
1241
- return ref this;
1242
- }
1243
-
1244
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(TSecond, ref TFirst)"/>
1245
- public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(TSecond second, ref TFirst component) where TSecond : Enum
1246
- {
1247
- Entity.SetAutoOverride<TFirst, TSecond>(second, ref component);
1248
- return ref this;
1249
- }
1250
-
1251
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(TFirst, TSecond)"/>
1252
- public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(TFirst first, TSecond component) where TFirst : Enum
1253
- {
1254
- Entity.SetAutoOverride<TFirst, TSecond>(first, component);
1255
- return ref this;
1256
- }
1257
-
1258
- /// <inheritdoc cref="Entity.SetAutoOverride{TFirst, TSecond}(TFirst, ref TSecond)"/>
1259
- public ref {{ typeName }} SetAutoOverride<TFirst, TSecond>(TFirst first, ref TSecond component) where TFirst : Enum
1260
- {
1261
- Entity.SetAutoOverride<TFirst, TSecond>(first, ref component);
1262
- return ref this;
1263
- }
1264
-
1265
- /// <inheritdoc cref="Entity.SetAutoOverrideSecond{TSecond}(ulong, TSecond)"/>
1266
- public ref {{ typeName }} SetAutoOverrideSecond<TSecond>(ulong first, TSecond component)
1267
- {
1268
- Entity.SetAutoOverrideSecond(first, component);
1269
- return ref this;
1270
- }
1271
-
1272
- /// <inheritdoc cref="Entity.SetAutoOverrideSecond{TSecond}(ulong, ref TSecond)"/>
1273
- public ref {{ typeName }} SetAutoOverrideSecond<TSecond>(ulong first, ref TSecond component)
1274
- {
1275
- Entity.SetAutoOverrideSecond(first, ref component);
1226
+ Entity.SetAutoOverrideSecond(first, in component);
1276
1227
return ref this;
1277
1228
}
1278
1229
@@ -1486,101 +1437,52 @@ public bool IsChildOf<T>(T value) where T : Enum
1486
1437
return ref this;
1487
1438
}
1488
1439
1489
- /// <inheritdoc cref="Entity.Set{T}(T)"/>
1490
- public ref {{ typeName }} Set<T>(T data)
1491
- {
1492
- Entity.Set(data);
1493
- return ref this;
1494
- }
1495
-
1496
- /// <inheritdoc cref="Entity.Set{TFirst}(ulong, TFirst)"/>
1497
- public ref {{ typeName }} Set<TFirst>(ulong second, TFirst data)
1498
- {
1499
- Entity.Set(second, data);
1500
- return ref this;
1501
- }
1502
-
1503
- /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(TSecond)"/>
1504
- public ref {{ typeName }} Set<TFirst, TSecond>(TSecond data)
1505
- {
1506
- Entity.Set<TFirst, TSecond>(data);
1507
- return ref this;
1508
- }
1509
-
1510
- /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(TFirst)"/>
1511
- public ref {{ typeName }} Set<TFirst, TSecond>(TFirst data)
1512
- {
1513
- Entity.Set<TFirst, TSecond>(data);
1514
- return ref this;
1515
- }
1516
-
1517
- /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(TSecond, TFirst)"/>
1518
- public ref {{ typeName }} Set<TFirst, TSecond>(TSecond second, TFirst data) where TSecond : Enum
1519
- {
1520
- Entity.Set<TFirst, TSecond>(second, data);
1521
- return ref this;
1522
- }
1523
-
1524
- /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(TFirst, TSecond)"/>
1525
- public ref {{ typeName }} Set<TFirst, TSecond>(TFirst first, TSecond data) where TFirst : Enum
1526
- {
1527
- Entity.Set<TFirst, TSecond>(first, data);
1528
- return ref this;
1529
- }
1530
-
1531
- /// <inheritdoc cref="Entity.SetSecond{TSecond}(ulong, TSecond)"/>
1532
- public ref {{ typeName }} SetSecond<TSecond>(ulong first, TSecond data)
1533
- {
1534
- Entity.SetSecond(first, data);
1535
- return ref this;
1536
- }
1537
-
1538
- /// <inheritdoc cref="Entity.Set{T}(ref T)"/>
1539
- public ref {{ typeName }} Set<T>(ref T data)
1440
+ /// <inheritdoc cref="Entity.Set{T}(in T)"/>
1441
+ public ref {{ typeName }} Set<T>(in T data)
1540
1442
{
1541
- Entity.Set(ref data);
1443
+ Entity.Set(in data);
1542
1444
return ref this;
1543
1445
}
1544
1446
1545
- /// <inheritdoc cref="Entity.Set{TFirst}(ulong, ref TFirst)"/>
1546
- public ref {{ typeName }} Set<TFirst>(ulong second, ref TFirst data)
1447
+ /// <inheritdoc cref="Entity.Set{TFirst}(ulong, in TFirst)"/>
1448
+ public ref {{ typeName }} Set<TFirst>(ulong second, in TFirst data)
1547
1449
{
1548
- Entity.Set(second, ref data);
1450
+ Entity.Set(second, in data);
1549
1451
return ref this;
1550
1452
}
1551
1453
1552
- /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(ref TSecond)"/>
1553
- public ref {{ typeName }} Set<TFirst, TSecond>(ref TSecond data)
1454
+ /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(in TSecond)"/>
1455
+ public ref {{ typeName }} Set<TFirst, TSecond>(in TSecond data)
1554
1456
{
1555
- Entity.Set<TFirst, TSecond>(ref data);
1457
+ Entity.Set<TFirst, TSecond>(in data);
1556
1458
return ref this;
1557
1459
}
1558
1460
1559
- /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(ref TFirst)"/>
1560
- public ref {{ typeName }} Set<TFirst, TSecond>(ref TFirst data)
1461
+ /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(in TFirst)"/>
1462
+ public ref {{ typeName }} Set<TFirst, TSecond>(in TFirst data)
1561
1463
{
1562
- Entity.Set<TFirst, TSecond>(ref data);
1464
+ Entity.Set<TFirst, TSecond>(in data);
1563
1465
return ref this;
1564
1466
}
1565
1467
1566
- /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(TSecond, ref TFirst)"/>
1567
- public ref {{ typeName }} Set<TFirst, TSecond>(TSecond second, ref TFirst data) where TSecond : Enum
1468
+ /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(TSecond, in TFirst)"/>
1469
+ public ref {{ typeName }} Set<TFirst, TSecond>(TSecond second, in TFirst data) where TSecond : Enum
1568
1470
{
1569
- Entity.Set<TFirst, TSecond>(second, ref data);
1471
+ Entity.Set<TFirst, TSecond>(second, in data);
1570
1472
return ref this;
1571
1473
}
1572
1474
1573
- /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(TFirst, ref TSecond)"/>
1574
- public ref {{ typeName }} Set<TFirst, TSecond>(TFirst first, ref TSecond data) where TFirst : Enum
1475
+ /// <inheritdoc cref="Entity.Set{TFirst, TSecond}(TFirst, in TSecond)"/>
1476
+ public ref {{ typeName }} Set<TFirst, TSecond>(TFirst first, in TSecond data) where TFirst : Enum
1575
1477
{
1576
- Entity.Set<TFirst, TSecond>(first, ref data);
1478
+ Entity.Set<TFirst, TSecond>(first, in data);
1577
1479
return ref this;
1578
1480
}
1579
1481
1580
- /// <inheritdoc cref="Entity.SetSecond{TSecond}(ulong, ref TSecond)"/>
1581
- public ref {{ typeName }} SetSecond<TSecond>(ulong first, ref TSecond data)
1482
+ /// <inheritdoc cref="Entity.SetSecond{TSecond}(ulong, in TSecond)"/>
1483
+ public ref {{ typeName }} SetSecond<TSecond>(ulong first, in TSecond data)
1582
1484
{
1583
- Entity.SetSecond(first, ref data);
1485
+ Entity.SetSecond(first, in data);
1584
1486
return ref this;
1585
1487
}
1586
1488
0 commit comments