Beispiel #1
0
        public static int GetDonatedWarTroopStorageUsedByCurrentPlayer()
        {
            SquadMemberWarData currentMemberWarData = Service.Get <SquadController>().WarManager.GetCurrentMemberWarData();

            if (currentMemberWarData != null)
            {
                List <SquadDonatedTroop> warTroops = currentMemberWarData.WarTroops;
                return(SquadUtils.GetDonatedTroopStorageUsed(warTroops));
            }
            return(0);
        }
Beispiel #2
0
 public unsafe static long $Invoke4(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(SquadUtils.GetDonatedTroopStorageUsed((List <SquadDonatedTroop>)GCHandledObjects.GCHandleToObject(*args))));
 }
Beispiel #3
0
        public static int GetDonatedTroopStorageUsedByCurrentPlayer()
        {
            List <SquadDonatedTroop> troops = Service.Get <SquadController>().StateManager.Troops;

            return(SquadUtils.GetDonatedTroopStorageUsed(troops));
        }
Beispiel #4
0
        public static int GetDonatedTroopStorageUsedByWorldOwner()
        {
            List <SquadDonatedTroop> worldOwnerSquadBuildingTroops = SquadUtils.GetWorldOwnerSquadBuildingTroops();

            return(SquadUtils.GetDonatedTroopStorageUsed(worldOwnerSquadBuildingTroops));
        }