This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+29
View File
@@ -0,0 +1,29 @@
/* Copyright 2003-2009 ROBLOX Corporation, All Rights Reserved */
#pragma once
#include "Util/NormalId.h"
namespace RBX {
//A utility class for holding a set of "Faces" associated with an object (top, bottom, left, right, front, back)
class Faces
{
public:
Faces(int normalIdMask = 0);
void clear() { normalIdMask = NORM_NONE_MASK; }
void setNormalId(NormalId normalId, bool value);
bool getNormalId(NormalId normalId) const;
bool operator==(const Faces& other) const {
return normalIdMask == other.normalIdMask;
}
bool operator!=(const Faces& other) const {
return normalIdMask != other.normalIdMask;
}
int normalIdMask;
};
}