BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
BrawlLib.SSBB.ResourceNodes.SCN0FogNode Class Reference
Inheritance diagram for BrawlLib.SSBB.ResourceNodes.SCN0FogNode:
BrawlLib.SSBB.ResourceNodes.SCN0EntryNode BrawlLib.Imaging.IColorSource BrawlLib.Wii.Animations.IKeyframeSource BrawlLib.SSBB.ResourceNodes.ResourceNode

Public Member Functions

bool HasPrimary (int id)
 
ARGBPixel GetPrimaryColor (int id)
 
void SetPrimaryColor (int id, ARGBPixel color)
 
string PrimaryColorName (int id)
 
int ColorCount (int id)
 
ARGBPixel GetColor (int index, int id)
 
void SetColor (int index, int id, ARGBPixel color)
 
bool GetColorConstant (int id)
 
void SetColorConstant (int id, bool constant)
 
void MakeSolid (RGBAPixel color)
 
void MakeList ()
 
override bool OnInitialize ()
 
override int OnCalculateSize (bool force)
 
override void OnRebuild (VoidPtr address, int length, bool force)
 
FogAnimationFrame GetAnimFrame (float index)
 
KeyframeEntry GetKeyframe (int keyFrameMode, int index)
 
void RemoveKeyframe (int keyFrameMode, int index)
 
void SetKeyframe (int keyFrameMode, int index, float value)
 
- Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.SCN0EntryNode
override bool OnInitialize ()
 
override void OnRebuild (VoidPtr address, int length, bool force)
 
IColorSource FindColorMatch (bool constant, int frameCount, int id)
 
int WriteColors (ref int flags, int bit, RGBAPixel solidColor, List< RGBAPixel > colors, bool constant, int frameCount, VoidPtr valueAddr, ref VoidPtr thisMatchAddr, VoidPtr thatMatchAddr, RGBAPixel *dataAddr)
 
void DecodeKeyframes (KeyframeArray kf, VoidPtr dataAddr, int flags, int fixedBit)
 Reads keyframes from an address and sets them in the keyframe array provided. More...
 
- Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
void OnRenamed ()
 
List< ResourceNodeGetChildrenRecursive ()
 Used primarily to get bone lists. Kept for all resource nodes for utility. More...
 
virtual void SignalPropertyChange ()
 
virtual void Dispose ()
 
void SelectChildAtIndex (int index)
 
void UpdateProperties ()
 
void UpdateCurrentControl ()
 
virtual bool MoveUp ()
 
virtual bool MoveDown ()
 
virtual void OnMoved ()
 
virtual void DoMoveDown ()
 
virtual void DoMoveDown (bool select)
 
virtual void DoMoveUp ()
 
virtual void DoMoveUp (bool select)
 
virtual bool AddUp ()
 
virtual bool AddDown ()
 
virtual bool ToParent ()
 
void Populate (int levels=-1)
 
virtual void OnPopulate ()
 
void Initialize (ResourceNode parent, FileMap source)
 
void Initialize (ResourceNode parent, VoidPtr address, int length)
 
void Initialize (ResourceNode parent, DataSource origSource)
 
virtual void Initialize (ResourceNode parent, DataSource origSource, DataSource uncompSource)
 
virtual bool OnInitialize ()
 
virtual void Restore ()
 
virtual void Remove ()
 
virtual void RemoveChild (ResourceNode child)
 
virtual void AddChild (ResourceNode child)
 
virtual void AddChild (ResourceNode child, bool change)
 
virtual void InsertChild (ResourceNode child, int index)
 
virtual void InsertChild (ResourceNode child, bool change, int index)
 
void SetSizeInternal (int size)
 
virtual void Replace (string fileName)
 
virtual void Replace (ResourceNode node)
 
virtual void Replace (string fileName, FileMapProtect prot, FileOptions options)
 
virtual void ReplaceRaw (VoidPtr address, int length)
 
virtual void ReplaceRaw (FileMap map)
 
virtual void Export (string outPath)
 
void Export (FileStream outStream)
 
virtual void ExportUncompressed (string outPath)
 
void ExportUncompressed (FileStream outStream)
 
virtual void Rebuild ()
 
virtual void Rebuild (bool force)
 
virtual void Rebuild (VoidPtr address, int length, bool force)
 
virtual void OnRebuild (VoidPtr address, int length, bool force)
 
virtual int CalculateSize (bool force)
 
virtual int OnCalculateSize (bool force)
 
void Merge ()
 
void Merge (bool forceBuild)
 
ResourceNode FindChildByType (string path, bool searchChildren, params ResourceType[] types)
 
ResourceNode FindChildByType (string path, bool searchChildren, StringComparison compare, params ResourceType[] types)
 
ResourceNode FindChild (string path)
 
ResourceNode FindChild (string path, bool searchChildren)
 
ResourceNode FindChild (string path, StringComparison compare)
 
ResourceNode FindChild (string path, bool searchChildren, StringComparison compare)
 
ResourceNode[] FindChildrenByClassType (string path, Type type)
 
ResourceNode[] FindChildrenByType (string path, ResourceType type)
 
ResourceNode[] FindChildrenByTypeInGroup (string path, ResourceType type, byte group)
 
ResourceNode[] FindChildrenByName (string name)
 
unsafe string FindName (string name)
 
ResourceNode FindEmbeddedIndex (int index)
 
virtual unsafe byte[] MD5 ()
 Find the MD5 checksum of this node's data. If this node doesn't have any data (BRESGroupNode, for example), this method will return null. More...
 
string MD5Str ()
 Get the result of the MD5() function as a string of hexadecimal digits. If MD5() returns null, this method will return an empty string. More...
 
ResourceNode PrevSibling ()
 
ResourceNode NextSibling ()
 
override string ToString ()
 
virtual void SortChildren ()
 
bool HasPrimary (int id)
 
ARGBPixel GetPrimaryColor (int id)
 
void SetPrimaryColor (int id, ARGBPixel color)
 
string PrimaryColorName (int id)
 
int ColorCount (int id)
 
ARGBPixel GetColor (int index, int id)
 
void SetColor (int index, int id, ARGBPixel color)
 
bool GetColorConstant (int id)
 
void SetColorConstant (int id, bool constant)
 

Public Attributes

SCN0FogFlags _flags = (SCN0FogFlags) 0xE0
 
bool _constantColor = true
 
KeyframeCollection _keyframes
 
- Public Attributes inherited from BrawlLib.SSBB.ResourceNodes.SCN0EntryNode
int[] _dataLengths = {0, 0, 0}
 
VoidPtr[] _dataAddrs = new VoidPtr[3]
 
- Public Attributes inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
Form _mainForm
 
string _name
 
string _origPath
 
ResourceNode _parent
 
List< ResourceNode_children = new List<ResourceNode>()
 
int _calcSize
 
EventHandler UpdateControl
 
MoveEventHandler MovedDown
 
ResourceEventHandler Renamed
 
ResourceEventHandler PropertyChanged
 
ResourceEventHandler Replaced
 
ResourceEventHandler Restored
 
ResourceChildEventHandler ChildRemoved
 
bool _isPopulating
 
bool _replaced
 

Static Public Attributes

static bool _generateTangents = true
 

Properties

override ResourceType ResourceFileType [get]
 
int TypeCount [get]
 
bool ConstantColor [get, set]
 
FogType Type [get, set]
 
int FrameCount [get]
 
KeyframeCollection Keyframes [get]
 
KeyframeArray[] KeyArrays [get]
 
List< RGBAPixelColors [get, set]
 
RGBAPixel SolidColor [get, set]
 
- Properties inherited from BrawlLib.SSBB.ResourceNodes.SCN0EntryNode
override bool AllowNullNames [get]
 
SCN0Node Scene [get]
 
int NodeIndex [get]
 
int RealIndex [get]
 
- Properties inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
string FilePath [get]
 
string FileName [get]
 
string DirectoryName [get]
 
ResourceNode RootNode [get]
 
DataSource OriginalSource [get]
 
DataSource UncompressedSource [get]
 
DataSource WorkingSource [get]
 
DataSource WorkingUncompressed [get]
 
virtual bool HasChildren [get]
 
virtual ResourceType ResourceFileType [get]
 
string NodeType [get]
 
virtual string TreePathAbsolute [get]
 
virtual string TreePath [get]
 
virtual int Level [get]
 
virtual int MaxNameLength [get]
 
virtual bool AllowDuplicateNames [get]
 
virtual bool AllowNullNames [get]
 
virtual string Name [get, set]
 
ResourceNode Parent [get, set]
 
List< ResourceNodeChildren [get]
 
int Index [get]
 
int HexIndex [get]
 
bool IsCompressed [get]
 
bool HasChanged [get, set]
 
bool IsBranch [get]
 
bool HasMerged [get]
 
virtual bool AllowSaving [get, set]
 
virtual bool IsDirty [get, set]
 
virtual uint UncompressedSize [get]
 
virtual Type[] AllowedChildTypes [get]
 
virtual string Compression [get, set]
 
virtual bool RetainChildrenOnReplace [get]
 
virtual bool supportsCompression [get]
 
static MD5CryptoServiceProvider MD5Provider [get]
 
- Properties inherited from BrawlLib.Imaging.IColorSource
int TypeCount [get]
 
- Properties inherited from BrawlLib.Wii.Animations.IKeyframeSource
int FrameCount [get]
 
KeyframeArray[] KeyArrays [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.SCN0EntryNode
static void DecodeKeyframes (KeyframeArray kf, VoidPtr dataAddr)
 Reads keyframes at an address, starting with the keyframe array header. More...
 
static int EncodeKeyframes (KeyframeArray kf, VoidPtr dataAddr, VoidPtr offset, ref int flags, int fixedBit)
 
static int EncodeKeyframes (KeyframeArray kf, VoidPtr dataAddr, VoidPtr offset)
 
static int EncodeKeyframes (KeyframeArray kf, VoidPtr dataAddr)
 
- Static Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
static ResourceNode[] FindAllSubNodes (ResourceNode root)
 
static ResourceNode FindNode (ResourceNode root, string path, bool searchChildren, StringComparison compare)
 
- Protected Member Functions inherited from BrawlLib.SSBB.ResourceNodes.SCN0EntryNode
void ReadColors (uint flags, uint bit, ref RGBAPixel solidColor, ref List< RGBAPixel > colors, int frameCount, VoidPtr address, ref bool constant, ref int numEntries)
 
void CalcKeyLen (KeyframeArray keyframes)
 
- Protected Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
void ForceReplacedEvent ()
 
virtual void MergeInternal ()
 
- Events inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
SelectEventHandler SelectChild
 
EventHandler UpdateProps
 
MoveEventHandler MovedUp
 
ResourceEventHandler Disposing
 
ResourceChildEventHandler ChildAdded
 
ResourceChildInsertEventHandler ChildInserted
 

Member Function Documentation

◆ ColorCount()

int BrawlLib.SSBB.ResourceNodes.SCN0FogNode.ColorCount ( int  id)
inline

Implements BrawlLib.Imaging.IColorSource.

50 {
51 return _numEntries == 0 ? 1 : _numEntries;
52 }

◆ GetAnimFrame()

FogAnimationFrame BrawlLib.SSBB.ResourceNodes.SCN0FogNode.GetAnimFrame ( float  index)
inline
333 {
334 FogAnimationFrame frame;
335 float* dPtr = (float*) &frame;
336 for (int x = 0; x < 2; x++)
337 {
339 *dPtr++ = a.GetFrameValue(index);
340 frame.SetBools(x, a.GetKeyframe((int) index) != null);
341 frame.Index = index;
342 }
343
344 //Ignore alpha value; not used
345 if (ConstantColor)
346 {
347 frame.Color = _solidColor;
348 }
349 else
350 {
351 int colorIndex = (int) Math.Truncate(index);
352 Vector3 color = _colors[colorIndex];
353 if (colorIndex + 1 < _colors.Count)
354 {
355 float frac = index - colorIndex;
356 Vector3 interp = _colors[colorIndex + 1];
357 color += (interp - color) * frac;
358 }
359
360 frame.Color = color;
361 }
362
363 frame.Type = Type;
364 return frame;
365 }
bool ConstantColor
Definition: SCN0FogNode.cs:87
KeyframeArray[] KeyArrays
Definition: SCN0FogNode.cs:146
FogType Type
Definition: SCN0FogNode.cs:110
Definition: KeyframeCollection.cs:380
float GetFrameValue(float index, bool returnOutValue=false)
Definition: KeyframeCollection.cs:491
KeyframeEntry GetKeyframe(int index)
Definition: KeyframeCollection.cs:475
Definition: Vector3.cs:40
Definition: AnimationFrame.cs:306
void SetBools(int index, bool val)
Definition: AnimationFrame.cs:319

◆ GetColor()

ARGBPixel BrawlLib.SSBB.ResourceNodes.SCN0FogNode.GetColor ( int  index,
int  id 
)
inline

Implements BrawlLib.Imaging.IColorSource.

55 {
56 return _numEntries != 0 && index < _colors.Count ? (ARGBPixel) _colors[index] : (ARGBPixel) _solidColor;
57 }
Definition: PixelTypes.cs:16

◆ GetColorConstant()

bool BrawlLib.SSBB.ResourceNodes.SCN0FogNode.GetColorConstant ( int  id)
inline

Implements BrawlLib.Imaging.IColorSource.

74 {
75 return ConstantColor;
76 }

◆ GetKeyframe()

KeyframeEntry BrawlLib.SSBB.ResourceNodes.SCN0FogNode.GetKeyframe ( int  keyFrameMode,
int  index 
)
inline
368 {
369 return KeyArrays[keyFrameMode].GetKeyframe(index);
370 }

◆ GetPrimaryColor()

ARGBPixel BrawlLib.SSBB.ResourceNodes.SCN0FogNode.GetPrimaryColor ( int  id)
inline

Implements BrawlLib.Imaging.IColorSource.

32 {
33 return new ARGBPixel();
34 }

◆ HasPrimary()

bool BrawlLib.SSBB.ResourceNodes.SCN0FogNode.HasPrimary ( int  id)
inline

Implements BrawlLib.Imaging.IColorSource.

27 {
28 return false;
29 }

◆ MakeList()

void BrawlLib.SSBB.ResourceNodes.SCN0FogNode.MakeList ( )
inline
207 {
208 _constantColor = false;
209 int entries = Scene.FrameCount;
210 _numEntries = _colors.Count;
211 NumEntries = entries;
212 }
SCN0Node Scene
Definition: SCN0GroupNode.cs:242
bool _constantColor
Definition: SCN0FogNode.cs:19
override int FrameCount
Definition: SCN0Node.cs:72

◆ MakeSolid()

void BrawlLib.SSBB.ResourceNodes.SCN0FogNode.MakeSolid ( RGBAPixel  color)
inline
199 {
200 _numEntries = 0;
201 _constantColor = true;
202 _solidColor = color;
204 }
virtual void SignalPropertyChange()
Definition: ResourceNode.cs:313

◆ OnCalculateSize()

override int BrawlLib.SSBB.ResourceNodes.SCN0FogNode.OnCalculateSize ( bool  force)
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

249 {
250 //If a previous fog node has the same exact color array as this one,
251 //both offsets will point to only the first color array.
252 _match = null;
253
254 //Reset data lengths
255 for (int i = 0; i < 3; i++)
256 {
257 _dataLengths[i] = 0;
258 }
259
260 //Null nodes are only empty headers. No data.
261 if (_name == "<null>")
262 {
263 return SCN0Fog.Size;
264 }
265
266 //Add keyframe array sizes
267 for (int i = 0; i < 2; i++)
268 {
270 }
271
272 _match = FindColorMatch(_constantColor, FrameCount, 0) as SCN0FogNode;
273 if (_match == null && !_constantColor)
274 {
275 _dataLengths[1] += 4 * (FrameCount + 1);
276 }
277
278 return SCN0Fog.Size;
279 }
string _name
Definition: ResourceNode.cs:139
int[] _dataLengths
Definition: SCN0GroupNode.cs:256
void CalcKeyLen(KeyframeArray keyframes)
Definition: SCN0GroupNode.cs:423
IColorSource FindColorMatch(bool constant, int frameCount, int id)
Definition: SCN0GroupNode.cs:314
int FrameCount
Definition: SCN0FogNode.cs:119
Definition: SCN0.cs:422
const int Size
Definition: SCN0.cs:423

◆ OnInitialize()

override bool BrawlLib.SSBB.ResourceNodes.SCN0FogNode.OnInitialize ( )
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

215 {
216 //Read common header
217 base.OnInitialize();
218
219 //Set defaults
220 _colors = new List<RGBAPixel>();
221
222 //Read header values
223 _flags = (SCN0FogFlags) Data->_flags;
224 _type = (FogType) (int) Data->_type;
225
226 //Don't bother reading data if the entry is null
227 if (_name == "<null>")
228 {
229 return false;
230 }
231
232 //Read fog color
234 (uint) _flags,
235 (uint) SCN0FogFlags.FixedColor,
236 ref _solidColor,
237 ref _colors,
239 Data->_color.Address,
240 ref _constantColor,
241 ref _numEntries);
242
243 return false;
244 }
void ReadColors(uint flags, uint bit, ref RGBAPixel solidColor, ref List< RGBAPixel > colors, int frameCount, VoidPtr address, ref bool constant, ref int numEntries)
Definition: SCN0GroupNode.cs:396
SCN0FogFlags _flags
Definition: SCN0FogNode.cs:18
SCN0FogFlags
Definition: SCN0.cs:453
FogType
Definition: Enum.cs:610
VoidPtr Address
Definition: PixelTypes.cs:538
byte _flags
Definition: SCN0.cs:427
RGBAPixel _color
Definition: SCN0.cs:433
bint _type
Definition: SCN0.cs:429

◆ OnRebuild()

override void BrawlLib.SSBB.ResourceNodes.SCN0FogNode.OnRebuild ( VoidPtr  address,
int  length,
bool  force 
)
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

284 {
285 base.OnRebuild(address, length, force);
286
287 _matchAddr = null;
288
289 if (_name == "<null>")
290 {
291 return;
292 }
293
294 SCN0Fog* header = (SCN0Fog*) address;
295
296 int flags = 0;
297
298 for (int i = 0; i < 2; i++)
299 {
301 KeyArrays[i],
302 _dataAddrs[0],
303 header->_start.Address + i * 4,
304 ref flags,
305 (int) SCN0FogFlags.FixedStart + i * 0x20);
306 }
307
309 ref flags,
310 (int) SCN0FogFlags.FixedColor,
311 _solidColor,
312 _colors,
315 header->_color.Address,
316 ref _matchAddr,
317 _match == null ? null : _match._matchAddr,
318 (RGBAPixel*) _dataAddrs[1]);
319
320 _flags = (SCN0FogFlags) flags;
321 header->_flags = (byte) flags;
322 header->_type = (int) _type;
323 }
int WriteColors(ref int flags, int bit, RGBAPixel solidColor, List< RGBAPixel > colors, bool constant, int frameCount, VoidPtr valueAddr, ref VoidPtr thisMatchAddr, VoidPtr thatMatchAddr, RGBAPixel *dataAddr)
Definition: SCN0GroupNode.cs:353
static int EncodeKeyframes(KeyframeArray kf, VoidPtr dataAddr, VoidPtr offset, ref int flags, int fixedBit)
Definition: SCN0GroupNode.cs:465
VoidPtr[] _dataAddrs
Definition: SCN0GroupNode.cs:257
Definition: PixelTypes.cs:327
VoidPtr Address
Definition: BigEndianTypes.cs:128
bfloat _start
Definition: SCN0.cs:431

◆ PrimaryColorName()

string BrawlLib.SSBB.ResourceNodes.SCN0FogNode.PrimaryColorName ( int  id)
inline

Implements BrawlLib.Imaging.IColorSource.

42 {
43 return null;
44 }

◆ RemoveKeyframe()

void BrawlLib.SSBB.ResourceNodes.SCN0FogNode.RemoveKeyframe ( int  keyFrameMode,
int  index 
)
inline
373 {
374 KeyframeEntry k = KeyArrays[keyFrameMode].Remove(index);
375 if (k != null && _generateTangents)
376 {
380 }
381 }
static bool _generateTangents
Definition: SCN0FogNode.cs:330
KeyframeEntry Remove(int index)
Definition: KeyframeCollection.cs:597
Definition: KeyframeCollection.cs:193
KeyframeEntry _prev
Definition: KeyframeCollection.cs:195
float GenerateTangent()
Definition: KeyframeCollection.cs:322
KeyframeEntry _next
Definition: KeyframeCollection.cs:195

◆ SetColor()

void BrawlLib.SSBB.ResourceNodes.SCN0FogNode.SetColor ( int  index,
int  id,
ARGBPixel  color 
)
inline

Implements BrawlLib.Imaging.IColorSource.

60 {
61 if (_numEntries == 0)
62 {
63 _solidColor = color;
64 }
65 else
66 {
67 _colors[index] = color;
68 }
69
71 }

◆ SetColorConstant()

void BrawlLib.SSBB.ResourceNodes.SCN0FogNode.SetColorConstant ( int  id,
bool  constant 
)
inline

Implements BrawlLib.Imaging.IColorSource.

79 {
80 ConstantColor = constant;
81 }

◆ SetKeyframe()

void BrawlLib.SSBB.ResourceNodes.SCN0FogNode.SetKeyframe ( int  keyFrameMode,
int  index,
float  value 
)
inline
384 {
385 KeyframeArray keys = KeyArrays[keyFrameMode];
386 bool exists = keys.GetKeyframe(index) != null;
387 KeyframeEntry k = keys.SetFrameValue(index, value);
388
389 if (!exists && !_generateTangents)
390 {
391 k.GenerateTangent();
392 }
393
395 {
396 k.GenerateTangent();
399 }
400
402 }
KeyframeEntry SetFrameValue(int index, float value, bool parsing=false)
Definition: KeyframeCollection.cs:556

◆ SetPrimaryColor()

void BrawlLib.SSBB.ResourceNodes.SCN0FogNode.SetPrimaryColor ( int  id,
ARGBPixel  color 
)
inline

Implements BrawlLib.Imaging.IColorSource.

37 {
38 }

Member Data Documentation

◆ _constantColor

bool BrawlLib.SSBB.ResourceNodes.SCN0FogNode._constantColor = true

◆ _flags

SCN0FogFlags BrawlLib.SSBB.ResourceNodes.SCN0FogNode._flags = (SCN0FogFlags) 0xE0

◆ _generateTangents

bool BrawlLib.SSBB.ResourceNodes.SCN0FogNode._generateTangents = true
static

◆ _keyframes

KeyframeCollection BrawlLib.SSBB.ResourceNodes.SCN0FogNode._keyframes

Property Documentation

◆ Colors

List<RGBAPixel> BrawlLib.SSBB.ResourceNodes.SCN0FogNode.Colors
getset
150 {
151 get => _colors;
152 set
153 {
154 _colors = value;
156 }
157 }

◆ ConstantColor

bool BrawlLib.SSBB.ResourceNodes.SCN0FogNode.ConstantColor
getset
87 {
88 get => _constantColor;
89 set
90 {
91 if (_constantColor != value)
92 {
93 _constantColor = value;
95 {
96 MakeSolid(new RGBAPixel());
97 }
98 else
99 {
100 MakeList();
101 }
102
104 }
105 }
106 }
void UpdateCurrentControl()
Definition: ResourceNode.cs:482
void MakeList()
Definition: SCN0FogNode.cs:206
void MakeSolid(RGBAPixel color)
Definition: SCN0FogNode.cs:198

◆ FrameCount

int BrawlLib.SSBB.ResourceNodes.SCN0FogNode.FrameCount
get

◆ KeyArrays

KeyframeArray [] BrawlLib.SSBB.ResourceNodes.SCN0FogNode.KeyArrays
get

◆ Keyframes

KeyframeCollection BrawlLib.SSBB.ResourceNodes.SCN0FogNode.Keyframes
get
123 {
124 get
125 {
126 if (_keyframes == null)
127 {
128 _keyframes = new KeyframeCollection(2, Scene == null ? 1 : Scene.FrameCount + (Scene.Loop ? 1 : 0));
129 if (Data != null && _name != "<null>")
130 {
131 for (int i = 0; i < 2; i++)
132 {
134 KeyArrays[i],
135 Data->_start.Address + i * 4,
136 (int) _flags,
137 (int) SCN0FogFlags.FixedStart + i * 0x20);
138 }
139 }
140 }
141
142 return _keyframes;
143 }
144 }
void DecodeKeyframes(KeyframeArray kf, VoidPtr dataAddr, int flags, int fixedBit)
Reads keyframes from an address and sets them in the keyframe array provided.
Definition: SCN0GroupNode.cs:438
KeyframeCollection _keyframes
Definition: SCN0FogNode.cs:20
override bool Loop
Definition: SCN0Node.cs:79
Definition: KeyframeCollection.cs:17

◆ ResourceFileType

override ResourceType BrawlLib.SSBB.ResourceNodes.SCN0FogNode.ResourceFileType
get

◆ SolidColor

RGBAPixel BrawlLib.SSBB.ResourceNodes.SCN0FogNode.SolidColor
getset
161 {
162 get => _solidColor;
163 set
164 {
165 _solidColor = value;
167 }
168 }

◆ Type

FogType BrawlLib.SSBB.ResourceNodes.SCN0FogNode.Type
getset
110 {
111 get => _type;
112 set
113 {
114 _type = value;
116 }
117 }

◆ TypeCount

int BrawlLib.SSBB.ResourceNodes.SCN0FogNode.TypeCount
get

The documentation for this class was generated from the following file: