Skip to content

Commit

Permalink
Merge pull request #3 from znyb/master
Browse files Browse the repository at this point in the history
Some modifications to make UnitySerializedDictionary more easy to use,
Fix #2
  • Loading branch information
Prastiwar authored Feb 25, 2021
2 parents 74059ab + 0f22dc1 commit 34396a5
Show file tree
Hide file tree
Showing 13 changed files with 1,754 additions and 481 deletions.
67 changes: 35 additions & 32 deletions CommonUDictionaries.cs
Original file line number Diff line number Diff line change
@@ -1,50 +1,53 @@
using System;
using UnityEngine;

/// <summary> Common UDictionary wrappers </summary>
namespace UnityEngine.Collections.Generic
{
/// <summary> Common UDictionary wrappers </summary>

// --------------------------------------------- String... --------------------------------------------- //
// --------------------------------------------- String... --------------------------------------------- //

[Serializable]
public class UDictionaryStringString : UDictionary<string, string> { }
[Serializable]
public class UDictionaryStringString : UDictionary<string, string> { }

[Serializable]
public class UDictionaryStringInt : UDictionary<string, int> { }
[Serializable]
public class UDictionaryStringInt : UDictionary<string, int> { }

[Serializable]
public class UDictionaryStringBool : UDictionary<string, bool> { }
[Serializable]
public class UDictionaryStringBool : UDictionary<string, bool> { }

[Serializable]
public class UDictionaryStringFloat : UDictionary<string, float> { }
[Serializable]
public class UDictionaryStringFloat : UDictionary<string, float> { }

[Serializable]
public class UDictionaryStringDouble : UDictionary<string, double> { }
[Serializable]
public class UDictionaryStringDouble : UDictionary<string, double> { }

[Serializable]
public class UDictionaryStringColor : UDictionary<string, Color> { }
[Serializable]
public class UDictionaryStringColor : UDictionary<string, Color> { }

[Serializable]
public class UDictionaryStringObject : UDictionary<string, GameObject> { }
[Serializable]
public class UDictionaryStringObject : UDictionary<string, GameObject> { }

// --------------------------------------------- Int... --------------------------------------------- //
// --------------------------------------------- Int... --------------------------------------------- //

[Serializable]
public class UDictionaryIntInt : UDictionary<int, int> { }
[Serializable]
public class UDictionaryIntInt : UDictionary<int, int> { }

[Serializable]
public class UDictionaryIntBool : UDictionary<int, bool> { }
[Serializable]
public class UDictionaryIntBool : UDictionary<int, bool> { }

[Serializable]
public class UDictionaryIntString : UDictionary<int, string> { }
[Serializable]
public class UDictionaryIntString : UDictionary<int, string> { }

[Serializable]
public class UDictionaryIntFloat : UDictionary<int, float> { }
[Serializable]
public class UDictionaryIntFloat : UDictionary<int, float> { }

[Serializable]
public class UDictionaryIntDouble : UDictionary<int, double> { }
[Serializable]
public class UDictionaryIntDouble : UDictionary<int, double> { }

[Serializable]
public class UDictionaryIntColor : UDictionary<int, Color> { }
[Serializable]
public class UDictionaryIntColor : UDictionary<int, Color> { }

[Serializable]
public class UDictionaryIntObject : UDictionary<int, GameObject> { }
[Serializable]
public class UDictionaryIntObject : UDictionary<int, GameObject> { }

}
26 changes: 0 additions & 26 deletions Editor/CommonUDictionaries.cs

This file was deleted.

Loading

0 comments on commit 34396a5

Please sign in to comment.