-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tr2/objects: port Object_SetupGeneralObjects
- Loading branch information
Showing
105 changed files
with
1,047 additions
and
127 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "game/objects/effects/blood.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void Blood_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_BLOOD); | ||
obj->control = Blood_Control; | ||
obj->semi_transparent = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void Blood_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "game/objects/effects/body_part.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void BodyPart_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_BODY_PART); | ||
obj->control = BodyPart_Control; | ||
obj->loaded = 1; | ||
obj->mesh_count = 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void BodyPart_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "game/objects/effects/bubbles.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void Bubbles_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_BUBBLES); | ||
obj->control = Bubbles_Control; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void Bubbles_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "game/objects/effects/explosion.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void Explosion_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_EXPLOSION); | ||
obj->control = Explosion_Control; | ||
obj->semi_transparent = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void Explosion_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "game/objects/effects/glow.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void Glow_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_GLOW); | ||
obj->control = Glow_Control; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void Glow_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "game/objects/effects/gun_flash.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void GunFlash_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_GUN_FLASH); | ||
obj->control = GunFlash_Control; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void GunFlash_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "game/objects/effects/missile_flame.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void MissileFlame_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_MISSILE_FLAME); | ||
obj->control = Missile_Control; | ||
obj->semi_transparent = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void MissileFlame_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "game/objects/effects/missile_harpoon.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void MissileHarpoon_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_MISSILE_HARPOON); | ||
obj->control = Missile_Control; | ||
obj->save_position = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void MissileHarpoon_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "game/objects/effects/missile_knife.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void MissileKnife_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_MISSILE_KNIFE); | ||
obj->control = Missile_Control; | ||
obj->save_position = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void MissileKnife_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "game/objects/effects/ricochet.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void Ricochet_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_RICOCHET); | ||
obj->control = Richochet_Control; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void Ricochet_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "game/objects/effects/snow_sprite.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void SnowSprite_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_SNOW_SPRITE); | ||
obj->control = SnowSprite_Control; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void SnowSprite_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "game/objects/effects/splash.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void Splash_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_SPLASH); | ||
obj->control = Splash_Control; | ||
obj->semi_transparent = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void Splash_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
|
||
#include <stdint.h> | ||
|
||
void Twinkle_Setup(void); | ||
|
||
void __cdecl Twinkle_Control(int16_t fx_num); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "game/objects/effects/water_sprite.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void WaterSprite_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_WATER_SPRITE); | ||
obj->control = WaterSprite_Control; | ||
obj->semi_transparent = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void WaterSprite_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "game/objects/effects/waterfall.h" | ||
|
||
#include "game/objects/common.h" | ||
#include "global/funcs.h" | ||
|
||
void Waterfall_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_WATERFALL); | ||
obj->control = Waterfall_Control; | ||
obj->draw_routine = Object_DrawDummyItem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void Waterfall_Setup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "game/objects/general/alarm_sound.h" | ||
|
||
#include "global/funcs.h" | ||
|
||
void AlarmSound_Setup(void) | ||
{ | ||
OBJECT *const obj = Object_GetObject(O_ALARM_SOUND); | ||
obj->control = AlarmSound_Control; | ||
obj->save_flags = 1; | ||
} |
Oops, something went wrong.