Standalone exported

This commit is contained in:
AbstractConcept 2022-09-25 23:10:41 -05:00
parent 1e2c4fa6bf
commit 7e1680a7fb
605 changed files with 2169 additions and 3312 deletions

View file

@ -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);
}
}
}