summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/RedstonePoweredEntity.h
blob: 06856f3eaae04cfac093bd98d213b05f449bf906 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

// RedstonePoweredEntity.h

// Declares the cRedstonePoweredEntity class representing a mix-in for block entities that respond to redstone





#pragma once





/** Interface class representing a mix-in for block entities that respond 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;
};