Git Product home page Git Product logo

Comments (9)

sschmid avatar sschmid commented on April 28, 2024 1

Update:
Just released 0.41.0 which now deploys Entitas as Dlls instead of source code. The code generator doesn't rely on partial classes anymore.
It's now possible to easily create nuget packages with the c# only version.

from entitas.

sschmid avatar sschmid commented on April 28, 2024

Thanks! Makes sense, I'll see what I can do ;)

from entitas.

aaronmell avatar aaronmell commented on April 28, 2024

In order for this to work, I believe your going to have to remove the reliance on partial classes during generation. Since a partial cannot exist outside of the assembly it wouldn't work in its current form.

from entitas.

sschmid avatar sschmid commented on April 28, 2024

That's true, the package would have to contain the source files.

from entitas.

aloisdeniel avatar aloisdeniel commented on April 28, 2024

Would be very interested in that too!

I haven't used Entitas yet (and I won't with Unity), but couldn't an inherited class be generated ?

   public class Entity : Entitas.Entity {
        #region Components
        #region Position
        public PositionComponent position { get { /* ... */ } }
        public bool hasPosition { get {  /* ... */ } }
        public Entity AddPosition(float newX, float newY) { /* ... */ }
        public Entity ReplacePosition(float newX, float newY) { /* ... */ }
        public Entity RemovePosition() { /* ... */  }
        #endregion
        #region Rotation
        public RotationComponent rotation { get { /* ... */ } }
        public bool hasRotation { get {  /* ... */ } }
        public Entity AddRotation(float angle) { /* ... */ }
        public Entity ReplaceRotation(float angle) { /* ... */ }
        public Entity RemoveRotation() { /* ... */  }
        #endregion
        #endregion
    }

from entitas.

haggerty-william avatar haggerty-william commented on April 28, 2024

Was a nuget package ever created? Cant seem to find an official nuget package.

from entitas.

sschmid avatar sschmid commented on April 28, 2024

No, there's no nuget package for Entitas

from entitas.

hiradyazdan avatar hiradyazdan commented on April 28, 2024

@sschmid Will there be a nuget package at some point, or it is no longer planned?

from entitas.

sschmid avatar sschmid commented on April 28, 2024

Just saw this issue is still open. Sorry for not updating.

Entitas is available on nuget (since 11/20/2019):

https://www.nuget.org/packages?q=Entitas

Will close as solved

from entitas.

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.