@@ -62,7 +62,7 @@ public int RemainingCooldown
6262 get
6363 {
6464 Int64 now = ( Int64 ) DateTime . UtcNow . ToUniversalTime ( ) . Subtract ( new DateTime ( 1970 , 1 , 1 ) ) . TotalMilliseconds ;
65- int timeRemaining = ( int ) ( cooldownExpirationTime - now ) ;
65+ int timeRemaining = ( int ) ( _cooldownExpirationTime - now ) ;
6666 if ( timeRemaining < 0 )
6767 {
6868 timeRemaining = 0 ;
@@ -90,7 +90,7 @@ public bool ButtonDown
9090 bool isDown = false ;
9191 if ( ControlID != null )
9292 {
93- InternalButtonCountState ButtonCountState ;
93+ _InternalButtonCountState ButtonCountState ;
9494 if ( InteractivityManager . _buttonStates . TryGetValue ( ControlID , out ButtonCountState ) )
9595 {
9696 isDown = ButtonCountState . CountOfButtonDownEvents > 0 ;
@@ -110,7 +110,7 @@ public bool ButtonPressed
110110 bool isPressed = false ;
111111 if ( ControlID != null )
112112 {
113- InternalButtonCountState ButtonCountState ;
113+ _InternalButtonCountState ButtonCountState ;
114114 if ( InteractivityManager . _buttonStates . TryGetValue ( ControlID , out ButtonCountState ) )
115115 {
116116 isPressed = ButtonCountState . CountOfButtonPressEvents > 0 ;
@@ -130,7 +130,7 @@ public bool ButtonUp
130130 bool isUp = false ;
131131 if ( ControlID != null )
132132 {
133- InternalButtonCountState ButtonCountState ;
133+ _InternalButtonCountState ButtonCountState ;
134134 if ( InteractivityManager . _buttonStates . TryGetValue ( ControlID , out ButtonCountState ) )
135135 {
136136 isUp = ButtonCountState . CountOfButtonUpEvents > 0 ;
@@ -150,7 +150,7 @@ public uint CountOfButtonDowns
150150 uint countOfButtonDownEvents = 0 ;
151151 if ( ControlID != null )
152152 {
153- InternalButtonCountState ButtonCountState ;
153+ _InternalButtonCountState ButtonCountState ;
154154 if ( InteractivityManager . _buttonStates . TryGetValue ( ControlID , out ButtonCountState ) )
155155 {
156156 countOfButtonDownEvents = ButtonCountState . CountOfButtonDownEvents ;
@@ -170,7 +170,7 @@ public uint CountOfButtonPresses
170170 uint countOfButtonPressEvents = 0 ;
171171 if ( ControlID != null )
172172 {
173- InternalButtonCountState ButtonCountState ;
173+ _InternalButtonCountState ButtonCountState ;
174174 if ( InteractivityManager . _buttonStates . TryGetValue ( ControlID , out ButtonCountState ) )
175175 {
176176 countOfButtonPressEvents = ButtonCountState . CountOfButtonPressEvents ;
@@ -190,7 +190,7 @@ public uint CountOfButtonUps
190190 uint countOfButtonPressEvents = 0 ;
191191 if ( ControlID != null )
192192 {
193- InternalButtonCountState ButtonCountState ;
193+ _InternalButtonCountState ButtonCountState ;
194194 if ( InteractivityManager . _buttonStates . TryGetValue ( ControlID , out ButtonCountState ) )
195195 {
196196 countOfButtonPressEvents = ButtonCountState . CountOfButtonUpEvents ;
@@ -206,9 +206,9 @@ public uint CountOfButtonUps
206206 /// <param name="progress">Value from 0.0 to 1.0.</param>
207207 public void SetProgress ( float progress )
208208 {
209- InteractivityManager . SingletonInstance . SendSetButtonControlProperties (
209+ InteractivityManager . SingletonInstance . _SendSetButtonControlProperties (
210210 ControlID ,
211- InteractivityManager . WS_MESSAGE_KEY_PROGRESS ,
211+ InteractivityManager . _WS_MESSAGE_KEY_PROGRESS ,
212212 false ,
213213 progress ,
214214 string . Empty ,
@@ -221,9 +221,9 @@ public void SetProgress(float progress)
221221 /// <param name="text">String to display on the button.</param>
222222 public void SetText ( string text )
223223 {
224- InteractivityManager . SingletonInstance . SendSetButtonControlProperties (
224+ InteractivityManager . SingletonInstance . _SendSetButtonControlProperties (
225225 ControlID ,
226- InteractivityManager . WS_MESSAGE_KEY_TEXT ,
226+ InteractivityManager . _WS_MESSAGE_KEY_TEXT ,
227227 false ,
228228 0 ,
229229 text ,
@@ -236,9 +236,9 @@ public void SetText(string text)
236236 /// <param name="cost">The number of sparks for this action.</param>
237237 public void SetCost ( uint cost )
238238 {
239- InteractivityManager . SingletonInstance . SendSetButtonControlProperties (
239+ InteractivityManager . SingletonInstance . _SendSetButtonControlProperties (
240240 ControlID ,
241- InteractivityManager . WS_MESSAGE_KEY_COST ,
241+ InteractivityManager . _WS_MESSAGE_KEY_COST ,
242242 false ,
243243 0 ,
244244 string . Empty ,
@@ -251,7 +251,7 @@ public void SetCost(uint cost)
251251 /// <param name="userID">The ID of the user who used the input control.</param>
252252 public bool GetButtonDown ( uint userID )
253253 {
254- return InteractivityManager . SingletonInstance . GetButtonDown ( ControlID , userID ) ;
254+ return InteractivityManager . SingletonInstance . _GetButtonDown ( ControlID , userID ) ;
255255 }
256256
257257 /// <summary>
@@ -260,7 +260,7 @@ public bool GetButtonDown(uint userID)
260260 /// <param name="userID">The ID of the user who used the input control.</param>
261261 public bool GetButtonPressed ( uint userID )
262262 {
263- return InteractivityManager . SingletonInstance . GetButtonPressed ( ControlID , userID ) ;
263+ return InteractivityManager . SingletonInstance . _GetButtonPressed ( ControlID , userID ) ;
264264 }
265265
266266 /// <summary>
@@ -269,7 +269,7 @@ public bool GetButtonPressed(uint userID)
269269 /// <param name="userID">The ID of the user who used the input control.</param>
270270 public bool GetButtonUp ( uint userID )
271271 {
272- return InteractivityManager . SingletonInstance . GetButtonUp ( ControlID , userID ) ;
272+ return InteractivityManager . SingletonInstance . _GetButtonUp ( ControlID , userID ) ;
273273 }
274274
275275 /// <summary>
@@ -278,7 +278,7 @@ public bool GetButtonUp(uint userID)
278278 /// <param name="userID">The ID of the user who used the input control.</param>
279279 public uint GetCountOfButtonDowns ( uint userID )
280280 {
281- return InteractivityManager . SingletonInstance . GetCountOfButtonDowns ( ControlID , userID ) ;
281+ return InteractivityManager . SingletonInstance . _GetCountOfButtonDowns ( ControlID , userID ) ;
282282 }
283283
284284 /// <summary>
@@ -287,7 +287,7 @@ public uint GetCountOfButtonDowns(uint userID)
287287 /// <param name="userID">The ID of the user who used the input control.</param>
288288 public uint GetCountOfButtonPresses ( uint userID )
289289 {
290- return InteractivityManager . SingletonInstance . GetCountOfButtonPresses ( ControlID , userID ) ;
290+ return InteractivityManager . SingletonInstance . _GetCountOfButtonPresses ( ControlID , userID ) ;
291291 }
292292
293293 /// <summary>
@@ -296,7 +296,7 @@ public uint GetCountOfButtonPresses(uint userID)
296296 /// <param name="userID">The ID of the user who used the input control.</param>
297297 public uint GetCountOfButtonUps ( uint userID )
298298 {
299- return InteractivityManager . SingletonInstance . GetCountOfButtonUps ( ControlID , userID ) ;
299+ return InteractivityManager . SingletonInstance . _GetCountOfButtonUps ( ControlID , userID ) ;
300300 }
301301
302302 /// <summary>
@@ -308,8 +308,9 @@ public void TriggerCooldown(int cooldown)
308308 InteractivityManager . SingletonInstance . TriggerCooldown ( ControlID , cooldown ) ;
309309 }
310310
311- internal Int64 cooldownExpirationTime ;
312- public InteractiveButtonControl ( string controlID , InteractiveEventType type , bool disabled , string helpText , uint cost , string eTag , string sceneID ) : base ( controlID , InteractivityManager . CONTROL_TYPE_BUTTON , type , disabled , helpText , eTag , sceneID )
311+ internal Int64 _cooldownExpirationTime ;
312+ public InteractiveButtonControl ( string controlID , InteractiveEventType type , bool disabled , string helpText , uint cost , string eTag , string sceneID , Dictionary < string , object > metaproperties ) :
313+ base ( controlID , InteractivityManager . _CONTROL_TYPE_BUTTON , type , disabled , helpText , eTag , sceneID , metaproperties )
313314 {
314315 Cost = cost ;
315316 }
0 commit comments