Skip to content

Commit 0ceeec5

Browse files
authored
Added example
1 parent 8a31beb commit 0ceeec5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

ReactivePropertyConverter.cs

+27
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,40 @@
88
//
99
// ********************************************************************
1010

11+
// ReSharper disable CheckNamespace
12+
1113
using System;
1214
using RimuruDev;
1315
using UnityEngine;
1416
using Newtonsoft.Json;
1517

1618
namespace AbyssMoth
1719
{
20+
/// <summary>
21+
/// Dependency:
22+
/// <code>
23+
///{
24+
/// "dependencies": {
25+
/// "com.unity.nuget.newtonsoft-json": "3.2.1",
26+
/// }
27+
///}
28+
/// </code>
29+
/// <example>
30+
/// <code>
31+
/// [Serializable]
32+
/// public class HalloweenUserProgress
33+
/// {
34+
/// [JsonProperty("Currency")]
35+
/// [JsonConverter(typeof(ReactivePropertyConverter))]
36+
/// public ReactiveProperty-int> Currency = new();
37+
///
38+
/// [JsonProperty("LevelProgress")]
39+
/// [JsonConverter(typeof(ReactivePropertyConverter))]
40+
/// public ReactiveProperty-List-LevelProgress>> LevelProgress = new();
41+
/// }
42+
/// </code>
43+
/// </example>
44+
/// </summary>
1845
[HelpURL("https://github.com/RimuruDev/Unity-ReactivePropertyConverter.git")]
1946
public sealed class ReactivePropertyConverter : JsonConverter
2047
{

0 commit comments

Comments
 (0)