-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from Robert-N7/develop
Develop
- Loading branch information
Showing
81 changed files
with
1,458 additions
and
635 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
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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
class Clr0Animation: | ||
from abmatt.brres.lib.node import Node | ||
|
||
def __init__(self, name, framecount=1, loop=True): | ||
|
||
class Clr0Animation(Node): | ||
|
||
def __init__(self, name, parent): | ||
self.name = name | ||
self.framecount = framecount | ||
self.loop=loop | ||
self.framecount = parent.framecount | ||
self.loop = parent.loop | ||
self.flags = [False] * 16 | ||
self.is_constant = [False] * 16 | ||
self.entry_masks = [] | ||
self.entries = [] # can be fixed (if constant) otherwise key frame list | ||
self.entries = [] # can be fixed (if constant) otherwise key frame list | ||
super().__init__(name, parent) | ||
|
||
def __eq__(self, other): | ||
return super().__eq__(other) and self.framecount == other.framecount and self.loop == other.loop \ | ||
and self.flags == other.flags and self.is_constant == other.is_constant \ | ||
and self.entry_masks == other.entry_masks and self.entries == other.entries |
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.