Git Product home page Git Product logo

Comments (5)

martin-t avatar martin-t commented on August 22, 2024 1

I pushed it in 134a8c7 - should be usable if you depend on this commit directly. I'll do some cleanup, better diagnostics and release a new version tomorrow.

from cvars.

martin-t avatar martin-t commented on August 22, 2024

Yeah, #[cvars(skip)] shouldn't be too hard. Probably a bad idea to check for a different crate's attributes though - too surprising behavior.

from cvars.

Longor1996 avatar Longor1996 commented on August 22, 2024

Got a (very obvious in hindsight) idea: A #[cvars(readonly)]-attribute, for fields that can only be inspected. Could be used for both scripting and making a field read-only when using the release-profile. Should a new issue be created for such a feature?

from cvars.

martin-t avatar martin-t commented on August 22, 2024

Can you tell me a bit about what you want the attribute for?

I think long-term i'll add C# style property getters and setters. What you want could probably be supported by those but i wonder why you even want a configuration variable that can't be configured.

from cvars.

martin-t avatar martin-t commented on August 22, 2024

Only took over a year but the latest published version now supports skipping fields.

I don't think more attributes like readonly are worth the complexity. I'd rather add a way to hook into the way consoles execute commands so gamedevs can do whatever they want there and for example only allow players to set cvars with certain prefixes.

from cvars.

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.