Smol QoL Changes

This commit is contained in:
Firq 2023-04-04 20:55:31 +02:00
parent b74c215148
commit bd91e761b1
Signed by: Firq
GPG key ID: 4DE1059A4666E89F
2 changed files with 13 additions and 9 deletions

View file

@ -2,10 +2,11 @@
* README
* -----------
*
* The AutoCloseDoor-script will monitor and after a (configurade) deley automatically clos eht door for you.
* The AutoCloseDoor-script will monitor and (after a configurated delay) automatically close tagged door for you.
* It will only monitor doors within the same 'construct' (same "mechanical group", not Connectors)
*
* Tag a door with [ACD] (including brackets) in its name to have the AutoCloseDoor-script watch it and automatically close if after 3 seconds.
* Addition by Firq: This behavior can be customized below by setting the values of DefaultTimeout and DoorTag accordingly.
*
* You can also tag it with [ACD 10] to auto-close after 10 seconds (you can write whatever delay you want)
*
@ -14,12 +15,19 @@
* This version has been slightly modified by Firq. All credit goes to the original author Ninlin (https://steamcommunity.com/sharedfiles/filedetails/?id=2371860127)
*/
/* CUSTOMIZE BEHAVIOR HERE */
const int DefaultTimeout = 3;
const string DoorTag = "ACD";
/* DO NOT CHANGE ANYTHING BELOW THIS LINE */
public Program() {
Runtime.UpdateFrequency = UpdateFrequency.Update100;
}
const int DefaultTimeout = 3;
const string TAG = "[ACD";
const string TAG = "[" + DoorTag;
readonly int TAGlen = TAG.Length;
private Dictionary < string, OpenDoor > openDoors = new Dictionary < string, OpenDoor > ();

View file

@ -1,13 +1,9 @@
/** CUSTOMIZE HERE
* Set the thresholds here
*/
/* CUSTOMIZE BEHAVIOR HERE */
const int upperThreshold = 25000000;
const int lowerThreshold = 1000000;
/**
* DO NOT CHANGE ANYTHING BELOW THIS LINE
*/
/* DO NOT CHANGE ANYTHING BELOW THIS LINE */
string collectorState = "";