mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
28 lines
789 B
C++
28 lines
789 B
C++
/* Copyright 2003-2007 ROBLOX Corporation, All Rights Reserved */
|
|
#pragma once
|
|
|
|
|
|
#include "V8Tree/Instance.h"
|
|
|
|
namespace RBX {
|
|
|
|
class PartInstance;
|
|
class TouchDebouncer;
|
|
|
|
extern const char *const sTouchTransmitter;
|
|
|
|
class TouchTransmitter : public DescribedCreatable<TouchTransmitter, Instance, sTouchTransmitter, Reflection::ClassDescriptor::INTERNAL>
|
|
, public Diagnostics::Countable<TouchTransmitter>
|
|
{
|
|
private:
|
|
typedef DescribedCreatable<TouchTransmitter, Instance, sTouchTransmitter, Reflection::ClassDescriptor::INTERNAL> Super;
|
|
boost::scoped_ptr<TouchDebouncer> touchDebouncer;
|
|
public:
|
|
TouchTransmitter();
|
|
~TouchTransmitter();
|
|
bool checkTouch(const shared_ptr<PartInstance>& other);
|
|
bool checkUntouch(const shared_ptr<PartInstance>& other);
|
|
};
|
|
|
|
} // namespace
|