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