MCPcopy Create free account
hub / github.com/DFHack/dfhack / init_plate_info

Function init_plate_info

plugins/power-meter.cpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48static const uint32_t METER_BIT = 0x80000000U;
49
50static void init_plate_info(df::pressure_plate_info &plate_info)
51{
52 plate_info.water_min = 1;
53 plate_info.water_max = 7;
54 plate_info.flags.whole = METER_BIT;
55 plate_info.flags.bits.water = true;
56 plate_info.flags.bits.resets = true;
57}
58
59/*
60 * Hook for the pressure plate itself. Implements core logic.

Callers 1

makePowerMeterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected