GithubHelp home page GithubHelp logo

rbx-lua-types's Introduction

rbx-lua-types

This library is meant to provide a consistent representation of Roblox's data types for things like a DOM... in pure Lua. It is not meant to implement the entirety of Roblox's API. That task is monumental and well outside scope.

Each datatype has one or more constructor that returns an instance of the type in question. The constructors used attempt to mimic one or more of Roblox's constructors, though given that Enums have no representation (yet) in this library, this isn't entirely possible.

Contents

The main module returns a table with the following fields in it:

  • typeof
  • Instance
  • Vector3
  • Vector2
  • CFrame
  • Color3
  • BrickColor
  • Ray
  • Region3
  • Rect
  • UDim
  • UDim2
  • NumberRange
  • NumberSequenceKeypoint
  • NumberSequence
  • ColorSequenceKeypoint
  • ColorSequence
  • Faces
  • Axes
  • Vector3int16
  • PhysicalProperties

With the exception of typeof, these fields represent modules for constructing Roblox datatypes. If a datatype is not present in the list above, it is not implemented yet.

The field typeof is a function that acts identically to the Roblox function of the same name and provides a more specific variant of type that takes the datatypes in this module into account.

Documentation

Documentation for this library is not present yet, but the code is not very complex. You should be able to understand it from reading the actual modules or the tests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.