Open Dreaming381 opened 5 years ago
Thanks for reaching out, it sounds like a cool feature. :) To your questions:
Here's an example of what this does for convenience: Before
private GameplaySystemGroup m_gameplaySystemGroup;
private InitializationSystemGroup m_initializationSystemGroup;
private SimulationSystemGroup m_simulationSystemGroup;
private PresentationSystemGroup m_presentationSystemGroup;
public MyWorld(string name, List<Type> systems, bool editorWorld) : base(name)
{
var em = EntityManager;
Singleton = em.CreateEntity();
em.AddComponentData(Singleton, new SingletonTag());
m_initializationSystemGroup = GetOrCreateManager<InitializationSystemGroup>();
m_simulationSystemGroup = GetOrCreateManager<SimulationSystemGroup>();
m_presentationSystemGroup = GetOrCreateManager<PresentationSystemGroup>();
m_gameplaySystemGroup = GetOrCreateManager<GameplaySystemGroup>();
After
private GameplaySystemGroup m_gameplaySystemGroup;
private InitializationSystemGroup m_initializationSystemGroup;
private SimulationSystemGroup m_simulationSystemGroup;
private PresentationSystemGroup m_presentationSystemGroup;
public MyWorld(string name, List<Type> systems, bool editorWorld) : base(name)
{
var em = EntityManager;
Singleton = em.CreateEntity();
em.AddComponentData(Singleton, new SingletonTag());
m_initializationSystemGroup = GetOrCreateManager<InitializationSystemGroup>();
m_simulationSystemGroup = GetOrCreateManager<SimulationSystemGroup>();
m_presentationSystemGroup = GetOrCreateManager<PresentationSystemGroup>();
m_gameplaySystemGroup = GetOrCreateManager<GameplaySystemGroup>();
I want it! I want it! (In case that's still in question)
@StresseJesse I found the workaround to achieve this in a different thread:
Prevent Code Maid from removing blank/whitespace from variable assignments
@govindap11 I think you misunderstand what this fork did. It wouldn't just disable squashing whitespace, it would actually insert whitespace where there was none before in order to create vertical alignment automatically.
I guess while I am here, I should mention I no longer use this fork. I wanted my formatter to also work as a standalone process and now use a different setup.
@Dreaming381 Thank you for your reply. Actually, I recently noticed that difference myself.
I use the following extension for aligning the assignments: Align Assignments
Forgive me if I come off as awkward, I'm not normally involved in open source software projects.
This last week I was looking for a Visual Studio extension that would auto-format my code every time I saved. I have this functionality in my IDE at work using clang formatters in C++ and wanted similar functionality at home working on Unity projects. I came across CodeMaid and really liked its simplicity and flexibility. However, it was missing a feature I missed from work which was vertical alignment, so this weekend I decided to fork the project and add the functionality for myself. Right now it vertically aligns assignments and variable declarations, but I plan to fix any bugs I encounter and add method args and flow control expressions alignment among other things.
There are a few flaws with my implementation:
So my questions: