Comments (5)
The namespace issue might be problematic, since it uses partials on the entity class for the extension methods. I think that could be fixed though, instead of using a partial, why not turn the partials into true extension methods that operate on the Entity and Matcher objects? I might be missing something though, since I am unfamiliar with Unity.
from entitas.
Generated components are in the Entitas namespace. Why do you have to fix the namespace? They are optional afaik and don't nessecarily have to match the folder structure. That should be fine.
Extension methods are very limited and can only use the public api of an object. With partial classes we can achieve sth like e.position.x, which isn't possible with extension methods.
from entitas.
Its probably just my experience as as business developer peeking through and being pedantic. It bugs me that resharper complains about the namespaces not matching the folder structure in the project.
from entitas.
If that bugs you, you can just change that in ReSharper: Select the a folder in the solution explorer, open/show its properties (F4) and change the setting for "NamespaceProvider" to false.
This is necessary anyhow if you don't want your namespaces to include "Assets" etc. :).
from entitas.
For now most of the generated extensions have to be in the Entitas namespace, so I think I cannot change that. Sorry.
from entitas.
Related Issues (20)
- broken doc link HOT 2
- Wiki closed for editing
- Unity crashes when clicking on a GameObject with Component of Entitas HOT 8
- Remove DesperateDevs dependencies
- [SOLVED] Unity 2022.3.4f1: Exceptions + broken inspector when looking at any entity HOT 16
- Add/Replace/Remove vs Set/Unset HOT 5
- Boolean in setttings for unique components to actually be unique
- A component with multiple contexts +events, only make event listeners for 1 context
- Could not resolve type with token ... expected class System.Threading.CancellationToken HOT 10
- How to generate codes in a project which has several csproj files? HOT 1
- Update on Entitas 2.0-beta and my situation HOT 3
- [1.14.1]code gen twice and compile error HOT 1
- there is a Error, on click Tools/Jenny/Gennerate, how can I do? HOT 4
- _group.GetEntities().AsParallel().ForAll(Execute);这段语句有GC HOT 2
- Is it feasible to use Entitas in the backend? HOT 7
- Entity Behaviour in Unity inspector not visible HOT 2
- Removal of crucial SearchPaths when executing the wiz command
- How to get all group in some context, without reflection。
- GUI Null ref when trying to view entity in inspector HOT 1
- generator issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entitas.