osb/source/game/interfaces/StarWireEntity.hpp
2024-02-25 15:46:47 +01:00

26 lines
700 B
C++

#pragma once
#include "StarWiring.hpp"
#include "StarTileEntity.hpp"
namespace Star {
STAR_CLASS(WireEntity);
class WireEntity : public virtual TileEntity {
public:
virtual ~WireEntity() {}
virtual size_t nodeCount(WireDirection direction) const = 0;
virtual Vec2I nodePosition(WireNode wireNode) const = 0;
virtual List<WireConnection> connectionsForNode(WireNode wireNode) const = 0;
virtual bool nodeState(WireNode wireNode) const = 0;
virtual void addNodeConnection(WireNode wireNode, WireConnection nodeConnection) = 0;
virtual void removeNodeConnection(WireNode wireNode, WireConnection nodeConnection) = 0;
virtual void evaluate(WireCoordinator* coordinator) = 0;
};
}