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

//-------Aliases-------//
private alias 55 : TYPE_BOLTEND

// Function declarations
reserve function BoltEnd_DebugDraw
reserve function BoltEnd_DebugSpawn

// Static Values

// Tables

function BoltEnd_DebugDraw
	DrawSprite(0)
end function


function BoltEnd_DebugSpawn
	CreateTempObject(TypeName[Bolt End], 0, object.xpos, object.ypos)
end function


event ObjectDraw
	DrawSprite(0)
end event


event ObjectStartup
	LoadSpriteSheet("MPZ/Objects.gif")
	SpriteFrame(-14, -4, 28, 8, 144, 83)
	SetTableValue(TypeName[Bolt End], DebugMode_ObjCount, DebugMode_TypesTable)
	SetTableValue(BoltEnd_DebugDraw, DebugMode_ObjCount, DebugMode_DrawTable)
	SetTableValue(BoltEnd_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
