Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6092: Extend IFxDeclaration interface, add first unit tests and reso…
…urces.
- Loading branch information
1 parent
61179c9
commit ef81b49
Showing
8 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
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
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
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,16 @@ | ||
#include "ifx.h" | ||
|
||
#include "RadiantTest.h" | ||
|
||
namespace test | ||
{ | ||
|
||
using FxTest = RadiantTest; | ||
|
||
TEST_F(FxTest, GetFxByName) | ||
{ | ||
EXPECT_TRUE(GlobalDeclarationManager().findDeclaration(decl::Type::Fx, "fx/tdm_flame")); | ||
EXPECT_TRUE(GlobalDeclarationManager().findDeclaration(decl::Type::Fx, "fx/sparks")); | ||
} | ||
|
||
} |
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,37 @@ | ||
fx fx/tdm_flame | ||
{ | ||
bindto "Head" | ||
{ | ||
delay 0 | ||
duration 10 | ||
restart 0 | ||
light "lights/roundfire", 0.2, 0.6, 0.3, 300 | ||
offset 0, 0, 5 | ||
//fadeIn 2 | ||
fadeOut 3 | ||
} | ||
} | ||
|
||
fx fx/sparks | ||
{ | ||
{ | ||
delay 0 | ||
duration 0.5 | ||
restart 0 | ||
light "lights/sparks_sound", 0.7, 0.7, 0.7, 64 | ||
offset 0, 0, 0 | ||
} | ||
|
||
{ | ||
delay 0 | ||
sound "security_camera_spark" | ||
duration 2.5 | ||
|
||
} | ||
{ | ||
delay 0 | ||
duration 2.5 | ||
restart 0 | ||
model "sparks.prt" | ||
} | ||
} |
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