Git Product home page Git Product logo

Comments (3)

Quenty avatar Quenty commented on August 25, 2024

If we were going to do this, it should still be TestValue.IntValue.json.

IIRC though, you can set model.json to have a classname.

I'd much rather not have the type of the value created encoded in the name of the file. Especially since I'd rather have certain models be 1 JSON object instead of multiple files (which gets nasty very quickly).

from rojo.

LPGhatguy avatar LPGhatguy commented on August 25, 2024

The JSON format in .model.json files is mostly a holdover until proper rbxmx/rbxlx support is implemented. Once we have real model files (and bi-directional syncing) it won't be as big of a deal what the actual on-disk representation is.

I pushed up a prerelease for 0.4.0 that supports .model.json files. The only example right now is this file.

Long-term, I'd like to throw an error or just ignore files that can't be interpreted instead of turning them into StringValue objects like they are right now. To regain the current behavior of StringValue objects, you'd configure some optional plugin!

from rojo.

LPGhatguy avatar LPGhatguy commented on August 25, 2024

I think this use case is well-handled by JSON models as well as Rojo's rbxmx and rbxm support!

Since I don't think there's a lot of value in specifying class name via file name only, I'm going to close this issue.

from rojo.

Related Issues (20)

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.