Git Product home page Git Product logo

Comments (2)

gabordemooij avatar gabordemooij commented on September 27, 2024

These will be plugins.

I have yet to create a plugin loader, but it's the first thing on my list (after cleaning up and releasing 0.3).

For now, to make a build-in object:

  1. Add the object to citrine.h, use ctr_object*
  2. Add the object to the world in world.c
  3. Add a method using name convention: ctr_myobject_mymethod(myself, arguments)
  4. Add the method to the world, pass a reference &ctr_myobject_mymethod

Easy examples are:

  • Pen write
  • String ltrim

from citrine.

NoraCodes avatar NoraCodes commented on September 27, 2024

Thanks! I had somehow missed the mechanism for initial population in world.c. I'll work on the functionality in my own fork and then move it to a plugin when that's implemented.

from citrine.

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.