Skip to content

GTFO-API 0.1.1

Compare
Choose a tag to compare
@Kasuromi Kasuromi released this 04 Nov 14:01
· 51 commits to main since this release
adc3880

Changelog

  • AssetAPI Extensions (#12) (@Kasuromi)
    • AssetAPI.CloneAsset(string assetName, string copyName) has been renamed to InstantiateAsset
    • AssetAPI.InstantiateAsset supports generic types to return the asset as the type needed
    • Added AssetAPI.ContainsAsset(string assetName) to check if an asset is registered in the AssetAPI
    • Added AssetAPI.TryInstantiateAsset
  • Gear Component Prefab Support (#15) (@mccad00)
    • Added PrefabAPI.CreateGearComponent(string assetName)
  • Interface Wrappings & Il2CppAPI (#16) (@Kasuromi)
    • Interface wrappings for iTerminalItem, iResourcePackReceiver, iPlayerPingTarget & iWardenObjectiveItem
    • Il2CppAPI.InjectWithInterface<T>() allows for injecting your type which extends these interface wrappings into Il2Cpp
  • GameData API (#17) (@Kasuromi)
    • Moved entrypoint for setting the rundown id to 1
    • Added GameDataAPI.OnGameDataInitialized which can be subscribed to when the game data is fully loaded and the rundown id set to 1
  • Syringe Effect Support (#13) (@Kasuromi)
    • Added Il2CppAPI.GetIl2CppMethod to obtain a delegate or a function pointer for an Il2Cpp method
    • Added PrefabAPI.CreateSyringe(uint itemPersistentId, Action<SyringeFirstPerson> onUse) which can be used to attach a custom OnUse action for any syringe with the persistent id provided
    • Added NativePatch with support for jumping from Native to Managed code at any provided position (EXPERIMENTAL, expected to change)
  • Item Wrapper & Consumable Extension (#18) (@Kasuromi)
    • Wraps GTFO's Item class into ItemWrapped with overridden methods and support for calling the original base method in Item
    • Discards OnPreDespawn and OnPostDespawn in ConsumableInstance in favor of the new Item wrappings

Issues Resolved

Syringe Support (#8) (@Panthr75) - Resolved by @Kasuromi
Implement instantiate to game object from AssetAPI (#11) (@Dexusan) - Resolved by @Kasuromi
Custom Gear Part Support (#14) (@Kasuromi) - Resolved by @mccad00

Contributors

@mccad00 & @Kasuromi - Code contribution & resolving issues
@Flowaria & @Dexusan - Pull Request reviews regarding this release
@Dexusan, @Panthr75 & @Kasuromi - Opening issues, resolved with this release