Add GetCashAndResources() to PlayerResources, to get overall credits.

This commit is contained in:
dnqbob
2023-09-07 07:10:01 +08:00
committed by Gustas
parent 61f1660b38
commit 931118e1d8

View File

@@ -218,5 +218,10 @@ namespace OpenRA.Mods.Common.Traits
if (Resources > ResourceCapacity)
Resources = ResourceCapacity;
}
public int GetCashAndResources()
{
return Cash + Resources;
}
}
}