mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
/* Copyright 2003-2009 ROBLOX Corporation, All Rights Reserved */
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "V8DataModel/SurfaceSelection.h"
|
||||
#include "V8DataModel/PartInstance.h"
|
||||
#include "AppDraw/DrawAdorn.h"
|
||||
#include "AppDraw/Draw.h"
|
||||
|
||||
namespace RBX {
|
||||
|
||||
const char* const sSurfaceSelection = "SurfaceSelection";
|
||||
|
||||
REFLECTION_BEGIN();
|
||||
static const Reflection::EnumPropDescriptor<SurfaceSelection, NormalId> prop_Surface("TargetSurface", category_Data, &SurfaceSelection::getSurface, &SurfaceSelection::setSurface);
|
||||
REFLECTION_END();
|
||||
|
||||
SurfaceSelection::SurfaceSelection()
|
||||
:DescribedCreatable<SurfaceSelection, PartAdornment, sSurfaceSelection>("SurfaceSelection")
|
||||
,surfaceId(NORM_X)
|
||||
{}
|
||||
|
||||
void SurfaceSelection::setSurface(NormalId value)
|
||||
{
|
||||
if(surfaceId != value){
|
||||
surfaceId = value;
|
||||
raisePropertyChanged(prop_Surface);
|
||||
}
|
||||
}
|
||||
|
||||
void SurfaceSelection::render3dAdorn(Adorn* adorn)
|
||||
{
|
||||
if(getVisible()){
|
||||
if(shared_ptr<RBX::PartInstance> partInstance = adornee.lock()){
|
||||
DrawAdorn::partSurface(partInstance->getPart(), surfaceId, adorn, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Randomized Locations for hackflags
|
||||
namespace RBX
|
||||
{
|
||||
namespace Security
|
||||
{
|
||||
unsigned int hackFlag0 = 0;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user