Skip to content

Release 0.6.3 #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.6.3] - 2024-11-02

**Fix**:
- Fixed the compilation issues of *ObservableDictionary*

## [0.6.2] - 2024-11-02

- Added the *ObservableUpdateFlag* to help performance when updating subscribers to the *ObservableDictionary*. By default is set *ObservableUpdateFlag.KeyUpdateOnly*
Expand Down
11 changes: 0 additions & 11 deletions Runtime/ObservableDictionary.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using NUnit.Framework;
using System;
using System.Collections;
using System.Collections.Generic;
Expand All @@ -9,16 +8,6 @@

namespace GameLovers
{
public enum ObservableUpdateFlag
{
// Updates all subsribers that didn't specify the key index
UpdateOnly,
// Updates only for subscripers that added their key index
KeyUpdateOnly,
// Updates all types of subscribers [This has a high performance cost]
Both
}

/// <summary>
/// A simple dictionary with the possibility to observe changes to it's elements defined <see cref="ObservableUpdateType"/> rules
/// </summary>
Expand Down
10 changes: 10 additions & 0 deletions Runtime/ObservableUpdateType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ public enum ObservableUpdateType
Updated,
Removed
}

public enum ObservableUpdateFlag
{
// Updates all subsribers that didn't specify the key index
UpdateOnly,
// Updates only for subscripers that added their key index
KeyUpdateOnly,
// Updates all types of subscribers [This has a high performance cost]
Both
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.gamelovers.dataextensions",
"displayName": "Unity Data Type Extensions",
"author": "Miguel Tomas",
"version": "0.6.2",
"version": "0.6.3",
"unity": "2022.3",
"license": "MIT",
"description": "This package extends various sets of data types to be used in any type of data containers or persistent serializable data",
Expand Down
Loading