Exemplo n.º 1
0
    public static string Format(VitalType type)
    {
        switch (type)
        {
        case VitalType.MovementSpeed:
            return("Movement Speed");

        case VitalType.RotationSpeed:
            return("Rotational Speed");

        case VitalType.ScanRadius:
            return("Scan Range");

        case VitalType.ScanRate:
            return("Scan Rate");

        case VitalType.HullPoints:
            return("Hull Hitpoints");

        case VitalType.ShieldPoints:
            return("Shield Hitpoints");

        case VitalType.GasStorage:
            return("Gas Storage");

        case VitalType.OreStorage:
            return("Ore Storage");

        case VitalType.FuelStorage:
            return("Fuel Storage");

        case VitalType.GoodsStorage:
            return("Goods Storage");

        default:
            return("No format specified for " + type.ToString());
        }
    }
Exemplo n.º 2
0
    public static string FormatTooltip(VitalType type)
    {
        switch (type)
        {
        case VitalType.MovementSpeed:
            return("Forward movement speed.");

        case VitalType.RotationSpeed:
            return("Rotational movement speed.");

        case VitalType.ScanRadius:
            return("Range of proximity scan.");

        case VitalType.ScanRate:
            return("Update rate for proximity scan.");

        case VitalType.HullPoints:
            return("Hull hitpoints, only damaged after shield reaches zero.");

        case VitalType.ShieldPoints:
            return("Shield hitpoints.");

        case VitalType.GasStorage:
            return("Contributes to the fleet maximum cap of " + FleetVital.Format(FleetVitalType.NebulaGas) + ".");

        case VitalType.OreStorage:
            return("Contributes to the fleet maximum cap of  " + FleetVital.Format(FleetVitalType.Veldspar) + " and " + FleetVital.Format(FleetVitalType.Tritanite) + ".");

        case VitalType.FuelStorage:
            return("Contributes to the fleet maximum cap of  " + FleetVital.Format(FleetVitalType.ProcessedFuel) + ".");

        case VitalType.GoodsStorage:
            return("Contributes to the fleet maximum cap of  " + FleetVital.Format(FleetVitalType.Ammunition) + " and " + FleetVital.Format(FleetVitalType.CivilianSupplies) + ".");

        default:
            return("No tooltipformat for " + type.ToString());
        }
    }
Exemplo n.º 3
0
 void OnActorVitalChanged(Actor a, VitalType vt)
 {
     UpdateVital(_items[a].transform.Find(vt.ToString().ToLower()), a.data.GetVital(vt).current, a.data.GetVital(vt).GetMax(), Vital.ToColor(vt));
 }