Page 1 of 1

Direction Converter - Library by BigBang1112

Posted: 05 Nov 2016, 20:47
by BigBang1112
Direction Converter Library
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)
Converts CBlock::CardinalDirections to CEditorPlugin::CardinalDirections.
* CBlock::CardinalDirections direction (CardinalDirections to be converted)

Code: Select all

CBlock::CardinalDirections CEditorPluginToCBlock(CEditorPlugin::CardinalDirections direction)
Converts CEditorPlugin::CardinalDirections to CBlock::CardinalDirections.
* CEditorPlugin::CardinalDirections direction (CardinalDirections to be converted)

To use it:

Code: Select all

#Include "Libs/BigBang1112/DirectionConverter.Script.txt" as [anything u want]
Download here (on my manialink, it's right on the front page) And it's free! :D
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! :D