summaryrefslogblamecommitdiffstats
path: root/src/BlockEntities/RedstonePoweredEntity.h
blob: 7d6904442035fbe063e13e1e747b26397b4936e4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
 
            




                                                                       


                                             


                                                                                                                       

#pragma once

// Interface class representing a blockEntity that responds to redstone
class cRedstonePoweredEntity
{
public:

	virtual ~cRedstonePoweredEntity() {};

/// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate
	virtual void SetRedstonePower(bool a_IsPowered) = 0;
};