mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
32 lines
659 B
C++
32 lines
659 B
C++
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
|
|
|
#include "V8World/Controller.h"
|
|
|
|
#pragma once
|
|
|
|
namespace RBX {
|
|
|
|
class SurfaceData {
|
|
public:
|
|
LegacyController::InputType inputType;
|
|
float paramA;
|
|
float paramB;
|
|
|
|
SurfaceData()
|
|
: inputType(LegacyController::NO_INPUT)
|
|
, paramA(-0.5)
|
|
, paramB(0.5)
|
|
{}
|
|
|
|
bool operator== (const SurfaceData& other) const {
|
|
return ( inputType == other.inputType
|
|
&& paramA == other.paramA
|
|
&& paramB == other.paramB );
|
|
}
|
|
|
|
static const SurfaceData& empty() {static SurfaceData s; return s;}
|
|
|
|
bool isEmpty() const {return *this == empty();}
|
|
};
|
|
|
|
} // namespace
|