public FactionCommStruct(FactionCommunication factionComm, int ticksUntilDisabled = -1, bool removeWhenDisabled = true) { this.factionComm = factionComm; this.ticksUntilDisabled = ticksUntilDisabled; this.removeWhenDisabled = removeWhenDisabled; this.enabled = true; }
public bool RemoveFactionCommunication(FactionCommunication factionComm) { return(factionComms.RemoveAll(c => c.factionComm == factionComm) > 0); }
public void AddFactionCommunication(FactionCommunication factionComm, int ticksUntilDisabled = -1, bool removeWhenDisabled = true) { factionComms.Add(new FactionCommStruct(factionComm, ticksUntilDisabled, removeWhenDisabled)); }