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