@@ -78,6 +78,10 @@ public static void Append<T>(ref List<T> thelist, T item)
78
78
thelist . Add ( item ) ;
79
79
}
80
80
81
+ /// <summary>
82
+ /// Utility function: add an item to a dictionary.
83
+ /// If the dictionary is null, create it.
84
+ /// </summary>
81
85
public static void Add < K , V > ( ref Dictionary < K , V > thedict , K key , V value )
82
86
{
83
87
if ( thedict == null ) {
@@ -86,6 +90,11 @@ public static void Add<K,V>(ref Dictionary<K,V> thedict, K key, V value)
86
90
thedict . Add ( key , value ) ;
87
91
}
88
92
93
+ /// <summary>
94
+ /// Utility function: get an entry in the dictionary, or create it,
95
+ /// and return it.
96
+ /// The dictionary must not be null.
97
+ /// </summary>
89
98
public static V GetOrCreate < K , V > ( Dictionary < K , V > thedict , K key ) where V : new ( )
90
99
{
91
100
V value ;
@@ -99,7 +108,7 @@ public static void Add<K,V>(ref Dictionary<K,V> thedict, K key, V value)
99
108
/// <summary>
100
109
/// Utility function: append an item to a list in a dictionary of lists.
101
110
/// Create all the entries needed to append to the list.
102
- /// The dictionary must not be null.
111
+ /// The dictionary will be allocated if it's null.
103
112
/// </summary>
104
113
public static void Append < K , V > ( ref Dictionary < K , List < V > > thedict , K key , V item )
105
114
{
@@ -109,6 +118,11 @@ public static void Append<K, V>(ref Dictionary<K, List<V>> thedict, K key, V ite
109
118
GetOrCreate ( thedict , key ) . Add ( item ) ;
110
119
}
111
120
121
+ /// <summary>
122
+ /// Utility function: append an item to a list in a dictionary of lists.
123
+ /// Create all the entries needed to append to the list.
124
+ /// The dictionary must not be null.
125
+ /// </summary>
112
126
public static void Append < K , V > ( Dictionary < K , List < V > > thedict , K key , V item )
113
127
{
114
128
GetOrCreate ( thedict , key ) . Add ( item ) ;
@@ -117,7 +131,7 @@ public static void Append<K, V>(Dictionary<K, List<V>> thedict, K key, V item)
117
131
/// <summary>
118
132
/// Utility function: append an item to a list in a 2-level dictionary of lists.
119
133
/// Create all the entries needed to append to the list.
120
- /// The dictionary must not be null.
134
+ /// The dictionary will be allocated if it's null.
121
135
/// </summary>
122
136
public static void Append < K1 , K2 , V > ( ref Dictionary < K1 , Dictionary < K2 , List < V > > > thedict , K1 key1 , K2 key2 , V item )
123
137
{
@@ -138,6 +152,12 @@ public FbxPrefabException(string message) : base(message) { }
138
152
public FbxPrefabException ( string message , System . Exception inner ) : base ( message , inner ) { }
139
153
}
140
154
155
+ /// <summary>
156
+ /// Representation of a hierarchy with components.
157
+ ///
158
+ /// Converts to/from json for serialization, or initialize it from a
159
+ /// Unity Transform.
160
+ /// </summary>
141
161
public class FbxRepresentation
142
162
{
143
163
/// <summary>
0 commit comments