by BigBang1112
Hello there!
If you went to a situation when you want to place the block facing same direction as the other, you needed to convert the CardinalDirections from CBlock to CEditorPlugin. This library solves the problem easily.
Functions:
Code: Select all
CEditorPlugin::CardinalDirections CBlockToCEditorPlugin(CBlock::CardinalDirections direction)
* CBlock::CardinalDirections direction (CardinalDirections to be converted)
Code: Select all
CBlock::CardinalDirections CEditorPluginToCBlock(CEditorPlugin::CardinalDirections direction)
* CEditorPlugin::CardinalDirections direction (CardinalDirections to be converted)
To use it:
Code: Select all
#Include "Libs/BigBang1112/DirectionConverter.Script.txt" as [anything u want]

If you have any problems using GBX for library, let me know and I'll upload the text file.
Because it's a very simple library and probably has been done yet, you can use this library without any restrictions. No need to credit me, it's made only for your help.

Hope I can help you someday!
