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

//-------Aliases-------//
private alias 59 : TYPE_SMALLCOG

// Function declarations
reserve function SmallCog_DebugDraw
reserve function SmallCog_DebugSpawn

// Static Values

// Tables

function SmallCog_DebugDraw
	DrawSprite(0)
end function


function SmallCog_DebugSpawn
	CreateTempObject(TypeName[Small Cog], 0, object.xpos, object.ypos)
end function


event ObjectMain
end event


event ObjectDraw
	DrawSprite(MPZSetup_value34)
end event


event ObjectStartup
	LoadSpriteSheet("MPZ/Objects.gif")
	SpriteFrame(-12, -12, 24, 24, 133, 126)
	SpriteFrame(-12, -12, 24, 24, 158, 126)
	SpriteFrame(-12, -12, 24, 24, 158, 126)
	SpriteFrame(-12, -12, 24, 24, 183, 126)
	SetTableValue(TypeName[Small Cog], DebugMode_ObjCount, DebugMode_TypesTable)
	SetTableValue(SmallCog_DebugDraw, DebugMode_ObjCount, DebugMode_DrawTable)
	SetTableValue(SmallCog_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
