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