Direction Converter - Library by BigBang1112

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

Direction Converter - Library by BigBang1112

Post 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
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 3 guests