Adding function definitions
Hey guys ! Just wanted to let you know that I need to run some maintenance on the website because of the recent domain name changes from netlify. So, some pages will appear like this for a few days... but guess what's coming new to the pages ? A Dark theme switch !!!
Function definitions for engine classes are manually defined by the dev team for consistency. However, you can add any functions (not just engine functions) into the global list.
The default function templates can be found at FunctionTemplates.json. An example entry goes as follows
{
"id": "GetControlRotation",
"comment": "// This goes in header above function",
"signature": "virtual FRotator GetControlRotation() const override;",
"field": "private",
"body": [
"if(GetPawn() != nullptr){",
"return FRotator(0.0f, GetPawn()->GetActorRotation().Yaw, 0.0f);",
"}",
"else{",
"return FRotator(0.0f);",
"}"
]
},
The above template if used produces the following:
// class.h
private:
// This goes in header above function
virtual FRotator GetControlRotation() const override;
// source.h
FRotator AClass::GetControlRotation() const {
if(GetPawn() != nullptr) {
return FRotator(0.0f, GetPawn()->GetActorRotation().Yaw, 0.0f);
}
else {
return FRotator(0.0f);
}
}
If you make a good buildspace and submit to us, they will be available to the whole community and you will be fully credited. Since we do not use servers, you will have to use our discord to submit them, where they will undergo a moderation check.
Any updates to the API will be on us. If we choose to customize the build API, we will modify your buildspace for you. However, the credit will be retained permanently. We would really appreciate a multiplayer buildspace from the community right now.
Anyways, that is all about extending the buildspace for now.
See you later... 🖐
I upload weekly and revamp bi-monthly. You can support my work at Patreon | Paypal | Marketplace | Gumroad