forked from CodenameCrew/CodenameEngine
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FNF-CNE-Devs:main' into cne-pr
- Loading branch information
Showing
6 changed files
with
166 additions
and
69 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
source/funkin/backend/scripting/events/CharacterNodeEvent.hx
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,21 @@ | ||
package funkin.backend.scripting.events; | ||
|
||
import funkin.game.Character; | ||
import haxe.xml.Access; | ||
|
||
final class CharacterNodeEvent extends CancellableEvent { | ||
/** | ||
* The character instance | ||
*/ | ||
public var character:Character; | ||
|
||
/** | ||
* The node which is currently being parsed | ||
*/ | ||
public var node:Access; | ||
|
||
/** | ||
* The name of the node, quicker access than e.node.name | ||
*/ | ||
public var name:String; | ||
} |
16 changes: 16 additions & 0 deletions
16
source/funkin/backend/scripting/events/CharacterXMLEvent.hx
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 @@ | ||
package funkin.backend.scripting.events; | ||
|
||
import funkin.game.Character; | ||
import haxe.xml.Access; | ||
|
||
final class CharacterXMLEvent extends CancellableEvent { | ||
/** | ||
* The character instance | ||
*/ | ||
public var character:Character; | ||
|
||
/** | ||
* The xml | ||
*/ | ||
public var xml:Access; | ||
} |
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 |
---|---|---|
|
@@ -62,6 +62,7 @@ class AudioSwitchFix { | |
} | ||
} | ||
|
||
@:dox(hide) | ||
typedef PlayingSound = { | ||
var sound:FlxSound; | ||
var time:Float; | ||
|
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
Oops, something went wrong.