public static void AddTroopToStarportVisually(Entity starport, TroopTypeVO troop)
 {
     if (starport != null && starport.Get <BuildingComponent>() != null && troop != null)
     {
         float num     = StorageSpreadUtils.GetStarportFullnessPercent(starport);
         int   storage = starport.Get <BuildingComponent>().BuildingType.Storage;
         num += (float)troop.Size / (float)storage;
         if (num > 1f)
         {
             StorageSpreadUtils.UpdateAllStarportFullnessMeters();
             return;
         }
         StorageSpreadUtils.SetStarportFullnessPercent(starport, num);
     }
 }
 public unsafe static long $Invoke9(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageSpreadUtils.GetStarportFullnessPercent((Entity)GCHandledObjects.GCHandleToObject(*args))));
 }