@@ -126,6 +126,25 @@ public interface IConVar<T> : IConVar {
126126 /// </summary>
127127 T DefaultValue { get ; set ; }
128128
129+ /// <summary>
130+ /// Whether the convar has a default value.
131+ /// </summary>
132+ bool HasDefaultValue { get ; }
133+
134+ /// <summary>
135+ /// Whether the convar has a min value.
136+ /// </summary>
137+ bool HasMinValue { get ; }
138+
139+ /// <summary>
140+ /// Whether the convar has a max value.
141+ /// </summary>
142+ bool HasMaxValue { get ; }
143+
144+ /// <summary>
145+ /// The flags of the convar.
146+ /// </summary>
147+ ConvarFlags Flags { get ; set ; }
129148
130149 /// <summary>
131150 /// Internally set the value of the convar.
@@ -134,6 +153,13 @@ public interface IConVar<T> : IConVar {
134153 /// <param name="value">The value to set.</param>
135154 void SetInternal ( T value ) ;
136155
156+ /// <summary>
157+ /// Query the value of the convar from specified client.
158+ /// </summary>
159+ /// <param name="clientId"></param>
160+ /// <param name="callback">The action to execute with the value.</param>
161+ void QueryClient ( int clientId , Action < string > callback ) ;
162+
137163 /// <summary>
138164 /// Replicate the value of the convar to specified client.
139165 /// </summary>
@@ -160,4 +186,6 @@ public interface IConVar<T> : IConVar {
160186 /// <param name="defaultValue">The default value of the convar.</param>
161187 /// <returns>True if the default value is found, false otherwise.</returns>
162188 bool TryGetDefaultValue ( out T defaultValue ) ;
189+
190+
163191}
0 commit comments