Skip to content

create options (funny version)

Compare
Choose a tag to compare
@Axwabo Axwabo released this 08 Oct 13:44
· 46 commits to main since this release

Additions:

  • slocGameObject.MovementSmoothing field (not read from sloc files)
  • CreateOptions struct
  • ObjectsSource struct with implicit casts from: List<slocGameObject> slocGameObject[] string (path) Stream
  • API::AddTriggerAction(PrimitiveObjectToy, BaseTriggerActionData, ITriggerActionHandler) extension method (throws an exception if the handler is not specified and the action type is unknown)
  • API::AddTriggerAction(GameObject, BaseTriggerActionData, ITriggerActionHandler) extension method (throws an exception when called on an object without the PrimitiveObjectToy component
  • CreateObjects and SpawnObjects overloads with the following signatures:
    • ObjectsSource, CreateOptions, out int
    • ObjectsSource, out int, Vector3, Quaternion
    • ObjectsSource, Vector3, Quaternion
    • ObjectsSource, CreateOptions

Fixes (EXILED only):

  • MER no longer breaks nested scaling
  • AutoLoad now loads objects when the plugin is enabled

Changes (non-breaking):

  • (EXILED only) AutomaticObjectLoader::LoadObjects now uses Paths.Plugins
  • API::AddProperCollider will now always add a MeshCollider with the correct convex property for the object
  • API class has been made partial and split into multiple files for better readability
  • The below methods have been marked obsolete. Use the overloads that take in ObjectsSource as the first argument (no explicit casting required)
    • CreateObjects(IEnumerable<slocGameObject>, Vector3, Quaternion)
    • CreateObjects(IEnumerable<slocGameObject>, out int, Vector3, Quaternion)
    • CreateObjectsFromStream
    • CreateObjectsFromFile
    • SpawnObjects(IEnumerable<slocGameObject>, Vector3, Quaternion)
    • SpawnObjects(IEnumerable<slocGameObject>, out int, Vector3, Quaternion)
    • SpawnObjectsFromStream
    • SpawnObjectsFromFile