namespace EDPlayerJournal;
public class NPCs {
///
/// Internal name of Spec Ops Wing Alpha
///
public static string SpecOpsAInternal = "$LUASC_Scenario_Warzone_NPC_SpecOps_A;";
///
/// Internal name of Spec Ops Wing Beta
///
public static string SpecOpsBInternal = "$LUASC_Scenario_Warzone_NPC_SpecOps_B;";
///
/// Internal name of Spec Ops Wing Gamma
///
public static string SpecOpsGInternal = "$LUASC_Scenario_Warzone_NPC_SpecOps_G;";
///
/// Internal name of Spec Ops Wing Delta
///
public static string SpecOpsDInternal = "$LUASC_Scenario_Warzone_NPC_SpecOps_D;";
///
/// Empire captain
///
public static string EmpireCaptain = "$LUASC_Scenario_Warzone_NPC_WarzoneGeneral_Emp;";
///
/// Federation captain
///
public static string FederationCaptain = "$LUASC_Scenario_Warzone_NPC_WarzoneGeneral_Fed;";
///
/// Federation captain
///
public static string IndependentCaptain = "$LUASC_Scenario_Warzone_NPC_WarzoneGeneral_Ind;";
///
/// Warzone correspondant
///
public static string WarzoneCorrespondent = "$LUASC_Scenario_Warzone_NPC_WarzoneCorrespondent;";
///
/// AX Military NPC
///
public static string AXMilitary = "$Name_AX_Military;";
///
/// Returns true if the pilotname is either a captain, specops, or correspondent
///
///
///
public static bool IsWarzoneNPC(string? pilotname) {
if (IsWarzoneCaptain(pilotname) ||
IsWarzoneCorrespondent(pilotname) ||
IsSpecOps(pilotname)) {
return true;
}
return false;
}
///
/// Returns true if the given pilot name is a warzone correspondent
///
///
///
public static bool IsWarzoneCorrespondent(string? pilotname) {
if (pilotname == null) {
return false;
}
if (string.Compare(pilotname, WarzoneCorrespondent) == 0) {
return true;
}
return false;
}
///
/// Returns true if the given pilot name is a spec ops wing.
///
///
///
public static bool IsSpecOps(string? pilotname) {
if (pilotname == null) {
return false;
}
if (string.Compare(pilotname, SpecOpsAInternal) == 0 ||
string.Compare(pilotname, SpecOpsBInternal) == 0 ||
string.Compare(pilotname, SpecOpsGInternal) == 0 ||
string.Compare(pilotname, SpecOpsDInternal) == 0) {
return true;
}
return false;
}
///
/// Returns true if the given pilot name is a warzone captain
///
///
///
public static bool IsWarzoneCaptain(string? pilotname) {
if (pilotname == null) {
return false;
}
if (string.Compare(pilotname, EmpireCaptain) == 0 ||
string.Compare(pilotname, FederationCaptain) == 0 ||
string.Compare(pilotname, IndependentCaptain) == 0) {
return true;
}
return false;
}
}
public class NPC {
}