Releases: Xerren09/ContentWarningShopAPI
V1.2
- DLLs are now correctly versioned
- Added default value constructor to SynchronisedMetadata
- SynchronisedMetadata now implements IDisposable
- Disconnect() is now obsolete but calls Dispose()
- Added LobbyHosted event to SynchronisedMetadata
- Invoked when the local player successfully creates a new lobby
- Use this to overwrite any remnant settings from a previous lobby
ShopItem
now correctly uses localised item names whenever available- Items registered to the shop via the mod will now be considered when spawning random items in the Old World
- For an item to be eligible,
spawnable
must be true anditemType
must beItem.ItemType.Tool
- For an item to be eligible,
Important
Some ShopLocalisation
consts were changed to static fields. Mods compiled against v1.2+ will not work with lower versions, but mods compiled against previous versions will have no issues.
See the readme for setup and usage instructions.
V1.1.0
Fixed an issue where all synchronisation broke after leaving a lobby and joining a new one in the same session.
Added UpdateItemPrice
method. Use this to update the price of items anytime during a game, and they'll be synchronised between players.
- This will also reload the store, so the current cart gets reset.
Removed mistakenly marked static
fields from SynchronisedMetadata<T>
. These are now instance fields:
public static bool InLobby -> public bool InLobby
public static bool IsHost -> public bool IsHost
See the readme for setup and usage instructions.
v1.0.2
Fixes an issue where item tooltips weren't correctly parsed if the default fallback was set.
See the readme for setup and usage instructions.
v1.0.1
This release contains a small fix to the tooltip localisation patch (Item.GetTootipData
) for when tooltips are set to null. This is a bug with unity, as if you set the tooltips in the editor, they are not serialised correctly.
To further mitigate this, added an extension method to items (SetDefaultTooltips
) that you can use to set initial default tooltips.
See the readme for setup and usage instructions.
v1.0.0
First release of the mod. See the readme for setup and usage instructions.