Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE file templates for Mass Processor boilerplate #22

Open
1 of 2 tasks
Megafunk opened this issue Apr 26, 2022 · 2 comments
Open
1 of 2 tasks

IDE file templates for Mass Processor boilerplate #22

Megafunk opened this issue Apr 26, 2022 · 2 comments
Labels
Backlogged Not a priority right now

Comments

@Megafunk
Copy link
Owner

Megafunk commented Apr 26, 2022

Seems like you can share Rider file template configs. It would be cool to make it faster to create Mass code with some IDE shortcuts!

  • Rider ForEachEntityChunk live template thingy
EntityQuery.ForEachEntityChunk(EntitySubsystem,Context,[&](FMassExecutionContext& Context)
{
   const int32 QueryLength = Context.GetNumEntities();

   for (int32 i = 0; i < QueryLength; ++i)
   {

   }
});

(no clue how to share it lol, I added it in Editor>Live Templates>C++)

  • Rider "create new UMassProcesser" file template

Does VAX/vanilla VS have anything like this? If it does and you make one we can include that somewhere too.

@Megafunk Megafunk added the Backlogged Not a priority right now label Apr 26, 2022
@cupsster
Copy link
Contributor

For quick tag Rider C++ live template:

USTRUCT()
struct $CLASS_MODULE_API_MACRO$ F$NAME$ : public FMassTag {GENERATED_BODY()};$END$

Where:
$CLASS_MODULE_API_MACRO$ set to Non-Editable "Substitute Unreal template macros" macro with value CLASS_MODULE_API_MACRO
$NAME$ set to Editable "Constant value" macro with value MyMassTag

Will produce:

USTRUCT()
struct MASSSAMPLE_API FMyMassTag : public FMassTag
{
	GENERATED_BODY()
};

I'm not yet sure how Rider templates could be shared except saving them as "team-shared", maybe gitignore need some love. It would be super nice if they could be stored in file and shared easily...

@hvent90
Copy link

hvent90 commented Jul 6, 2022

In regards to sharing templates: https://www.jetbrains.com/help/rider/Sharing_Live_Templates.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlogged Not a priority right now
Projects
None yet
Development

No branches or pull requests

3 participants