2014-08-05 16:48:23 -04:00
|
|
|
|
2014-08-05 17:54:36 -04:00
|
|
|
#pragma once
|
2014-08-05 16:48:23 -04:00
|
|
|
|
|
|
|
// Interface class representing a blockEntity that responds to redstone
|
|
|
|
class cRedstonePoweredEntity
|
|
|
|
{
|
|
|
|
public:
|
2014-08-05 17:54:36 -04:00
|
|
|
|
2014-09-22 18:23:56 -04:00
|
|
|
virtual ~cRedstonePoweredEntity() {}
|
2014-08-05 17:54:36 -04:00
|
|
|
|
2014-08-06 08:19:22 -04:00
|
|
|
/// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate
|
2014-08-05 16:48:23 -04:00
|
|
|
virtual void SetRedstonePower(bool a_IsPowered) = 0;
|
|
|
|
};
|