BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
BrawlLib.Wii.Models.BoneWeight Class Reference

Public Member Functions

override string ToString ()
 
 BoneWeight ()
 
 BoneWeight (IBoneNode bone)
 
 BoneWeight (IBoneNode bone, float weight)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (BoneWeight b1, BoneWeight b2)
 
static bool operator!= (BoneWeight b1, BoneWeight b2)
 

Public Attributes

IBoneNode Bone
 
float Weight
 

Properties

bool Locked [get, set]
 

Constructor & Destructor Documentation

◆ BoneWeight() [1/3]

BrawlLib.Wii.Models.BoneWeight.BoneWeight ( )
inline
396 : this(null, 1.0f)
397 {
398 }

◆ BoneWeight() [2/3]

BrawlLib.Wii.Models.BoneWeight.BoneWeight ( IBoneNode  bone)
inline
400 : this(bone, 1.0f)
401 {
402 }

◆ BoneWeight() [3/3]

BrawlLib.Wii.Models.BoneWeight.BoneWeight ( IBoneNode  bone,
float  weight 
)
inline
405 {
406 Bone = bone;
407 Weight = weight;
408 }
IBoneNode Bone
Definition: InfluenceManager.cs:387
float Weight
Definition: InfluenceManager.cs:388

Member Function Documentation

◆ Equals()

override bool BrawlLib.Wii.Models.BoneWeight.Equals ( object  obj)
inline
426 {
427 if (obj == null)
428 {
429 return false;
430 }
431
432 if (obj is BoneWeight)
433 {
434 if (Bone == ((BoneWeight) obj).Bone && Math.Abs(Weight - ((BoneWeight) obj).Weight) <
436 {
437 return true;
438 }
439 }
440
441 return false;
442 }
float _weightPrecision
Definition: ColladaImporter.cs:1218
Definition: ColladaAssetDecoder.cs:10
static ImportOptions _importOptions
Definition: ColladaImporter.cs:949
BoneWeight()
Definition: InfluenceManager.cs:396

◆ GetHashCode()

override int BrawlLib.Wii.Models.BoneWeight.GetHashCode ( )
inline
445 {
446 return base.GetHashCode();
447 }

◆ operator!=()

static bool BrawlLib.Wii.Models.BoneWeight.operator!= ( BoneWeight  b1,
BoneWeight  b2 
)
inlinestatic
421 {
422 return !(b1 == b2);
423 }

◆ operator==()

static bool BrawlLib.Wii.Models.BoneWeight.operator== ( BoneWeight  b1,
BoneWeight  b2 
)
inlinestatic
411 {
412 if (ReferenceEquals(b1, b2))
413 {
414 return true;
415 }
416
417 return b1.Equals(b2);
418 }

◆ ToString()

override string BrawlLib.Wii.Models.BoneWeight.ToString ( )
inline
383 {
384 return Bone.Name + " - " + Weight * 100.0f + "%";
385 }

Member Data Documentation

◆ Bone

IBoneNode BrawlLib.Wii.Models.BoneWeight.Bone

◆ Weight

float BrawlLib.Wii.Models.BoneWeight.Weight

Property Documentation

◆ Locked

bool BrawlLib.Wii.Models.BoneWeight.Locked
getset
391 {
392 get => Bone.Locked;
393 set => Bone.Locked = value;
394 }
bool Locked
Definition: IBoneNode.cs:12

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