Skip to content

SiraUtil 3.1.3 | No Virtualizer?

Compare
Choose a tag to compare
@Auros Auros released this 24 Jun 17:35
· 30 commits to main since this release
bec273f

What's Changed

  • Support for BSIPA 4.3.0
  • Changed the Saber API to compensate the lack of a virtualizer
  • Add the ability to send raw request body by @kaitlyndotmoe in #56
  • Add response headers to IHttpResponse by @kaitlyndotmoe in #55
  • BSIPA 4.3.0 by @Auros in #57

New Contributors

  • @kaitlyndotmoe made their first contribution in #56

Full Changelog: 3.1.2...3.1.3

Saber API Changes:

From

class MyModelController : SaberModelController
{
    public override void Init(Transform parent, Saber saber)
    {
        // Doing stuff before Init
        base.Init(parent, saber); // Optional
        // Doing stuff after init
    }
}

To

class MyModelController : SaberModelController, IPreSaberModelInit, IPostSaberModelInit // You can use one, both, or neither.
{
    public bool PreInit(Transform parent, Saber saber)
    {
        // Do your pre-init stuff here, if necessary.
        return true; // False if you don't want the original .Init to run
    }

    public void PostInit(Transform parent, Saber saber)
    {
        // Do your post-init stuff here, if necessary.
    }
}