Exemple #1
0
 private static bool CanDeploy(PerServerDeployableType perServerDeployableType)
 {
     if (ServerDeployableTracker.instance)
     {
         return(ServerDeployableTracker.instance.CheckAvailibility(perServerDeployableType));
     }
     return(false);
 }
Exemple #2
0
 public bool CheckAvailibility(PerServerDeployableType perServerDeployableType)
 {
     switch (perServerDeployableType)
     {
     case PerServerDeployableType.Gateway:
         return(gatewayList.Count < cfgMaxGateway);
     }
     return(false);
 }
Exemple #3
0
            public void RemoveItem(GameObject gameObject, PerServerDeployableType type)
            {
                switch (type)
                {
                case PerServerDeployableType.Gateway:
                    RemoveGateway(gameObject);
                    break;

                case PerServerDeployableType.Scanner:
                    RemoveScanner(gameObject);
                    break;
                }
            }
Exemple #4
0
            public void AddItem(GameObject gameObject, PerServerDeployableType type)
            {
                if (!CheckAvailibility(type))
                {
                    return;
                }

                if (CheckAvailibility(type))
                {
                    switch (type)
                    {
                    case PerServerDeployableType.Gateway:
                        AddGateway(gameObject);
                        break;
                    }
                }
            }