// ----------------------------------
// RSDK Project: Sonic 1/Sonic 2
// Script Description: Plat Conveyor Object
// Script Author: Christan Whitehead/Simon Thomley
// Unpacked by Rubberduckycooly's script unpacker
// ----------------------------------

//-------Aliases-------//
private alias 83 : TYPE_PLATCONVEYOR

// Function declarations
reserve function PlatConveyor_DebugDraw
reserve function PlatConveyor_DebugSpawn

// Static Values

// Tables

function PlatConveyor_DebugDraw
	DrawSprite(0)
end function


function PlatConveyor_DebugSpawn
	CreateTempObject(TypeName[Plat Conveyor], 0, object.xpos, object.ypos)
end function


event ObjectDraw
	DrawSprite(object.propertyValue)
end event


event ObjectStartup
	LoadSpriteSheet("MPZ/Objects.gif")
	SpriteFrame(-2, -8, 4, 16, 173, 53)
	SpriteFrame(-2, -8, 4, 16, 178, 53)
	SetTableValue(TypeName[Plat Conveyor], DebugMode_ObjCount, DebugMode_TypesTable)
	SetTableValue(PlatConveyor_DebugDraw, DebugMode_ObjCount, DebugMode_DrawTable)
	SetTableValue(PlatConveyor_DebugSpawn, DebugMode_ObjCount, DebugMode_SpawnTable)
	DebugMode_ObjCount++
end event

event RSDKDraw
	DrawSprite(0)
end event

event RSDKLoad
	LoadSpriteSheet("Global/Display.gif")
	SpriteFrame(-16, -16, 32, 32, 1, 143)
end event
