Пример #1
0
 public bool AKIsSpawnId(AKSpawnPoint spawnpoint, AKSpawnPointType.SpawnId id)
 {
     if (spawnpoint.Type.SpawnID == id)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 public static AKSpawnPoint AKGetSpawnId(AKSpawnPointType.SpawnId spawnid)
 {
     foreach (AKSpawnPoint point in AKSpawnPoint.Instances())
     {
         if (spawnid != point.Type.SpawnID)
         {
             continue;
         }
         return(point);
     }
     return(null);
 }
Пример #3
0
        //Incin return spawn Id
        #region Incin

        public static AKSpawnPointType.SpawnId AKGetSpawnIdBySpawnIdwithFacton(AKSpawnPoint spawnpoint, FactionType faction)
        {
            foreach (AKSpawnPoint sp in instances)
            {
                if (sp.faction != faction)
                {
                    continue;
                }

                if (sp.Type.SpawnID != spawnpoint.Type.SpawnID)
                {
                    continue;
                }

                return(spawnpoint.Type.SpawnID);
            }
            return(AKSpawnPointType.SpawnId.NONE);
        }
Пример #4
0
        //Incin return spawn Id
        #region Incin

        public static AKSpawnPointType.SpawnId AKGetSpawnIdBySpawnIdwithFacton(AKSpawnPoint spawnpoint, FactionType faction)
        {

            foreach (AKSpawnPoint sp in instances)
            {
                if (sp.faction != faction)
                    continue;

                if (sp.Type.SpawnID != spawnpoint.Type.SpawnID)
                {
                    continue;
                }

                return spawnpoint.Type.SpawnID;

            }
            return AKSpawnPointType.SpawnId.NONE;
        }
Пример #5
0
 public bool AKIsSpawnId(AKSpawnPoint spawnpoint, AKSpawnPointType.SpawnId id)
 {
     if (spawnpoint.Type.SpawnID == id)
         return true;
     else
         return false;
 }
Пример #6
0
 public static AKSpawnPointType.SpawnId AKGetSpawnId(AKSpawnPoint spawnpoint)
 {
     return spawnpoint.Type.SpawnID;
 }
Пример #7
0
 public static AKSpawnPointType.SpawnId AKGetSpawnId(AKSpawnPoint spawnpoint)
 {
     return(spawnpoint.Type.SpawnID);
 }