Path: blob/master/SonicMania/Objects/Common/PlatformNode.c
338 views
// ---------------------------------------------------------------------1// RSDK Project: Sonic Mania2// Object Description: PlatformNode Object3// Object Author: Christian Whitehead/Simon Thomley/Hunter Bridges4// Decompiled by: Rubberduckycooly & RMGRich5// ---------------------------------------------------------------------67#include "Game.h"89ObjectPlatformNode *PlatformNode;1011void PlatformNode_Update(void) {}1213void PlatformNode_LateUpdate(void) {}1415void PlatformNode_StaticUpdate(void) {}1617void PlatformNode_Draw(void) {}1819void PlatformNode_Create(void *data) {}2021void PlatformNode_StageLoad(void) {}2223#if GAME_INCLUDE_EDITOR24void PlatformNode_EditorDraw(void)25{26RSDK_THIS(PlatformNode);2728if (showGizmos()) {29RSDK_DRAWING_OVERLAY(true);30EntityPlatformNode *next = RSDK_GET_ENTITY(SceneInfo->entitySlot + 1, PlatformNode);31if (next && next->classID == PlatformNode->classID) {32RSDK.DrawLine(self->position.x, self->position.y, next->position.x, next->position.y, 0xFFFF00, 0xFF, INK_NONE, false);33}34RSDK_DRAWING_OVERLAY(false);35}3637RSDK.SetSpriteAnimation(PlatformNode->aniFrames, 0, &self->animator, false, 0);38RSDK.DrawSprite(&self->animator, NULL, false);39}4041void PlatformNode_EditorLoad(void) { PlatformNode->aniFrames = RSDK.LoadSpriteAnimation("Global/PlaneSwitch.bin", SCOPE_STAGE); }42#endif4344void PlatformNode_Serialize(void) { RSDK_EDITABLE_VAR(PlatformNode, VAR_ENUM, nodeFlag); }454647