Program Listing for File StockpileDepletedEvent.hpp¶
↰ Return to documentation for file (include/dish2/events/StockpileDepletedEvent.hpp)
#pragma once
#ifndef DISH2_EVENTS_STOCKPILEDEPLETEDEVENT_HPP_INCLUDE
#define DISH2_EVENTS_STOCKPILEDEPLETEDEVENT_HPP_INCLUDE
#include "../peripheral/readable_state/ReadableState.hpp"
namespace dish2 {
struct StockpileDepletedEvent {
template< typename Cardinal, size_t SeriesIdx >
static bool Test( const Cardinal& cardinal ) {
return cardinal.peripheral.readable_state.template Get<
dish2::StockpileDepleted
>();
}
};
} // namespace dish2
#endif // #ifndef DISH2_EVENTS_STOCKPILEDEPLETEDEVENT_HPP_INCLUDE