mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Standalone exported
This commit is contained in:
parent
1e2c4fa6bf
commit
7e1680a7fb
605 changed files with 2169 additions and 3312 deletions
|
@ -10,10 +10,10 @@ namespace RimWorldAnimationStudio
|
|||
public string defName = "Human";
|
||||
public string offset = "(0, 0)";
|
||||
|
||||
public AlienRaceOffset()
|
||||
{
|
||||
public bool ShouldSerializedefName() { return OffsetIsZero() == false; }
|
||||
public bool ShouldSerializeoffset() { return OffsetIsZero() == false; }
|
||||
|
||||
}
|
||||
public AlienRaceOffset() { }
|
||||
|
||||
public AlienRaceOffset(string defName)
|
||||
{
|
||||
|
@ -35,5 +35,11 @@ namespace RimWorldAnimationStudio
|
|||
|
||||
return new Vector3(float.Parse(raceOffsets[0]), 0f, float.Parse(raceOffsets[1]));
|
||||
}
|
||||
|
||||
public bool OffsetIsZero()
|
||||
{
|
||||
Vector3 vec = GetOffset();
|
||||
return Mathf.Approximately(vec.x, 0f) && Mathf.Approximately(vec.y, 0f) && Mathf.Approximately(vec.x, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue