You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Consistency Pass #1
Power cells of all types are now considered stock parts
Went through materials.dm and did some copy+paste work make material definitions consistent across the codebase (eg "steel" = 50 -> MAT_STEEL = 50)
* Machines are now instances in SSMachines
* Performance improvements by way of instancing all of SSmachines
* Fixes the powersink
* Revert "Consistency Pass #1"
This reverts commit cbeef1b.
* Update machines.dm
Styling changes
* Update machines.dm
* Update machines.dm
forgot to update the doc
Copy file name to clipboardExpand all lines: code/__defines/machinery.dm
+20-23Lines changed: 20 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,11 @@ var/global/defer_powernet_rebuild = 0 // True if net rebuild will be called
17
17
#defineUSE_POWER_IDLE1// Machine is using power at its idle power level
18
18
#defineUSE_POWER_ACTIVE2// Machine is using power at its active power level
19
19
20
+
/// Bitflags for a machine's preferences on when it should start processing. For use with machinery's `processing_flags` var.
21
+
#defineSTART_PROCESSING_ON_INIT (1<<0) /// Indicates the machine will automatically start processing right after it's `Initialize()` is ran.
22
+
#defineSTART_PROCESSING_MANUALLY (1<<1) /// Machines with this flag will not start processing when it's spawned. Use this if you want to manually control when a machine starts processing.
23
+
24
+
20
25
// Channel numbers for power.
21
26
#defineCURRENT_CHANNEL-1// Passed as an argument this means "use whatever current channel is"
#defineSSMACHINES_MACHINERY_LIST0// The default, most things processed by SSmachines are the machinery type
149
+
#defineSSMACHINES_POWERNETS_LIST1// Powernets to be processed
150
+
#defineSSMACHINES_POWEROBJS_LIST2// Power objects to be processed (only powersinks atm)
151
+
#defineSSMACHINES_PIPENETS_LIST3// Pipenets to be worked through
152
+
153
+
/// Takes a datum and optionally a flag (`SSMACHINES_MACHINERY_LIST` (default), `SSMACHINES_POWERNETS_LIST`, `SSMACHINES_POWEROJBS_LIST`, `SSMACHINES_PIPENETS_LIST`) and adds that datum
154
+
/// to SSmachines
155
+
#defineSTART_PROCESSING_MACHINERY(Datum, List) if (!(Datum.datum_flags &DF_ISPROCESSING)) {Datum.datum_flags|=DF_ISPROCESSING;SSmachines.start_processing(Datum, List)}
/// Takes a datum and optionally a flag (`SSMACHINES_MACHINERY_LIST` (default), `SSMACHINES_POWERNETS_LIST`, `SSMACHINES_POWEROJBS_LIST`, `SSMACHINES_PIPENETS_LIST`) and removes that datum
158
+
/// from SSmachines
159
+
#defineSTART_SPEED_PROCESSING(Datum) if (!(Datum.datum_flags &DF_ISPROCESSING)) {Datum.datum_flags|=DF_ISPROCESSING;SSfastprocess.processing+= Datum}
160
+
#defineSTOP_SPEED_PROCESSING(Datum) Datum.datum_flags &=~DF_ISPROCESSING;SSfastprocess.processing -= Datum
0 commit comments