repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/DataTypePacker.luau
luau
.luau
local dataTypesRoot = script.Parent local BufferStream = require(dataTypesRoot.Parent.BufferStream) local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local UserdataDefinition = require(dataTypesRoot.Standalone.Userdata.UserdataDefinition) local DataTypePackerStatic = {} local DataTypePackerClass =...
703
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Dependant/init.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypePacker = require(dataTypesRoot.DataTypePacker) return DataTypePacker.packModules(script:GetChildren())
38
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Dependant/table.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local BufferStream = require(dataTypesRoot.Parent.BufferStream) local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local StandaloneDataTypes = require(dataTypesRoot.Standalone) local TableHelper = require(dataTypesRoot.Helpers.TableHelper) t...
1,395
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Helpers/CFrameStream.luau
luau
.luau
-- there are a few data types that need to read / write CFrames -- for these cases it's helpful to have a module that that can be -- required by other definitions local dataTypesRoot = script:FindFirstAncestor("DataTypes") local BufferStream = require(dataTypesRoot.Parent.BufferStream) local F32_EPSILON = math.pow(2,...
1,415
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Helpers/TableHelper.luau
luau
.luau
local TableHelper = {} -- Private local function standardProcessKV(kv: any) return kv end local function standardCompare(a: any, b: any) return a == b end -- Public function TableHelper.getUniqueTblsArray(rootTbl: { [any]: any }) local i = 1 local uniqueArr = { rootTbl } local visited = {} local inArray = {...
1,100
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Native/boolean.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("boolean", { read = function(stream) return stream:readu8() == 1 end, write = function(stream, value) stream:writeu8(if value then 1 else 0) end, })
78
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Native/buffer.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("buffer", { read = function(stream) return stream:readBuffer(stream:readu32()) end, write = function(stream, b) local length = buffer.len(b) stream:wri...
91
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Native/luaFunction.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) -- named 'luaFunction' b/c auto-import is being annoying if the file is just called 'function' return DataTypeDefinition.never("function")
56
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Native/nil.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("nil", { read = function(_stream) return nil end, write = function(_stream, _null) end, })
58
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Native/number.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local number_nan = 1 local number_huge = 2 local number_int = 3 local number_f64 = 4 return DataTypeDefinition.new("number", { read = DataTypeDefinition.createReader({ [number_nan] = fun...
396
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Native/string.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("string", { read = function(stream) local bytes = stream:readu8() local length = stream:readUnsignedBytes(bytes) return stream:readString(length) end, ...
154
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Native/userdata.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("userdata")
34
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Axes.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local AXIS_NAME_ORDER = { "X", "Y", "Z" } return DataTypeDefinition.new("Axes", { read = function(stream) local index = stream:readu8() local enums: { Enum.Axis } = {} for i, axisNam...
221
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/BrickColor.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("BrickColor", { read = function(stream) return BrickColor.new(stream:readu32()) end, write = function(stream, brickColor) stream:writeu32(brickColor.Numb...
76
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/CFrame.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local CFrameStream = require(dataTypesRoot.Helpers.CFrameStream) local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("CFrame", { read = CFrameStream.read, write = CFrameStream.write, })
64
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/CatalogSearchParams.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) -- TODO: This can be supported, it just has a lot of properties... return DataTypeDefinition.unimplemented("CatalogSearchParams")
51
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Color3.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Color3", { read = function(stream) return Color3.fromRGB(stream:readu8(), stream:readu8(), stream:readu8()) end, write = function(stream, color) local r...
154
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/ColorSequence.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("ColorSequence", { read = function(stream) local keypoints = {} local nKeypoints = stream:readu32() for i = 1, nKeypoints do local t = stream:readf32(...
266
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/ColorSequenceKeypoint.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("ColorSequenceKeypoint", { read = function(stream) local t = stream:readf32() local color = Color3.fromRGB(stream:readu8(), stream:readu8(), stream:readu8(...
192
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Content.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("Content")
34
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/DockWidgetPluginGuiInfo.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("DockWidgetPluginGuiInfo")
38
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Enum.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Enum", { read = function(stream) local enumTypeName = stream:readString(stream:readu8()) return (Enum :: any)[enumTypeName] :: Enum end, write = functio...
115
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/EnumItem.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("EnumItem", { read = function(stream) local enumName = stream:readString(stream:readu8()) local enumType = (Enum :: any)[enumName] :: Enum return enumTyp...
148
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Enums.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Enums", { read = function(_stream) return Enum end, write = function(_stream) end, })
55
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Faces.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local FACE_NAME_ORDER = { "Front", "Bottom", "Left", "Back", "Top", "Right" } return DataTypeDefinition.new("Faces", { read = function(stream) local index = stream:readu8() local enums...
232
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/FloatCurveKey.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local function readTangent(stream: DataTypeDefinition.BufferStream, tangentId: number): number? local prevCursor = stream.cursor if stream:readu8() == tangentId then return stream:readf3...
347
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Font.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Font", { read = function(stream) local weight = Enum.FontWeight:FromValue(stream:readu16()) :: Enum.FontWeight local style = Enum.FontStyle:FromValue(stre...
406
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Instance.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.unimplemented("Instance")
34
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/NumberRange.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("NumberRange", { read = function(stream) return NumberRange.new(stream:readf32(), stream:readf32()) end, write = function(stream, range) stream:writef32(...
87
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/NumberSequence.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("NumberSequence", { read = function(stream) local keypoints = {} local nKeypoints = stream:readu32() for i = 1, nKeypoints do keypoints[i] = NumberSeq...
186
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/NumberSequenceKeypoint.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("NumberSequenceKeypoint", { read = function(stream) return NumberSequenceKeypoint.new(stream:readf32(), stream:readf32(), stream:readf32()) end, write = fu...
112
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/OverlapParams.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("OverlapParams")
35
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Path2DControlPoint.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Path2DControlPoint", { read = function(stream) local pos = UDim2.new(stream:readf32(), stream:readi32(), stream:readf32(), stream:readi32()) local left = ...
314
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/PathWaypoint.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local label_u8 = 1 local label_u16 = 2 local label_u32 = 3 local labelReader = DataTypeDefinition.createReader({ [label_u8] = function(stream) return stream:readString(stream:readu8()) ...
367
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/PhysicalProperties.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) -- lsp doesn't seem to like acoustic absorption, but it does exist! local newPhysicalProps = PhysicalProperties.new :: (...number) -> PhysicalProperties return DataTypeDefinition.new("Phys...
213
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/RBXScriptConnection.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("RBXScriptConnection")
37
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/RBXScriptSignal.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("RBXScriptSignal")
37
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Random.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("Random")
34
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Ray.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Ray", { read = function(stream) return Ray.new( Vector3.new(stream:readf32(), stream:readf32(), stream:readf32()), Vector3.new(stream:readf32(), strea...
166
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/RaycastParams.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("RaycastParams")
36
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/RaycastResult.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("RaycastResult")
36
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Rect.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Rect", { read = function(stream) return Rect.new(stream:readf32(), stream:readf32(), stream:readf32(), stream:readf32()) end, write = function(stream, rec...
119
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Region3.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Region3", { read = function(stream) local vMin = Vector3.new(stream:readf32(), stream:readf32(), stream:readf32()) local vMax = Vector3.new(stream:readf32...
286
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Region3int16.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Region3int16", { read = function(stream) local vMin = Vector3int16.new(stream:readi16(), stream:readi16(), stream:readi16()) local vMax = Vector3int16.new...
216
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/RotationCurveKey.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local CFrameStream = require(dataTypesRoot.Helpers.CFrameStream) local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("RotationCurveKey", { read = function(stream) local t = stream:readf32() local value = CFr...
158
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Secret.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("Secret")
34
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/SharedTable.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) -- technically we could use a modified version of the table type, but that would require this to also be dependant return DataTypeDefinition.unimplemented("SharedTable")
59
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/TweenInfo.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("TweenInfo", { read = function(stream) local t = stream:readf32() local easingStyle = Enum.EasingStyle:FromValue(stream:readu16()) :: Enum.EasingStyle lo...
262
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/UDim.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("UDim", { read = function(stream) return UDim.new(stream:readf32(), stream:readi32()) end, write = function(stream, udim) stream:writef32(udim.Scale) s...
92
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/UDim2.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("UDim2", { read = function(stream) return UDim2.new(stream:readf32(), stream:readi32(), stream:readf32(), stream:readi32()) end, write = function(stream, u...
137
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/ValueCurveKey.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.never("ValueCurveKey")
36
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Vector2.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Vector2", { read = function(stream) local x = stream:readf32() local y = stream:readf32() return Vector2.new(x, y) end, write = function(stream, vec) ...
99
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Vector2int16.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Vector2int16", { read = function(stream) local x = stream:readi16() local y = stream:readi16() return Vector2int16.new(x, y) end, write = function(str...
103
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Vector3.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Vector3", { read = function(stream) local x = stream:readf32() local y = stream:readf32() local z = stream:readf32() return Vector3.new(x, y, z) end,...
120
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/Vector3int16.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("Vector3int16", { read = function(stream) local x = stream:readi16() local y = stream:readi16() local z = stream:readi16() return Vector3int16.new(x, y...
124
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Roblox/vector.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) return DataTypeDefinition.new("vector", { read = function(stream) local x = stream:readf32() local y = stream:readf32() local z = stream:readf32() return vector.create(x, y, z) end...
118
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/Definitions/DeduplicationPointer.luau
luau
.luau
local userdataRoot = script:FindFirstAncestor("Userdata") local UserdataDefinition = require(userdataRoot.UserdataDefinition) return UserdataDefinition.new("deduplication-pointer", function(index: number) return { index = index } end)
51
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/Definitions/InstancePointer.luau
luau
.luau
local userdataRoot = script:FindFirstAncestor("Userdata") local UserdataDefinition = require(userdataRoot.UserdataDefinition) return UserdataDefinition.new("instance-pointer", function(index: number) return { index = index } end)
49
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/Definitions/Userdefined.luau
luau
.luau
local userdataRoot = script:FindFirstAncestor("Userdata") local UserdataDefinition = require(userdataRoot.UserdataDefinition) return UserdataDefinition.new("userdefined", function(kind: string, b: buffer) return { kind = kind, b = b, } end)
62
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/Definitions/init.luau
luau
.luau
return { Userdefined = require(script.Userdefined), InstancePointer = require(script.InstancePointer), DeduplicationPointer = require(script.DeduplicationPointer), }
34
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/Types/DeduplicationPointer.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local userdataRoot = script:FindFirstAncestor("Userdata") local UserdataDefinitions = require(userdataRoot.Definitions) local userdataDefinition = UserdataDefinitions.DeduplicationPointer l...
359
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/Types/InstancePointer.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local userdataRoot = script:FindFirstAncestor("Userdata") local UserdataDefinitions = require(userdataRoot.Definitions) local userdataDefinition = UserdataDefinitions.InstancePointer local ...
356
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/Types/Userdefined.luau
luau
.luau
local dataTypesRoot = script:FindFirstAncestor("DataTypes") local DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition) local userdataRoot = script:FindFirstAncestor("Userdata") local UserdataDefinitions = require(userdataRoot.Definitions) local userdataDefinition = UserdataDefinitions.Userdefined local kind...
551
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/UserdataDefinition.luau
luau
.luau
local SUB_TYPE_OF_KEY = "_$_$_bufferize_typeof" local UserdataDefinitionStatic = {} local UserdataDefinitionClass = {} UserdataDefinitionClass.__index = UserdataDefinitionClass UserdataDefinitionClass.ClassName = "UserdataDefinition" type userdata<T> = { ["_$_$_bufferize_typeof"]: string, value: T, } type Options...
526
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/Standalone/Userdata/init.luau
luau
.luau
return require(script.Types)
5
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/TypeIds.luau
luau
.luau
local bufferizeRoot = script.Parent.Parent local CargoSemver = require(bufferizeRoot.Parent.CargoSemver) local TypeIds = {} local registeredArr = {} local function increment(semver: string) local registered = { index = #registeredArr + 1, semver = semver, } table.insert(registeredArr, registered) return regis...
1,077
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/TypeUnions.luau
luau
.luau
export type Supported = nil | boolean | number | string | buffer | { any } | { [any]: any } | Axes | BrickColor | CFrame | Color3 | ColorSequence | ColorSequenceKeypoint | Enum | EnumItem | Enums | Faces | FloatCurveKey | Font | NumberRange | NumberSequence | NumberSequenceKeypoint | Path2DControl...
393
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/DataTypes/init.luau
luau
.luau
local TypeUnions = require(script.TypeUnions) local DataTypePacker = require(script.DataTypePacker) local UserdataDefinitions = require(script.Standalone.Userdata.Definitions) export type Supported = TypeUnions.Supported export type Overridable = TypeUnions.Overridable return { Userdata = UserdataDefinitions, Encod...
94
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/Encoder.luau
luau
.luau
local packagesRoot = script.Parent.Parent local CargoSemver = require(packagesRoot.CargoSemver) local Wally = require(script.Parent.Wally) local DataTypes = require(script.Parent.DataTypes) local BufferStream = require(script.Parent.BufferStream) export type Supported = DataTypes.Supported export type Overridable = D...
2,455
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/Serializers/Deduplicator.luau
luau
.luau
local bufferizeRoot = script.Parent.Parent local DataTypes = require(bufferizeRoot.DataTypes) local TableHelper = require(bufferizeRoot.DataTypes.Helpers.TableHelper) local pointerUserdata = DataTypes.Userdata.DeduplicationPointer local Deduplicator = {} function Deduplicator.serialize(supportedSet: { [any]: boolean ...
464
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/Serializers/InstanceSerializer.luau
luau
.luau
local ReflectionService = game:GetService("ReflectionService") :: ReflectionService local DataTypes = require(script.Parent.Parent.DataTypes) local pointerUserdata = DataTypes.Userdata.InstancePointer local InstanceSerializer = {} local function shouldSerializeProperty(property: { [string]: any }) return property.P...
924
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/init.luau
luau
.luau
--[=[ @class Bufferize Bufferize losslessly encodes and decodes Roblox data types into [`buffer`](https://create.roblox.com/docs/reference/engine/libraries/buffer) objects. The module exposes a default encoder via the top-level `encode` / `decode` functions, along with helpers for serializing instances and dedu...
1,802
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/src/jest.config.luau
luau
.luau
return { testMatch = { "**/*.spec" }, verbose = true, }
17
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/tests/TestRunner.luau
luau
.luau
local pkgRoot = game.ReplicatedStorage.Packages.Bufferize local runCLI = require(game.ReplicatedStorage.DevPackages.Jest).runCLI local processServiceExists, ProcessService = pcall(function() return game:GetService("ProcessService") end) local status, result = runCLI(pkgRoot, { ci = false, passWithNoTests = true, }...
166
EgoMoose/rbx-bufferize
EgoMoose-rbx-bufferize-4aadc9e/tests/init.luau
luau
.luau
local devPackagesRoot = game.ReplicatedStorage.DevPackages local JestGlobals = require(devPackagesRoot.JestGlobals) local it = JestGlobals.it local expect = JestGlobals.expect local describe = JestGlobals.describe local bufferizeRoot = game.ReplicatedStorage.Packages.Bufferize local DataTypeDefinition = require(buffe...
507
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/client/HostExample.client.luau
luau
.luau
--[=[ Host A sample script on how you would run a shader. ]=] --!native -- // Dependencies local Client = game.Players.LocalPlayer local RbxShader = require(game.ReplicatedStorage.RbxShader) -- // Configurations local CONFIGURATIONS = { InterlaceFactor = 2 , DualAxisInterlacing = true , ScreenDivision = 4 , ...
220
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/BasicVoxelTunnel.luau
luau
.luau
--[=[ BasicVoxelTunnel Shader by @Miojo on https://www.shadertoy.com/view/mt2cWm Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) -- // Variables local res = .6 -- @ voxel size local max_it...
1,147
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/Cosmic.luau
luau
.luau
--[=[ Cosmic Shader by @Xor on https://www.shadertoy.com/view/msjXRK Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec3 = Vector3.new local vec2 = Vector2.new --[[ /* "Cosmic" by...
548
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/Currents.luau
luau
.luau
--[=[ Currents Shader by @s23b on https://www.shadertoy.com/view/MsG3DK Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec3 = Vector3.new local vec2 = Vector2.new local uvec3 = Vector3...
1,461
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/GravitySucks.luau
luau
.luau
--[=[ GravitySucks Shader by @mrange on https://www.shadertoy.com/view/4cyXWw Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) -- // CC0: Gravity sucks -- // Tinkering away.... local LAYERS ...
1,541
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/GregsSecret.luau
luau
.luau
--[=[ GregsSecret Shader by @GregRostami found on his literal user description Ported to Luau — ran by my engine — `RbxShader`. ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec2 = Vector2.new local vec3 = Vector3.new -- // Pixel shader return { CONFIGURATION = { Inte...
339
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/MicroRayMarcher.luau
luau
.luau
--[=[ MicroRayMarcher Shader by @iq on https://www.shadertoy.com/view/DlBcz1 Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec3 = Vector3.new local vec2 = Vector2.new -- // The MIT L...
672
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/NaiveRaycast.luau
luau
.luau
--[=[ NaiveRaycast Pixelizes the game environment by naively raycasting. NOTE: - there is something very wrong with how I calculate material reflectance ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local Camera = workspace.CurrentCamera -- // #defines local SKY_COLOR = ...
661
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/Plasma.luau
luau
.luau
--[=[ Plasma Shader by @Xor on https://www.shadertoy.com/view/WfS3Dd Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec3 = Vector3.new local vec2 = Vector2.new local uvec3 = Vector3.on...
596
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/ShaderArt.luau
luau
.luau
--[=[ ShaderArt Shader by @kishimisu on https://www.shadertoy.com/view/mtyGWy Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) --[=[ This animation is the material of my first youtube tutori...
519
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/ShootingStars.luau
luau
.luau
--[=[ Plasma Shader by @Xor on https://www.shadertoy.com/view/ctXGRn Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec3 = Vector3.new local vec2 = Vector2.new local uvec3 = Vector3.on...
644
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/SmallestClock.luau
luau
.luau
--[=[ SmallestClock Shader by @GregRostami on https://www.shadertoy.com/view/MsdXzH Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec3 = Vector3.new -- // Pixel shader return { CONF...
379
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/Sun.luau
luau
.luau
--[=[ Sun Shader by @invivel on https://www.shadertoy.com/view/NlfcW2 Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) -- // Pixel shader return { CONFIGURATION = { InterlaceFactor = 2 , ...
265
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/UnknownPleasures.luau
luau
.luau
--[=[ UnknownPleasures Shader by @smiarx on https://www.shadertoy.com/view/4sVyWR Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec2 = Vector2.new -- // #defines local LINEWIDTH = 3....
723
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/VoxelShader.luau
luau
.luau
--[=[ VoxelShader Shader by @Xor on https://www.shadertoy.com/view/fstSRH Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local function map ( v : Vector3 , iTime : number ) return math.sqr...
764
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/ZippyZaps.luau
luau
.luau
--[=[ ZippyZaps Shader by @SnoopethDuckDuck on https://www.shadertoy.com/view/XXyGzh Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec3 = Vector3.new local vec2 = Vector2.new local uv...
713
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/expensive/BismuthCrystals.luau
luau
.luau
--[=[ BismuthCrystals Shader by @jarble on https://www.shadertoy.com/view/NdsXzl Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec2 = Vector2.new local vec3 = Vector3.new -- // #defi...
553
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/expensive/Clouds.luau
luau
.luau
--[=[ Clouds Shader by @zxxuan1001 on https://www.shadertoy.com/view/tlB3zK Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) local vec2 = Vector2.new local vec3 = Vector3.new -- // noise func...
1,214
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/expensive/ProceduralOcean.luau
luau
.luau
--[=[ Procedural3DOcean Shader by @jarble and @afl_ext on https://www.shadertoy.com/view/4cyXWw Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) [ ⚠ NOT WORKING AS INTENDED ] ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) -- // #defines ...
3,083
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/expensive/SimpleOceanWaves.luau
luau
.luau
--[=[ SimpleOceanWaves Shader by @jarble on https://www.shadertoy.com/view/ftS3zh Ported to Luau — ran by my engine — `RbxShader`. ( Original comments are preserved. ) [ ⚠ NOT WORKING AS INTENDED ] ]=] --!native local g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib) -- // `in` value system -- * ...
2,175
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/shaders/expensive/StarNest.luau
luau
.luau
--[=[ StarNest Shader by @Kali on https://www.shadertoy.com/view/XlfGRj Ported to Luau — ran by my engine — `RbxShader`. NOTE: - very resource intensive, our goal is to be able to render this efficiently without changing this programs code ]=] --!native local g = require(game.ReplicatedStorage.RbxShader...
1,099
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/src/Canvas.luau
luau
.luau
--[=[ Canvas A simple EditableImage interface that mimics CanvasDraw's API design. Specifically built for RbxShader. NOTE: * RGBA values are normalized (between 0 and 1) ]=] --!native local Asset = game:GetService('AssetService') local Resampler = Enum.ResamplerMode local writeu8 = buffer.writeu8 local readu...
1,253
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/src/GraphicsMathLib.luau
luau
.luau
--[=[ GraphicsMathLib Reimplementation of commonly used GLSL functions in Luau. NOTE: - Reimplementation is incomplete - Do not implement function swizzling just like what GLSL did, as Luau is not powerful enough to do that ]=] --!native local MathLib = {} function MathLib.fract_v3 ( v : Vector3 ) re...
1,455
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/src/Vector4.luau
luau
.luau
--[=[ Vector4 Partial implementation of the `vec4` data type in GLSL. ]=] --!native local cos = math.cos local sin = math.sin local Vector4 = {} function Vector4.new( x : number , y : number , z : number , w : number ) local vec4 = { X = x , Y = y , Z = z , W = w } function vec4:Cos() return Vector4.new(...
742
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/src/utils/Argue.luau
luau
.luau
--[=[ Basically an assertion with format. ]=] --!native --!strict local argue = setmetatable({}, { __call = function ( t : {} , cond : any , msg : string ) msg = msg or 'Assertion failed!' local location = t.at or debug.info(2, "n") if not cond then return error( `@RbxShader/{location}: {msg}` ) end e...
139