Merge pull request #5596 from aws-lumberyard-dev/scripting/text_updates

Script Canvas node naming & generation improvements
This commit is contained in:
Luis Sempé
2021-11-15 14:56:41 -08:00
committed by GitHub
40 changed files with 1727 additions and 308 deletions
@@ -5,7 +5,8 @@
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "AssetData"
"name": "Asset Data",
"category": "Asset"
},
"methods": [
{
@@ -13,21 +14,20 @@
"context": "AssetData",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetUseCount"
"tooltip": "When signaled, this will invoke Get Use Count"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetUseCount is invoked"
"tooltip": "Signaled after Get Use Count is invoked"
},
"details": {
"name": "AssetData::GetUseCount",
"category": "Other"
"name": "Get Use Count"
},
"params": [
{
"typeid": "{AF3F7D32-1536-422A-89F3-A11E1F5B5A9C}",
"details": {
"name": "AssetData*"
"name": "Asset Data"
}
}
],
@@ -35,7 +35,7 @@
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Use Count"
}
}
]
@@ -45,27 +45,27 @@
"context": "AssetData",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke IsLoading"
"tooltip": "When signaled, this will invoke Is Loading"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after IsLoading is invoked"
"tooltip": "Signaled after Is Loading is invoked"
},
"details": {
"name": "AssetData::IsLoading",
"name": "Is Loading",
"category": "Other"
},
"params": [
{
"typeid": "{AF3F7D32-1536-422A-89F3-A11E1F5B5A9C}",
"details": {
"name": "AssetData*"
"name": "Asset Data"
}
},
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Include Queued"
}
}
],
@@ -73,7 +73,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Is Loading"
}
}
]
@@ -83,21 +83,20 @@
"context": "AssetData",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke IsError"
"tooltip": "When signaled, this will invoke Is Error"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after IsError is invoked"
"tooltip": "Signaled after Is Error is invoked"
},
"details": {
"name": "AssetData::IsError",
"category": "Other"
"name": "Is Error"
},
"params": [
{
"typeid": "{AF3F7D32-1536-422A-89F3-A11E1F5B5A9C}",
"details": {
"name": "AssetData*"
"name": "Asset Data"
}
}
],
@@ -105,7 +104,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Is Error"
}
}
]
@@ -115,21 +114,20 @@
"context": "AssetData",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke IsReady"
"tooltip": "When signaled, this will invoke Is Ready"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after IsReady is invoked"
"tooltip": "Signaled after Is Ready is invoked"
},
"details": {
"name": "AssetData::IsReady",
"category": "Other"
"name": "Is Ready"
},
"params": [
{
"typeid": "{AF3F7D32-1536-422A-89F3-A11E1F5B5A9C}",
"details": {
"name": "AssetData*"
"name": "Asset Data"
}
}
],
@@ -137,7 +135,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Is Ready"
}
}
]
@@ -147,21 +145,20 @@
"context": "AssetData",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetId"
"tooltip": "When signaled, this will invoke Get Id"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetId is invoked"
"tooltip": "Signaled after Get Id is invoked"
},
"details": {
"name": "AssetData::GetId",
"category": "Other"
"name": "Get Id"
},
"params": [
{
"typeid": "{AF3F7D32-1536-422A-89F3-A11E1F5B5A9C}",
"details": {
"name": "AssetData*"
"name": "Asset Data"
}
}
],
@@ -169,7 +166,7 @@
{
"typeid": "{652ED536-3402-439B-AEBE-4A5DBC554085}",
"details": {
"name": "const AssetId&"
"name": "Asset Id"
}
}
]
@@ -5,7 +5,8 @@
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "AssetId"
"name": "Asset Id",
"category": "Asset"
},
"methods": [
{
@@ -20,14 +21,13 @@
"tooltip": "Signaled after CreateString is invoked"
},
"details": {
"name": "AssetId::CreateString",
"category": "Other"
"name": "Create String"
},
"params": [
{
"typeid": "{7114E998-A8B4-519B-9342-A86D1587B4F7}",
"details": {
"name": "AZStd::basic_string_view<char, AZStd::char_traits<char>>"
"name": "String"
}
}
],
@@ -35,7 +35,7 @@
{
"typeid": "{652ED536-3402-439B-AEBE-4A5DBC554085}",
"details": {
"name": "AssetId"
"name": "Asset Id"
}
}
]
@@ -52,14 +52,13 @@
"tooltip": "Signaled after IsValid is invoked"
},
"details": {
"name": "AssetId::IsValid",
"category": "Other"
"name": "Is Valid"
},
"params": [
{
"typeid": "{652ED536-3402-439B-AEBE-4A5DBC554085}",
"details": {
"name": "AssetId*"
"name": "Asset Id"
}
}
],
@@ -67,7 +66,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Is Valid"
}
}
]
@@ -84,14 +83,13 @@
"tooltip": "Signaled after ToString is invoked"
},
"details": {
"name": "AssetId::ToString",
"category": "Other"
"name": "To String"
},
"params": [
{
"typeid": "{652ED536-3402-439B-AEBE-4A5DBC554085}",
"details": {
"name": "const AssetId*"
"name": "Asset Id"
}
}
],
@@ -99,7 +97,7 @@
{
"typeid": "{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}",
"details": {
"name": "AZStd::basic_string<char, AZStd::char_traits<char>, allocator>"
"name": "String"
}
}
]
@@ -116,20 +114,19 @@
"tooltip": "Signaled after IsEqual is invoked"
},
"details": {
"name": "AssetId::IsEqual",
"category": "Other"
"name": "Is Equal"
},
"params": [
{
"typeid": "{652ED536-3402-439B-AEBE-4A5DBC554085}",
"details": {
"name": "const AssetId&"
"name": "Asset Id"
}
},
{
"typeid": "{652ED536-3402-439B-AEBE-4A5DBC554085}",
"details": {
"name": "const AssetId&"
"name": "Asset Id"
}
}
],
@@ -137,7 +134,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Equal"
}
}
]
@@ -5,8 +5,98 @@
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "AssetInfo"
}
"name": "Asset Info"
},
"methods": [
{
"key": "assetId",
"details": {
"name": "Get Asset Id"
},
"params": [
{
"typeid": "{E6D8372B-8419-4287-B478-1353709A972F}",
"details": {
"name": "Asset Info"
}
}
],
"results": [
{
"typeid": "{652ED536-3402-439B-AEBE-4A5DBC554085}",
"details": {
"name": "Asset Id"
}
}
]
},
{
"key": "assetType",
"details": {
"name": "Get Asset Type"
},
"params": [
{
"typeid": "{E6D8372B-8419-4287-B478-1353709A972F}",
"details": {
"name": "Asset Info"
}
}
],
"results": [
{
"typeid": "{E152C105-A133-4D03-BBF8-3D4B2FBA3E2A}",
"details": {
"name": "Type"
}
}
]
},
{
"key": "sizeBytes",
"details": {
"name": "Get Size (Bytes)"
},
"params": [
{
"typeid": "{E6D8372B-8419-4287-B478-1353709A972F}",
"details": {
"name": "Asset Info"
}
}
],
"results": [
{
"typeid": "{D6597933-47CD-4FC8-B911-63F3E2B0993A}",
"details": {
"name": "Size (Bytes)"
}
}
]
},
{
"key": "relativePath",
"details": {
"name": "Get Relative Path"
},
"params": [
{
"typeid": "{E6D8372B-8419-4287-B478-1353709A972F}",
"details": {
"name": "Asset Info"
}
}
],
"results": [
{
"typeid": "{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}",
"details": {
"name": "Relative Path"
}
}
]
}
]
}
]
}
@@ -0,0 +1,136 @@
{
"entries": [
{
"key": "NetworkTestPlayerComponentNetworkInput",
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "Network Test Player Component Network Input",
"category": "Automated Testing"
},
"methods": [
{
"key": "CreateFromValues",
"context": "NetworkTestPlayerComponentNetworkInput",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Create From Values"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Create From Values is invoked"
},
"details": {
"name": "Create From Values"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Forward Back"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Left Right"
}
}
],
"results": [
{
"typeid": "{12A1776B-61F6-4E5F-356A-AD718A62051F}",
"details": {
"name": "Network Test Player Component Network Input"
}
}
]
},
{
"key": "FwdBack",
"details": {
"name": "Get Forward Back"
},
"params": [
{
"typeid": "{12A1776B-61F6-4E5F-356A-AD718A62051F}",
"details": {
"name": "Network Test Player Component Network Input"
}
}
],
"results": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Forward Back"
}
}
]
},
{
"key": "FwdBack",
"details": {
"name": "Set Forward Back"
},
"params": [
{
"typeid": "{12A1776B-61F6-4E5F-356A-AD718A62051F}",
"details": {
"name": "Network Test Player Component Network Input"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Forward Back"
}
}
]
},
{
"key": "LeftRight",
"details": {
"name": "Get Left Right"
},
"params": [
{
"typeid": "{12A1776B-61F6-4E5F-356A-AD718A62051F}",
"details": {
"name": "Network Test Player Component Network Input"
}
}
],
"results": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Left Right"
}
}
]
},
{
"key": "LeftRight",
"details": {
"name": "Set Left Right"
},
"params": [
{
"typeid": "{12A1776B-61F6-4E5F-356A-AD718A62051F}",
"details": {
"name": "Network Test Player Component Network Input"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Left Right"
}
}
]
}
]
}
]
}
@@ -5,8 +5,58 @@
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "PolygonPrism"
}
"name": "Polygon Prism",
"category": "Shape"
},
"methods": [
{
"key": "height",
"details": {
"name": "Get Height"
},
"params": [
{
"typeid": "{F01C8BDD-6F24-4344-8945-521A8750B30B}",
"details": {
"name": "Polygon Prism",
"tooltip": "Polygon prism shape"
}
}
],
"results": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Height"
}
}
]
},
{
"key": "vertexContainer",
"details": {
"name": "Get Vertex Container"
},
"params": [
{
"typeid": "{F01C8BDD-6F24-4344-8945-521A8750B30B}",
"details": {
"name": "Polygon Prism",
"tooltip": "Polygon prism shape"
}
}
],
"results": [
{
"typeid": "{EBE98B36-0783-5226-9739-064BD41EBB52}",
"details": {
"name": "Vertex Container",
"tooltip": "Vertex data"
}
}
]
}
]
}
]
}
@@ -0,0 +1,58 @@
{
"entries": [
{
"key": "ReferenceShapeConfig",
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "ReferenceShapeConfig"
},
"methods": [
{
"key": "shapeEntityId",
"details": {
"name": "ReferenceShapeConfig::shapeEntityId::Getter"
},
"params": [
{
"typeid": "{3E49974D-2EE0-4AF9-92B9-229A22B515C3}",
"details": {
"name": "ReferenceShapeConfig*"
}
}
],
"results": [
{
"typeid": "{6383F1D3-BB27-4E6B-A49A-6409B2059EAA}",
"details": {
"name": "EntityId&",
"tooltip": "Entity Unique Id"
}
}
]
},
{
"key": "shapeEntityId",
"details": {
"name": "ReferenceShapeConfig::shapeEntityId::Setter"
},
"params": [
{
"typeid": "{3E49974D-2EE0-4AF9-92B9-229A22B515C3}",
"details": {
"name": "ReferenceShapeConfig*"
}
},
{
"typeid": "{6383F1D3-BB27-4E6B-A49A-6409B2059EAA}",
"details": {
"name": "const EntityId&",
"tooltip": "Entity Unique Id"
}
}
]
}
]
}
]
}
@@ -5,7 +5,7 @@
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "SimpleAssetReferenceBase"
"name": "Asset Reference"
},
"methods": [
{
@@ -13,28 +13,96 @@
"context": "SimpleAssetReferenceBase",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke SetAssetPath"
"tooltip": "When signaled, this will invoke Set Asset Path"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after SetAssetPath is invoked"
"tooltip": "Signaled after Set Asset Path is invoked"
},
"details": {
"name": "SimpleAssetReferenceBase::SetAssetPath",
"category": "Other"
"name": "Set Asset Path"
},
"params": [
{
"typeid": "{E16CA6C5-5C78-4AD9-8E9B-F8C1FB4D1DB8}",
"details": {
"name": "SimpleAssetReferenceBase*",
"name": "Asset Reference",
"tooltip": "Asset reference as a project-relative path"
}
},
{
"typeid": "{3AB0037F-AF8D-48CE-BCA0-A170D18B2C03}",
"details": {
"name": "const char*"
"name": "Path"
}
}
]
},
{
"key": "assetPath",
"details": {
"name": "Get Asset Path"
},
"params": [
{
"typeid": "{E16CA6C5-5C78-4AD9-8E9B-F8C1FB4D1DB8}",
"details": {
"name": "Asset Reference",
"tooltip": "Asset reference as a project-relative path"
}
}
],
"results": [
{
"typeid": "{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}",
"details": {
"name": "Path"
}
}
]
},
{
"key": "assetType",
"details": {
"name": "Get Asset Type"
},
"params": [
{
"typeid": "{E16CA6C5-5C78-4AD9-8E9B-F8C1FB4D1DB8}",
"details": {
"name": "Asset Reference",
"tooltip": "Asset reference as a project-relative path"
}
}
],
"results": [
{
"typeid": "{E152C105-A133-4D03-BBF8-3D4B2FBA3E2A}",
"details": {
"name": "Type"
}
}
]
},
{
"key": "fileFilter",
"details": {
"name": "Get File Filter"
},
"params": [
{
"typeid": "{E16CA6C5-5C78-4AD9-8E9B-F8C1FB4D1DB8}",
"details": {
"name": "Asset Reference",
"tooltip": "Asset reference as a project-relative path"
}
}
],
"results": [
{
"typeid": "{3AB0037F-AF8D-48CE-BCA0-A170D18B2C03}",
"details": {
"name": "Filter"
}
}
]
@@ -0,0 +1,45 @@
{
"entries": [
{
"key": "BlastFamilyComponentNotificationBus",
"context": "EBusHandler",
"variant": "",
"details": {
"name": "BlastFamilyComponentNotificationBus",
"category": "EBus Handlers"
},
"methods": [
{
"key": "OnActorCreated",
"details": {
"name": "On Actor Created"
},
"params": [
{
"typeid": "{A23453D5-79A8-49C8-B9F0-9CC35D711DD4}",
"details": {
"name": "Blast Actor Data",
"tooltip": "Represents Blast Actor in a Script Canvas friendly format."
}
}
]
},
{
"key": "OnActorDestroyed",
"details": {
"name": "On Actor Destroyed"
},
"params": [
{
"typeid": "{A23453D5-79A8-49C8-B9F0-9CC35D711DD4}",
"details": {
"name": "Blast Actor Data",
"tooltip": "Represents Blast Actor in a Script Canvas friendly format."
}
}
]
}
]
}
]
}
@@ -5,13 +5,14 @@
"context": "EBusHandler",
"variant": "",
"details": {
"name": "CameraNotificationBus"
"name": "Camera",
"category": "Camera"
},
"methods": [
{
"key": "OnCameraAdded",
"details": {
"name": "OnCameraAdded"
"name": "On Camera Added"
},
"params": [
{
@@ -26,7 +27,7 @@
{
"key": "OnCameraRemoved",
"details": {
"name": "OnCameraRemoved"
"name": "On Camera Removed"
},
"params": [
{
@@ -41,7 +42,7 @@
{
"key": "OnActiveViewChanged",
"details": {
"name": "OnActiveViewChanged"
"name": "On Active View Changed"
},
"params": [
{
@@ -0,0 +1,57 @@
{
"entries": [
{
"key": "NetworkTestPlayerComponentBusHandler",
"context": "EBusHandler",
"variant": "",
"details": {
"name": "Network Test Player",
"category": "Automated Testing"
},
"methods": [
{
"key": "CreateInput",
"details": {
"name": "Create Input"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Delta Time"
}
}
],
"results": [
{
"typeid": "{12A1776B-61F6-4E5F-356A-AD718A62051F}",
"details": {
"name": "Network Test Player Component Network Input"
}
}
]
},
{
"key": "ProcessInput",
"details": {
"name": "Process Input"
},
"params": [
{
"typeid": "{12A1776B-61F6-4E5F-356A-AD718A62051F}",
"details": {
"name": "Network Test Player Component Network Input"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Delta Time"
}
}
]
}
]
}
]
}
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "ActorComponentRequestBus",
"name": "Actor",
"category": "Animation"
},
"methods": [
@@ -13,20 +13,20 @@
"key": "GetRenderCharacter",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetRenderCharacter"
"tooltip": "When signaled, this will invoke Get Render Character"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetRenderCharacter is invoked"
"tooltip": "Signaled after Get Render Character is invoked"
},
"details": {
"name": "GetRenderCharacter"
"name": "Get Render Character"
},
"results": [
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Enabled"
}
}
]
@@ -49,20 +49,20 @@
"key": "GetRenderActorVisible",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetRenderActorVisible"
"tooltip": "When signaled, this will invoke Get Render Actor Visible"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetRenderActorVisible is invoked"
"tooltip": "Signaled after Get Render Actor Visible is invoked"
},
"details": {
"name": "GetRenderActorVisible"
"name": "Get Render Actor Visible"
},
"results": [
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Visible"
}
}
]
@@ -78,7 +78,8 @@
"tooltip": "Signaled after Attach To Entity is invoked"
},
"details": {
"name": "Attach To Entity"
"name": "Attach To Entity",
"category": "Actor Animation"
},
"params": [
{
@@ -91,7 +92,8 @@
{
"typeid": "{43DA906B-7DEF-4CA8-9790-854106D3F983}",
"details": {
"name": "unsigned int"
"name": "Attachment Type",
"tooltip": "0: Actor, 1: Skin"
}
}
]
@@ -100,20 +102,20 @@
"key": "SetRenderCharacter",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke SetRenderCharacter"
"tooltip": "When signaled, this will invoke Set Render Character"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after SetRenderCharacter is invoked"
"tooltip": "Signaled after Set Render Character is invoked"
},
"details": {
"name": "SetRenderCharacter"
"name": "Set Render Character"
},
"params": [
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Enable"
}
}
]
@@ -122,26 +124,27 @@
"key": "GetJointTransform",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetJointTransform"
"tooltip": "When signaled, this will invoke Get Joint Transform"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetJointTransform is invoked"
"tooltip": "Signaled after Get Joint Transform is invoked"
},
"details": {
"name": "GetJointTransform"
"name": "Get Joint Transform"
},
"params": [
{
"typeid": "{D6597933-47CD-4FC8-B911-63F3E2B0993A}",
"details": {
"name": "AZ::u64"
"name": "Joint Index"
}
},
{
"typeid": "{43DA906B-7DEF-4CA8-9790-854106D3F983}",
"details": {
"name": "unsigned int"
"name": "Space",
"tooltip": "0: Local, 1: Model, 2: World"
}
}
],
@@ -154,46 +157,24 @@
}
]
},
{
"key": "DebugDrawRoot",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Debug Draw Root"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Debug Draw Root is invoked"
},
"details": {
"name": "Debug Draw Root"
},
"params": [
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
}
}
]
},
{
"key": "GetJointIndexByName",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetJointIndexByName"
"tooltip": "When signaled, this will invoke Get Joint Index By Name"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetJointIndexByName is invoked"
"tooltip": "Signaled after Get Joint Index By Name is invoked"
},
"details": {
"name": "GetJointIndexByName"
"name": "Get Joint Index By Name"
},
"params": [
{
"typeid": "{3AB0037F-AF8D-48CE-BCA0-A170D18B2C03}",
"details": {
"name": "char"
"name": "Name"
}
}
],
@@ -201,7 +182,7 @@
{
"typeid": "{D6597933-47CD-4FC8-B911-63F3E2B0993A}",
"details": {
"name": "AZ::u64"
"name": "Joint Index"
}
}
]
@@ -5,39 +5,41 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "AnimAudioComponentRequestBus"
"name": "Audio",
"category": "Animation"
},
"methods": [
{
"key": "AddTriggerEvent",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke AddTriggerEvent"
"tooltip": "When signaled, this will invoke Add Trigger Event"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after AddTriggerEvent is invoked"
"tooltip": "Signaled after Add Trigger Event is invoked"
},
"details": {
"name": "AddTriggerEvent"
"name": "Add Trigger Event",
"tooltip": "Adds audio support to when an animation event is fired"
},
"params": [
{
"typeid": "{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}",
"details": {
"name": "AZStd::string"
"name": "Event Name"
}
},
{
"typeid": "{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}",
"details": {
"name": "AZStd::string"
"name": "Trigger Name"
}
},
{
"typeid": "{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}",
"details": {
"name": "AZStd::string"
"name": "Joint Name"
}
}
]
@@ -46,34 +48,36 @@
"key": "ClearTriggerEvents",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke ClearTriggerEvents"
"tooltip": "When signaled, this will invoke Clear Trigger Events"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after ClearTriggerEvents is invoked"
"tooltip": "Signaled after Clear Trigger Events is invoked"
},
"details": {
"name": "ClearTriggerEvents"
"name": "Clear Trigger Events",
"tooltip": "Clears all audio support for animation events"
}
},
{
"key": "RemoveTriggerEvent",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke RemoveTriggerEvent"
"tooltip": "When signaled, this will invoke Remove Trigger Event"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after RemoveTriggerEvent is invoked"
"tooltip": "Signaled after Remove Trigger Event is invoked"
},
"details": {
"name": "RemoveTriggerEvent"
"name": "Remove Trigger Event",
"tooltip": "Removes audio support from an anim event"
},
"params": [
{
"typeid": "{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}",
"details": {
"name": "AZStd::string"
"name": "Event Name"
}
}
]
@@ -0,0 +1,75 @@
{
"entries": [
{
"key": "AreaSystemRequestBus",
"context": "EBusSender",
"variant": "",
"details": {
"name": "Area System",
"category": "Area System"
},
"methods": [
{
"key": "GetInstanceCountInAabb",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Get Instance Count In AABB"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetInstance Count In AABB is invoked"
},
"details": {
"name": "Get Instance Count In AABB"
},
"params": [
{
"typeid": "{A54C2B36-D5B8-46A1-A529-4EBDBD2450E7}",
"details": {
"name": "AABB"
}
}
],
"results": [
{
"typeid": "{D6597933-47CD-4FC8-B911-63F3E2B0993A}",
"details": {
"name": "Instance Count"
}
}
]
},
{
"key": "GetInstancesInAabb",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Get Instances In AABB"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Get Instances In AABB is invoked"
},
"details": {
"name": "Get Instances In AABB"
},
"params": [
{
"typeid": "{A54C2B36-D5B8-46A1-A529-4EBDBD2450E7}",
"details": {
"name": "AABB"
}
}
],
"results": [
{
"typeid": "{F323EFB3-042D-51E9-ABE8-0B55D587CC8E}",
"details": {
"name": "Instances"
}
}
]
}
]
}
]
}
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "AudioEnvironmentComponentRequestBus",
"name": "Audio Environment",
"category": "Audio"
},
"methods": [
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "AudioListenerComponentRequestBus",
"name": "Audio Listener",
"category": "Audio"
},
"methods": [
@@ -85,20 +85,20 @@
"key": "SetListenerEnabled",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke SetListenerEnabled"
"tooltip": "When signaled, this will invoke Set Listener Enabled"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after SetListenerEnabled is invoked"
"tooltip": "Signaled after Set Listener Enabled is invoked"
},
"details": {
"name": "SetListenerEnabled"
"name": "Set Listener Enabled"
},
"params": [
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Enabled"
}
}
]
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "AudioPreloadComponentRequestBus",
"name": "Audio Preload",
"category": "Audio"
},
"methods": [
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "AudioRtpcComponentRequestBus",
"name": "Audio RTPC",
"category": "Audio"
},
"methods": [
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "AudioSwitchComponentRequestBus",
"name": "Audio Switch",
"category": "Audio"
},
"methods": [
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "AudioSystemComponentRequestBus"
"name": "Audio System"
},
"methods": [
{
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "AudioTriggerComponentRequestBus",
"name": "Audio Trigger",
"category": "Audio"
},
"methods": [
@@ -13,20 +13,21 @@
"key": "SetObstructionType",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke SetObstructionType"
"tooltip": "When signaled, this will invoke Set Obstruction Type"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after SetObstructionType is invoked"
"tooltip": "Signaled after Set Obstruction Type is invoked"
},
"details": {
"name": "SetObstructionType"
"name": "Set Obstruction Type"
},
"params": [
{
"typeid": "{43DA906B-7DEF-4CA8-9790-854106D3F983}",
"details": {
"name": "unsigned int"
"name": "Obstruction Type",
"tooltip": "0: Ignore, 1: Single Ray, 2: Multi Ray"
}
}
]
@@ -0,0 +1,36 @@
{
"entries": [
{
"key": "BlastFamilyComponentRequestBus",
"context": "EBusSender",
"variant": "",
"details": {
"name": "Blast Family"
},
"methods": [
{
"key": "Get Actors Data",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Get Actors Data"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Get Actors Data is invoked"
},
"details": {
"name": "Get Actors Data"
},
"results": [
{
"typeid": "{9B2C5410-EFDC-5A61-8B89-0F515B41AB24}",
"details": {
"name": "Actors Data"
}
}
]
}
]
}
]
}
@@ -0,0 +1,315 @@
{
"entries": [
{
"key": "BlastFamilyDamageRequestBus",
"context": "EBusSender",
"variant": "",
"details": {
"name": "Blast Family Damage"
},
"methods": [
{
"key": "Get Family Id",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Get Family Id"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Get Family Id is invoked"
},
"details": {
"name": "Get Family Id"
},
"results": [
{
"typeid": "{6383F1D3-BB27-4E6B-A49A-6409B2059EAA}",
"details": {
"name": "Entity Id",
"tooltip": "Entity Unique Id"
}
}
]
},
{
"key": "Destroy actor",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Destroy actor"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Destroy actor is invoked"
},
"details": {
"name": "Destroy Actor"
}
},
{
"key": "Triangle Damage",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Triangle Damage"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Triangle Damage is invoked"
},
"details": {
"name": "Triangle Damage"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position 0",
"tooltip": "Vertex of the triangle."
}
},
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position 1",
"tooltip": "Vertex of the triangle."
}
},
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position 2",
"tooltip": "Vertex of the triangle."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Damage",
"tooltip": "How much damage to deal."
}
}
]
},
{
"key": "Impact Spread Damage",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Impact Spread Damage"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Impact Spread Damage is invoked"
},
"details": {
"name": "Impact Spread Damage"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position",
"tooltip": "The global position of the damage's hit."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Min Radius",
"tooltip": "Damages all chunks/bonds that are in the range [0, minRadius] with full damage"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Max Radius",
"tooltip": "Damages all chunks/bonds that are in the range [minRadius, maxRadius] with linearly decreasing damage."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Damage",
"tooltip": "How much damage to deal."
}
}
]
},
{
"key": "Stress Damage",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Stress Damage"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Stress Damage is invoked"
},
"details": {
"name": "Stress Damage"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position",
"tooltip": "The global position of the damage's hit."
}
},
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Force",
"tooltip": "The force applied at the position."
}
}
]
},
{
"key": "Shear Damage",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Shear Damage"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Shear Damage is invoked"
},
"details": {
"name": "Shear Damage"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position",
"tooltip": "The global position of the damage's hit."
}
},
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Normal",
"tooltip": "The normal of the damage's hit."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Min Radius",
"tooltip": "Damages all chunks/bonds that are in the range [0, minRadius] with full damage."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Max Radius",
"tooltip": "Damages all chunks/bonds that are in the range [minRadius, maxRadius] with linearly decreasing damage."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Damage",
"tooltip": "How much damage to deal."
}
}
]
},
{
"key": "Capsule Damage",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Capsule Damage"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Capsule Damage is invoked"
},
"details": {
"name": "Capsule Damage"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position 0",
"tooltip": "The global position of one of the capsule's ends."
}
},
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position 1",
"tooltip": "The global position of another of the capsule's ends."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Min Radius",
"tooltip": "Damages all chunks/bonds that are in the range [0, minRadius] with full damage."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Max Radius",
"tooltip": "Damages all chunks/bonds that are in the range [minRadius, maxRadius] with linearly decreasing damage."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Damage",
"tooltip": "How much damage to deal."
}
}
]
},
{
"key": "Radial Damage",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Radial Damage"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Radial Damage is invoked"
},
"details": {
"name": "Radial Damage"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position",
"tooltip": "The global position of the damage's hit."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Min Radius",
"tooltip": "Damages all chunks/bonds that are in the range [0, minRadius] with full damage."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Max Radius",
"tooltip": "Damages all chunks/bonds that are in the range [minRadius, maxRadius] with linearly decreasing damage."
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Damage",
"tooltip": "How much damage to deal."
}
}
]
}
]
}
]
}
@@ -12,20 +12,20 @@
"key": "AddEntity",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke AddEntity"
"tooltip": "When signaled, this will invoke Add Entity"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after AddEntity is invoked"
"tooltip": "Signaled after Add Entity is invoked"
},
"details": {
"name": "AddEntity"
"name": "Add Entity"
},
"params": [
{
"typeid": "{6383F1D3-BB27-4E6B-A49A-6409B2059EAA}",
"details": {
"name": "EntityId",
"name": "Entity Id",
"tooltip": "Entity Unique Id"
}
}
@@ -35,11 +35,11 @@
"key": "RemoveEntity",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke RemoveEntity"
"tooltip": "When signaled, this will invoke Remove Entity"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after RemoveEntity is invoked"
"tooltip": "Signaled after Remove Entity is invoked"
},
"details": {
"name": "RemoveEntity"
@@ -48,7 +48,7 @@
{
"typeid": "{6383F1D3-BB27-4E6B-A49A-6409B2059EAA}",
"details": {
"name": "EntityId",
"name": "Entity Id",
"tooltip": "Entity Unique Id"
}
}
@@ -65,13 +65,15 @@
"tooltip": "Signaled after SetBehaviorType is invoked"
},
"details": {
"name": "SetBehaviorType"
"name": "Set Behavior Type",
"tooltip": "0: Separate, 1: Blended"
},
"params": [
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Behavior Type",
"tooltip": "0: Separate, 1: Blended"
}
}
]
@@ -0,0 +1,212 @@
{
"entries": [
{
"key": "PhysXCharacterControllerRequestBus",
"context": "EBusSender",
"variant": "",
"details": {
"name": "Character Controller"
},
"methods": [
{
"key": "GetHalfForwardExtent",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Get Half Forward Extent"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Get Half Forward Extent is invoked"
},
"details": {
"name": "Get Half Forward Extent"
},
"results": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Half Forward Extent"
}
}
]
},
{
"key": "GetRadius",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Get Radius"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Get Radius is invoked"
},
"details": {
"name": "Get adius"
},
"results": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Radius"
}
}
]
},
{
"key": "SetRadius",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Set Radius"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Set Radius is invoked"
},
"details": {
"name": "Set Radius"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Radius"
}
}
]
},
{
"key": "SetHalfForwardExtent",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Set Half Forward Extent"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Set Half Forward Extent is invoked"
},
"details": {
"name": "Set Half Forward Extent"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Half Forward Extent"
}
}
]
},
{
"key": "SetHeight",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Set Height"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Set Height is invoked"
},
"details": {
"name": "Set Height"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Height"
}
}
]
},
{
"key": "GetHalfSideExtent",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Get Half Side Extent"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Get Half Side Extent is invoked"
},
"details": {
"name": "Get Half Side Extent"
},
"results": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Half Side Extent"
}
}
]
},
{
"key": "GetHeight",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Get Height"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Get Height is invoked"
},
"details": {
"name": "Get Height"
},
"results": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Height"
}
}
]
},
{
"key": "Resize",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Resize"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Resize is invoked"
},
"details": {
"name": "Resize"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Size"
}
}
]
},
{
"key": "SetHalfSideExtent",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke Set Half Side Extent"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after Set Half Side Extent is invoked"
},
"details": {
"name": "Set Half Side Extent"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "Half Side Extent"
}
}
]
}
]
}
]
}
@@ -5,7 +5,7 @@
"context": "EBusSender",
"variant": "",
"details": {
"name": "PolygonPrismShapeComponentRequestBus"
"name": "Polygon Prism"
},
"methods": [
{
@@ -19,7 +19,7 @@
"tooltip": "Signaled after ClearVertices is invoked"
},
"details": {
"name": "ClearVertices"
"name": "Clear Vertices"
}
},
{
@@ -33,19 +33,19 @@
"tooltip": "Signaled after InsertVertex is invoked"
},
"details": {
"name": "InsertVertex"
"name": "Insert Vertex"
},
"params": [
{
"typeid": "{D6597933-47CD-4FC8-B911-63F3E2B0993A}",
"details": {
"name": "AZ::u64"
"name": "Index"
}
},
{
"typeid": "{3D80F623-C85C-4741-90D0-E4E66164E6BF}",
"details": {
"name": "Vector2"
"name": "Vertex"
}
}
],
@@ -53,7 +53,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Inserted"
}
}
]
@@ -69,19 +69,19 @@
"tooltip": "Signaled after UpdateVertex is invoked"
},
"details": {
"name": "UpdateVertex"
"name": "Update Vertex"
},
"params": [
{
"typeid": "{D6597933-47CD-4FC8-B911-63F3E2B0993A}",
"details": {
"name": "AZ::u64"
"name": "Index"
}
},
{
"typeid": "{3D80F623-C85C-4741-90D0-E4E66164E6BF}",
"details": {
"name": "Vector2"
"name": "Vertex"
}
}
],
@@ -89,7 +89,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Updated"
}
}
]
@@ -105,13 +105,13 @@
"tooltip": "Signaled after AddVertex is invoked"
},
"details": {
"name": "AddVertex"
"name": "Add Vertex"
},
"params": [
{
"typeid": "{3D80F623-C85C-4741-90D0-E4E66164E6BF}",
"details": {
"name": "Vector2"
"name": "Vertex"
}
}
]
@@ -127,13 +127,13 @@
"tooltip": "Signaled after GetPolygonPrism is invoked"
},
"details": {
"name": "GetPolygonPrism"
"name": "Get Polygon Prism"
},
"results": [
{
"typeid": "{2E879A16-9143-5862-A5B3-EDED931C60BC}",
"details": {
"name": "AZStd::shared_ptr"
"name": "Polygon Prism"
}
}
]
@@ -149,13 +149,13 @@
"tooltip": "Signaled after SetHeight is invoked"
},
"details": {
"name": "SetHeight"
"name": "Set Height"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "Height"
}
}
]
@@ -171,13 +171,13 @@
"tooltip": "Signaled after RemoveVertex is invoked"
},
"details": {
"name": "RemoveVertex"
"name": "Remove Vertex"
},
"params": [
{
"typeid": "{D6597933-47CD-4FC8-B911-63F3E2B0993A}",
"details": {
"name": "AZ::u64"
"name": "Index"
}
}
],
@@ -185,7 +185,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Removed"
}
}
]
@@ -12,38 +12,39 @@
"key": "GetNormalFromFloats",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetNormalFromFloats"
"tooltip": "When signaled, this will invoke Get Normal From Floats"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetNormalFromFloats is invoked"
"tooltip": "Signaled after Get Normal From Floats is invoked"
},
"details": {
"name": "GetNormalFromFloats"
"name": "Get Normal From Floats"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "X"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "Y"
}
},
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Sample Filter",
"tooltip": "0: Bilinear, 1: Clamp, 2: Exact"
}
},
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Terrain Exists"
}
}
],
@@ -51,7 +52,7 @@
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Vector3"
"name": "Normal"
}
}
]
@@ -60,32 +61,34 @@
"key": "GetNormal",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetNormal"
"tooltip": "When signaled, this will invoke Get Normal"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetNormal is invoked"
"tooltip": "Signaled after Get Normal is invoked"
},
"details": {
"name": "GetNormal"
"name": "Get Normal"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Vector3"
"name": "Position"
}
},
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Sample Filter",
"tooltip": "0: Bilinear, 1: Clamp, 2: Exact"
}
},
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Terrain Exists"
}
}
],
@@ -93,7 +96,7 @@
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Vector3"
"name": "Normal"
}
}
]
@@ -102,20 +105,20 @@
"key": "GetTerrainAabb",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetTerrainAabb"
"tooltip": "When signaled, this will invoke Get Terrain AABB"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetTerrainAabb is invoked"
"tooltip": "Signaled after Get Terrain AABB is invoked"
},
"details": {
"name": "GetTerrainAabb"
"name": "Get Terrain AABB"
},
"results": [
{
"typeid": "{A54C2B36-D5B8-46A1-A529-4EBDBD2450E7}",
"details": {
"name": "Aabb"
"name": "AABB"
}
}
]
@@ -124,32 +127,33 @@
"key": "GetIsHoleFromFloats",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetIsHoleFromFloats"
"tooltip": "When signaled, this will invoke Get Is Hole From Floats"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetIsHoleFromFloats is invoked"
"tooltip": "Signaled after Get Is Hole From Floats is invoked"
},
"details": {
"name": "GetIsHoleFromFloats"
"name": "Get Is Hole From Floats"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "X"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "Y"
}
},
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Sample Filter",
"tooltip": "0: Bilinear, 1: Clamp, 2: Exact"
}
}
],
@@ -157,7 +161,7 @@
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Is Hole"
}
}
]
@@ -166,38 +170,39 @@
"key": "GetHeightFromFloats",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetHeightFromFloats"
"tooltip": "When signaled, this will invoke Get Height From Floats"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetHeightFromFloats is invoked"
"tooltip": "Signaled after Get Height From Floats is invoked"
},
"details": {
"name": "GetHeightFromFloats"
"name": "Get Height From Floats"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "X"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "Y"
}
},
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Sample Filter",
"tooltip": "0: Bilinear, 1: Clamp, 2: Exact"
}
},
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Terrain Exists"
}
}
],
@@ -205,7 +210,7 @@
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "Height"
}
}
]
@@ -221,25 +226,26 @@
"tooltip": "Signaled after GetMaxSurfaceWeight is invoked"
},
"details": {
"name": "GetMaxSurfaceWeight"
"name": "Get Max Surface Weight"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Vector3"
"name": "Position"
}
},
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Sample Filter",
"tooltip": "0: Bilinear, 1: Clamp, 2: Exact"
}
},
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Terrain Exists"
}
}
],
@@ -247,7 +253,7 @@
{
"typeid": "{EA14018E-E853-4BF5-8E13-D83BB99A54CC}",
"details": {
"name": "SurfaceTagWeight"
"name": "Surface Tag Weight"
}
}
]
@@ -256,38 +262,39 @@
"key": "GetMaxSurfaceWeightFromFloats",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetMaxSurfaceWeightFromFloats"
"tooltip": "When signaled, this will invoke Get Max Surface Weight From Floats"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetMaxSurfaceWeightFromFloats is invoked"
"tooltip": "Signaled after Get Max Surface Weight From Floats is invoked"
},
"details": {
"name": "GetMaxSurfaceWeightFromFloats"
"name": "Get Max Surface Weight From Floats"
},
"params": [
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "X"
}
},
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "Y"
}
},
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Sample Filter",
"tooltip": "0: Bilinear, 1: Clamp, 2: Exact"
}
},
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Terrain Exists"
}
}
],
@@ -295,7 +302,7 @@
{
"typeid": "{EA14018E-E853-4BF5-8E13-D83BB99A54CC}",
"details": {
"name": "SurfaceTagWeight"
"name": "Surface Tag Weight"
}
}
]
@@ -304,20 +311,20 @@
"key": "GetTerrainHeightQueryResolution",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetTerrainHeightQueryResolution"
"tooltip": "When signaled, this will invoke Get Terrain Height Query Resolution"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetTerrainHeightQueryResolution is invoked"
"tooltip": "Signaled after Get Terrain Height Query Resolution is invoked"
},
"details": {
"name": "GetTerrainHeightQueryResolution"
"name": "Get Terrain Height Query Resolution"
},
"results": [
{
"typeid": "{3D80F623-C85C-4741-90D0-E4E66164E6BF}",
"details": {
"name": "Vector2"
"name": "Resolution"
}
}
]
@@ -326,32 +333,33 @@
"key": "GetHeight",
"entry": {
"name": "In",
"tooltip": "When signaled, this will invoke GetHeight"
"tooltip": "When signaled, this will invoke Get Height"
},
"exit": {
"name": "Out",
"tooltip": "Signaled after GetHeight is invoked"
"tooltip": "Signaled after Get Height is invoked"
},
"details": {
"name": "GetHeight"
"name": "Get Height"
},
"params": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Vector3"
"name": "Position"
}
},
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "int"
"name": "Sample Filter",
"tooltip": "0: Bilinear, 1: Clamp, 2: Exact"
}
},
{
"typeid": "{A0CA880C-AFE4-43CB-926C-59AC48496112}",
"details": {
"name": "bool"
"name": "Terrain Exists"
}
}
],
@@ -359,7 +367,7 @@
{
"typeid": "{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}",
"details": {
"name": "float"
"name": "Height"
}
}
]
@@ -5,9 +5,26 @@
"context": "Constant",
"variant": "",
"details": {
"name": "ShapeType_Box::Getter",
"category": "Constants"
}
"name": "Get Shape Type: Box",
"category": "Constants/Physics"
},
"methods": [
{
"key": "ShapeType_Box",
"details": {
"name": "Get Shape Type: Box",
"subtitle": "Shape Type"
},
"results": [
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "Shape Type"
}
}
]
}
]
}
]
}
@@ -5,9 +5,26 @@
"context": "Constant",
"variant": "",
"details": {
"name": "ShapeType_Cylinder::Getter",
"category": "Constants"
}
"name": "Get Shape Type: Cylinder",
"category": "Constants/Physics"
},
"methods": [
{
"key": "ShapeType_Cylinder",
"details": {
"name": "Get Shape Type: Cylinder",
"subtitle": "Shape Type"
},
"results": [
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "Shape Type"
}
}
]
}
]
}
]
}
@@ -5,9 +5,26 @@
"context": "Constant",
"variant": "",
"details": {
"name": "ShapeType_PhysicsAsset::Getter",
"category": "Constants"
}
"name": "Get Shape Type: Physics Asset",
"category": "Constants/Physics"
},
"methods": [
{
"key": "ShapeType_PhysicsAsset",
"details": {
"name": "Get Shape Type: Physics Asset",
"subtitle": "Shape Type"
},
"results": [
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "Shape Type"
}
}
]
}
]
}
]
}
@@ -5,9 +5,26 @@
"context": "Constant",
"variant": "",
"details": {
"name": "ShapeType_Sphere::Getter",
"category": "Constants"
}
"name": "Get Shape Type: Sphere",
"category": "Constants/Physics"
},
"methods": [
{
"key": "ShapeType_Sphere",
"details": {
"name": "SGet Shape Type: Sphere",
"subtitle": "Shape Type"
},
"results": [
{
"typeid": "{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}",
"details": {
"name": "Shape Type"
}
}
]
}
]
}
]
}
@@ -0,0 +1,28 @@
{
"entries": [
{
"key": "SlopeAlignmentModifierComponentTypeId",
"context": "Constant",
"variant": "",
"details": {
"name": ""
},
"methods": [
{
"key": "SlopeAlignmentModifierComponentTypeId",
"details": {
"name": "SlopeAlignmentModifierComponentTypeId::Getter"
},
"results": [
{
"typeid": "{E152C105-A133-4D03-BBF8-3D4B2FBA3E2A}",
"details": {
"name": "AZ::Uuid"
}
}
]
}
]
}
]
}
@@ -168,6 +168,14 @@ namespace ScriptCanvasEditor::Nodes
GraphCanvas::NodeTitleRequestBus::Event(graphCanvasEntity->GetId(), &GraphCanvas::NodeTitleRequests::SetTitle, details.m_name);
GraphCanvas::NodeTitleRequestBus::Event(graphCanvasEntity->GetId(), &GraphCanvas::NodeTitleRequests::SetSubTitle, details.m_category);
// Add to the tooltip the C++ class for reference
if (!details.m_tooltip.empty())
{
details.m_tooltip.append("\n");
}
details.m_tooltip.append(AZStd::string::format("[C++] %s", node->GetNodeTypeName().c_str()));
GraphCanvas::NodeRequestBus::Event(graphCanvasEntity->GetId(), &GraphCanvas::NodeRequests::SetTooltip, details.m_tooltip);
if (!nodeConfiguration.m_titlePalette.empty())
@@ -258,17 +266,20 @@ namespace ScriptCanvasEditor::Nodes
graphCanvasEntity->CreateComponent<SlotMappingComponent>(methodNode->GetEntityId());
graphCanvasEntity->CreateComponent<SceneMemberMappingComponent>(methodNode->GetEntityId());
bool isAccessor = false;
switch (methodNode->GetMethodType())
{
case ScriptCanvas::MethodType::Event:
graphCanvasEntity->CreateComponent<EBusSenderNodeDescriptorComponent>();
break;
case ScriptCanvas::MethodType::Member:
case ScriptCanvas::MethodType::Getter:
case ScriptCanvas::MethodType::Setter:
case ScriptCanvas::MethodType::Free:
isAccessor = true;
case ScriptCanvas::MethodType::Member:
graphCanvasEntity->CreateComponent<ClassMethodNodeDescriptorComponent>();
break;
break;
default:
AZ_Error("ScriptCanvas", false, "Invalid method node type, node creation failed. This node needs to be deleted.");
break;
@@ -288,20 +299,56 @@ namespace ScriptCanvasEditor::Nodes
const bool isEBusSender = (methodNode->GetMethodType() == ScriptCanvas::MethodType::Event);
const AZStd::string& className = methodNode->GetMethodClassName();
const AZStd::string& methodName = methodNode->GetName();
AZStd::string methodName = methodNode->GetName();
GraphCanvas::TranslationKey key;
key = isEBusSender ? "EBusSender" : "BehaviorClass";
key << className;
key << "methods" << methodName;
if (isAccessor)
{
AZ::StringFunc::Replace(methodName, "::Getter", "");
AZ::StringFunc::Replace(methodName, "::Setter", "");
}
GraphCanvas::TranslationRequests::Details details;
details.m_name = methodName;
AZStd::string context;
if (methodNode->GetMethodType() == ScriptCanvas::MethodType::Free)
{
context = "Constant";
}
else
{
context = isEBusSender ? "EBusSender" : "BehaviorClass";
}
key << context << className;
GraphCanvas::TranslationRequestBus::BroadcastResult(details, &GraphCanvas::TranslationRequests::GetDetails, key + ".details", details);
GraphCanvas::NodeTitleRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeTitleRequests::SetDetails, details.m_name, details.m_subtitle);
GraphCanvas::NodeRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeRequests::SetTooltip, details.m_tooltip);
// Set the class' name as the subtitle fallback
details.m_subtitle = details.m_name;
// Get the method's text data
GraphCanvas::TranslationRequests::Details methodDetails;
methodDetails.m_name = details.m_name; // fallback
key << "methods" << methodName;
GraphCanvas::TranslationRequestBus::BroadcastResult(methodDetails, &GraphCanvas::TranslationRequests::GetDetails, key + ".details", methodDetails);
if (methodDetails.m_subtitle.empty())
{
methodDetails.m_subtitle = details.m_name;
}
// Add to the tooltip the C++ class for reference
if (!methodDetails.m_tooltip.empty())
{
methodDetails.m_tooltip.append("\n");
}
methodDetails.m_tooltip.append(AZStd::string::format("[C++] %s", className.c_str()));
GraphCanvas::NodeTitleRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeTitleRequests::SetDetails, methodDetails.m_name, methodDetails.m_subtitle);
GraphCanvas::NodeRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeRequests::SetTooltip, methodDetails.m_tooltip);
int paramIndex = 0;
int outputIndex = 0;
@@ -329,8 +376,8 @@ namespace ScriptCanvasEditor::Nodes
if (slot.IsData())
{
key = isEBusSender ? "EBusSender" : "BehaviorClass";
key << className << "methods" << methodName;
key.clear();
key << context << className << "methods" << methodName;
if (slot.IsData() && slot.IsInput())
{
key << "params";
@@ -345,7 +392,7 @@ namespace ScriptCanvasEditor::Nodes
}
if (slot.IsData())
{
{
index++;
}
}
@@ -449,6 +496,13 @@ namespace ScriptCanvasEditor::Nodes
details.m_name = busName;
GraphCanvas::TranslationRequestBus::BroadcastResult(details, &GraphCanvas::TranslationRequests::GetDetails, key, details);
// Add to the tooltip the C++ class for reference
if (!details.m_tooltip.empty())
{
details.m_tooltip.append("\n");
}
details.m_tooltip.append(AZStd::string::format("[C++] %s", busName.c_str()));
GraphCanvas::NodeRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeRequests::SetTooltip, details.m_tooltip);
GraphCanvas::NodeTitleRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeTitleRequests::SetTitle, details.m_name);
GraphCanvas::NodeTitleRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeTitleRequests::SetDefaultPalette, "HandlerWrapperNodeTitlePalette");
@@ -486,6 +540,13 @@ namespace ScriptCanvasEditor::Nodes
// Set the name
graphCanvasEntity->SetName(AZStd::string::format("GC-Node(%s)", decoratedName.c_str()));
// Add to the tooltip the C++ class for reference
if (!details.m_tooltip.empty())
{
details.m_tooltip.append("\n");
}
details.m_tooltip.append(AZStd::string::format("[C++] %s", busName.c_str()));
GraphCanvas::NodeRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeRequests::SetTooltip, details.m_tooltip);
GraphCanvas::NodeTitleRequestBus::Event(graphCanvasNodeId, &GraphCanvas::NodeTitleRequests::SetTitle, details.m_name);
@@ -730,7 +791,7 @@ namespace ScriptCanvasEditor::Nodes
return graphCanvasNodeId;
}
// Function Nodes
// Function Nodes
AZ::EntityId DisplayFunctionNode(AZ::EntityId graphCanvasGraphId, const ScriptCanvas::Nodes::Core::FunctionCallNode* functionNode)
{
return DisplayFunctionNode(graphCanvasGraphId, const_cast<ScriptCanvas::Nodes::Core::FunctionCallNode*>(functionNode));
@@ -94,15 +94,6 @@ namespace ScriptCanvasEditor
SetName(details.m_name.c_str());
SetToolTip(details.m_tooltip.c_str());
if (propertyStatus == ScriptCanvas::PropertyStatus::Getter)
{
SetName(AZStd::string::format("Get %s", GetName().toUtf8().data()).data());
}
else if (propertyStatus == ScriptCanvas::PropertyStatus::Setter)
{
SetName(AZStd::string::format("Set %s", GetName().toUtf8().data()).data());
}
SetTitlePalette("MethodNodeTitlePalette");
}
@@ -160,13 +151,14 @@ namespace ScriptCanvasEditor
: DraggableNodePaletteTreeItem(nodeModelInformation.m_methodName, ScriptCanvasEditor::AssetEditorId)
, m_methodName{ nodeModelInformation.m_methodName }
{
SetToolTip(QString::fromUtf8(nodeModelInformation.m_displayName.data(),
aznumeric_cast<int>(nodeModelInformation.m_displayName.size())));
SetToolTip(QString::fromUtf8(nodeModelInformation.m_toolTip.data(),
aznumeric_cast<int>(nodeModelInformation.m_toolTip.size())));
SetTitlePalette("MethodNodeTitlePalette");
if (!nodeModelInformation.m_displayName.empty())
{
SetName(nodeModelInformation.m_displayName.c_str());
}
}
GraphCanvas::GraphCanvasMimeEvent* GlobalMethodEventPaletteTreeItem::CreateMimeEvent() const
@@ -1049,17 +1049,22 @@ namespace ScriptCanvasEditor
if (auto registerIter = m_registeredNodes.find(nodeIdentifier); registerIter == m_registeredNodes.end())
{
auto methodModelInformation = AZStd::make_unique<GlobalMethodNodeModelInformation>();
methodModelInformation->m_methodName = behaviorMethod.m_name;
methodModelInformation->m_nodeIdentifier = nodeIdentifier;
methodModelInformation->m_methodName = behaviorMethod.m_name;
methodModelInformation->m_titlePaletteOverride = "MethodNodeTitlePalette";
AZStd::string name = behaviorProperty->m_name;
AZ::StringFunc::Replace(name, "::Getter", "");
AZ::StringFunc::Replace(name, "::Setter", "");
GraphCanvas::TranslationKey key;
key << "Constant" << behaviorProperty->m_name.c_str() << "details";
key << "Constant" << name << "details";
GraphCanvas::TranslationRequests::Details details;
GraphCanvas::TranslationRequestBus::BroadcastResult(details, &GraphCanvas::TranslationRequests::GetDetails, key, details);
methodModelInformation->m_displayName = details.m_name;
methodModelInformation->m_toolTip = details.m_tooltip;
methodModelInformation->m_categoryPath = details.m_category;
@@ -58,8 +58,14 @@ namespace ScriptCanvas
AZStd::string resultSlotName(AZStd::string::format("Result: %s", Data::GetName(outputType).data()));
AZStd::string className = outputConfig.config.m_className ? *outputConfig.config.m_className : "";
if (className.empty())
{
className = outputConfig.config.m_prettyClassName;
}
GraphCanvas::TranslationKey key;
key << "BehaviorClass" << *outputConfig.config.m_className << "methods" << *outputConfig.config.m_lookupName << "results" << resultIndex << "details";
key << "BehaviorClass" << className << "methods" << *outputConfig.config.m_lookupName << "results" << resultIndex << "details";
GraphCanvas::TranslationRequests::Details details;
GraphCanvas::TranslationRequestBus::BroadcastResult(details, &GraphCanvas::TranslationRequests::GetDetails, key, details);
@@ -2963,6 +2963,11 @@ namespace ScriptCanvas
}
}
AZStd::string Node::GetNodeTypeName() const
{
return RTTI_GetTypeName();
}
AZStd::string Node::GetDebugName() const
{
if (GetEntityId().IsValid())
@@ -525,6 +525,7 @@ namespace ScriptCanvas
void SignalDeserialized();
virtual AZStd::string GetNodeTypeName() const;
virtual AZStd::string GetDebugName() const;
virtual AZStd::string GetNodeName() const;
@@ -14,6 +14,7 @@
#include <Core/SlotExecutionMap.h>
#include <Libraries/Core/MethodUtility.h>
#include <ScriptCanvas/Utils/BehaviorContextUtils.h>
#include <AzCore/StringFunc/StringFunc.h>
namespace MethodCPP
{
@@ -389,6 +390,9 @@ namespace ScriptCanvas
MethodConfiguration config(*method, MethodType::Free);
config.m_namespaces = &m_namespaces;
config.m_lookupName = &methodName;
config.m_prettyClassName = methodName;
AZ::StringFunc::Replace(config.m_prettyClassName, "::Getter", "");
AZ::StringFunc::Replace(config.m_prettyClassName, "::Setter", "");
InitializeMethod(config);
}
}
@@ -106,8 +106,7 @@ namespace ScriptCanvasEditorTools
Method eventEntry;
const char* eventName = event.first.c_str();
AZStd::string cleanName = GraphCanvas::TranslationKey::Sanitize(eventName);
eventEntry.m_key = cleanName;
eventEntry.m_key = eventName;
prettyName = Helpers::GetStringAttribute(behaviorEBus, AZ::ScriptCanvasAttributes::PrettyName);
eventEntry.m_details.m_name = prettyName.empty() ? eventName : prettyName;
@@ -124,8 +123,22 @@ namespace ScriptCanvasEditorTools
Argument argument;
auto argumentType = method->GetArgument(i)->m_typeId;
// Check the BC for metadata
Helpers::GetTypeNameAndDescription(argumentType, argument.m_details.m_name, argument.m_details.m_tooltip);
auto name = method->GetArgumentName(i);
if (!name->empty())
{
argument.m_details.m_name = *name;
}
auto tooltip = method->GetArgumentToolTip(i);
if (!tooltip->empty())
{
argument.m_details.m_tooltip = *tooltip;
}
argument.m_typeId = argumentType.ToString<AZStd::string>();
eventEntry.m_arguments.push_back(argument);
@@ -136,8 +149,15 @@ namespace ScriptCanvasEditorTools
Argument result;
auto resultType = method->GetResult()->m_typeId;
Helpers::GetTypeNameAndDescription(resultType, result.m_details.m_name, result.m_details.m_tooltip);
auto tooltip = method->GetArgumentToolTip(0);
if (!tooltip->empty())
{
result.m_details.m_tooltip = *tooltip;
}
result.m_typeId = resultType.ToString<AZStd::string>();
eventEntry.m_results.push_back(result);
@@ -269,6 +289,7 @@ namespace ScriptCanvasEditorTools
}
}
// Results (Output Slots)
const AZ::BehaviorParameter* resultParameter = behaviorMethod->HasResult() ? behaviorMethod->GetResult() : nullptr;
if (resultParameter)
{
@@ -291,6 +312,19 @@ namespace ScriptCanvasEditorTools
}
}
// Behavior Class properties
if (!behaviorClass->m_properties.empty())
{
for (const auto& propertyEntry : behaviorClass->m_properties)
{
AZ::BehaviorProperty* behaviorProperty = propertyEntry.second;
if (behaviorProperty)
{
TranslateBehaviorProperty(behaviorProperty, behaviorClass->m_name, "BehaviorClass", &entry);
}
}
}
translationRoot.m_entries.push_back(entry);
AZStd::string fileName = AZStd::string::format("Classes/%s", className.c_str());
@@ -748,53 +782,112 @@ namespace ScriptCanvasEditorTools
const AZ::BehaviorProperty* behaviorProperty = behaviorPropertyEntry->second;
Entry entry;
TranslateBehaviorProperty(behaviorProperty, propertyName, "Constant", &entry);
TranslationFormat translationRoot;
if (behaviorProperty->m_getter && !behaviorProperty->m_setter)
{
Entry entry;
entry.m_context = "Constant";
entry.m_key = propertyName;
auto methodName = behaviorProperty->m_getter->m_name;
entry.m_details.m_name = methodName;
entry.m_details.m_tooltip = behaviorProperty->m_getter->m_debugDescription ? behaviorProperty->m_getter->m_debugDescription : "";
entry.m_details.m_category = "Constants";
translationRoot.m_entries.push_back(entry);
}
else
{
Entry entry;
entry.m_context = "BehaviorMethod";
if (behaviorProperty->m_getter)
{
entry.m_key = propertyName;
auto methodName = behaviorProperty->m_getter->m_name;
entry.m_details.m_name = methodName;
entry.m_details.m_tooltip = behaviorProperty->m_getter->m_debugDescription ? behaviorProperty->m_getter->m_debugDescription : "";
translationRoot.m_entries.push_back(entry);
}
if (behaviorProperty->m_setter)
{
entry.m_key = propertyName;
auto methodName = behaviorProperty->m_setter->m_name;
entry.m_details.m_name = methodName;
entry.m_details.m_tooltip = behaviorProperty->m_setter->m_debugDescription ? behaviorProperty->m_getter->m_debugDescription : "";
translationRoot.m_entries.push_back(entry);
}
}
translationRoot.m_entries.push_back(entry);
AZStd::string fileName = AZStd::string::format("Properties/%s", behaviorProperty->m_name.c_str());
SaveJSONData(fileName, translationRoot);
}
void TranslationGeneration::TranslateMethod(AZ::BehaviorMethod* behaviorMethod, Method& methodEntry)
{
// Arguments (Input Slots)
if (behaviorMethod->GetNumArguments() > 0)
{
for (size_t argIndex = 0; argIndex < behaviorMethod->GetNumArguments(); ++argIndex)
{
const AZ::BehaviorParameter* parameter = behaviorMethod->GetArgument(argIndex);
Argument argument;
AZStd::string argumentKey = parameter->m_typeId.ToString<AZStd::string>();
AZStd::string argumentName = parameter->m_name;
AZStd::string argumentDescription = "";
Helpers::GetTypeNameAndDescription(parameter->m_typeId, argumentName, argumentDescription);
argument.m_typeId = argumentKey;
argument.m_details.m_name = parameter->m_name;
argument.m_details.m_category = "";
argument.m_details.m_tooltip = argumentDescription;
methodEntry.m_arguments.push_back(argument);
}
}
// Results (Output Slots)
const AZ::BehaviorParameter* resultParameter = behaviorMethod->HasResult() ? behaviorMethod->GetResult() : nullptr;
if (resultParameter)
{
Argument result;
AZStd::string resultKey = resultParameter->m_typeId.ToString<AZStd::string>();
AZStd::string resultName = resultParameter->m_name;
AZStd::string resultDescription = "";
Helpers::GetTypeNameAndDescription(resultParameter->m_typeId, resultName, resultDescription);
result.m_typeId = resultKey;
result.m_details.m_name = resultParameter->m_name;
result.m_details.m_tooltip = resultDescription;
methodEntry.m_results.push_back(result);
}
}
void TranslationGeneration::TranslateBehaviorProperty(const AZ::BehaviorProperty* behaviorProperty, const AZStd::string& className, const AZStd::string& context, Entry* entry)
{
if (!behaviorProperty->m_getter && !behaviorProperty->m_setter)
{
return;
}
Entry localEntry;
if (!entry)
{
entry = &localEntry;
}
else if (entry->m_key.empty())
{
entry->m_key = className;
entry->m_context = context;
}
if (behaviorProperty->m_getter)
{
Method method;
auto methodName = behaviorProperty->m_getter->m_name;
method.m_key = behaviorProperty->m_name;
method.m_details.m_name = methodName;
method.m_details.m_tooltip = behaviorProperty->m_getter->m_debugDescription ? behaviorProperty->m_getter->m_debugDescription : "";
TranslateMethod(behaviorProperty->m_getter, method);
entry->m_methods.push_back(method);
}
if (behaviorProperty->m_setter)
{
Method method;
auto methodName = behaviorProperty->m_setter->m_name;
method.m_key = behaviorProperty->m_name;
method.m_details.m_name = methodName;
method.m_details.m_tooltip = behaviorProperty->m_setter->m_debugDescription ? behaviorProperty->m_getter->m_debugDescription : "";
TranslateMethod(behaviorProperty->m_setter, method);
entry->m_methods.push_back(method);
}
}
bool TranslationGeneration::TranslateEBusHandler(const AZ::BehaviorEBus* behaviorEbus, TranslationFormat& translationRoot)
{
// Must be a valid ebus handler
@@ -851,6 +944,22 @@ namespace ScriptCanvasEditorTools
Helpers::GetTypeNameAndDescription(parameter.m_typeId, argumentName, argumentDescription);
}
if (!event.m_metadataParameters.empty() && event.m_metadataParameters.size() > argIndex)
{
auto name = event.m_metadataParameters[argIndex].m_name;
auto tooltip = event.m_metadataParameters[argIndex].m_toolTip;
if (!name.empty())
{
argumentName = name;
}
if (!tooltip.empty())
{
argumentDescription = tooltip;
}
}
argument.m_typeId = argumentKey;
argument.m_details.m_name = argumentName;
argument.m_details.m_tooltip = argumentDescription;
@@ -22,6 +22,7 @@ namespace AZ
class BehaviorContext;
class BehaviorEBus;
class BehaviorMethod;
class BehaviorProperty;
class Entity;
class SerializeContext;
}
@@ -124,11 +125,17 @@ namespace ScriptCanvasEditorTools
//! Generates the translation data for all global properties and methods in the BehaviorContext
void TranslateBehaviorGlobals();
//! Generates the translation data for the specified property in the BehaviorContext
//! Generates the translation data for the specified property in the BehaviorContext (global, by name)
void TranslateBehaviorProperty(const AZStd::string& propertyName);
//! Generates the translation data for the specified property in the BehaviorContext
void TranslateBehaviorProperty(const AZ::BehaviorProperty* behaviorProperty, const AZStd::string& className, const AZStd::string& context, Entry* entry = nullptr);
private:
//! Utility to populate a BehaviorMethod's translation data
void TranslateMethod(AZ::BehaviorMethod* behaviorMethod, Method& methodEntry);
//! Generates the translation data for a BehaviorEBus that has an BehaviorEBusHandler
bool TranslateEBusHandler(const AZ::BehaviorEBus* behaviorEbus, TranslationFormat& translationRoot);