1.2.3.b2
This commit is contained in:
parent
0e86f54e0a
commit
98f6e65b01
98 changed files with 3391 additions and 397 deletions
|
|
@ -65,6 +65,12 @@ namespace src.utils
|
|||
|
||||
public static int GetTrackedCount(uint playerIndex) => GetPlayerEntities(playerIndex).Count;
|
||||
|
||||
public static uint? GetEntityOwner(uint entityIndex)
|
||||
{
|
||||
if (!trackedEntities.TryGetValue(entityIndex, out var data)) return null;
|
||||
return data.PlayerIndex == SystemOwnerIndex ? null : data.PlayerIndex;
|
||||
}
|
||||
|
||||
public static (int totalTracked, int ownerCount) GetStatistics()
|
||||
{
|
||||
return (trackedEntities.Count, trackedEntities.Values.Select(e => e.PlayerIndex).Distinct().Count());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue