@@ -365,29 +365,29 @@ public string Color(int id, string value = null)
365365 return value ;
366366 }
367367
368- public void ClearColors ( string color = null )
369- {
370- colorChip . Clear ( color ) ;
371- }
368+ public void ClearColors ( ) => colorChip . Clear ( _gameChip . MaskColor ( ) ) ;
369+ // {
370+ // colorChip.Clear();
371+ // }
372372
373- public void ClearSprites ( )
374- {
375- spriteChip . Clear ( ) ;
376- }
373+ public void ClearSprites ( ) => spriteChip . Clear ( ) ;
374+ // {
375+ // spriteChip.Clear();
376+ // }
377377
378378 /// <summary>
379379 /// Get the TotalDisks colors or change the limit for how many colors the color chip can store.
380380 /// </summary>
381381 /// <param name="ignoreEmpty"></param>
382382 /// <param name="total"></param>
383383 /// <returns></returns>
384- public int TotalColors ( bool ignoreEmpty = false )
385- {
384+ public int TotalColors ( bool ignoreEmpty = false ) => _gameChip . TotalColors ( ignoreEmpty ) ;
385+ // {
386386 // if (TotalDisks.HasValue)
387387 // activeColorChip.maxColors = TotalDisks.Value;
388388
389- return ignoreEmpty ? colorChip . TotalUsedColors : colorChip . Total ;
390- }
389+ // return ignoreEmpty ? colorChip.TotalUsedColors : colorChip.Total;
390+ // }
391391
392392 // Since we want to be able to edit this value but the interface doesn't allow it, we hide it in lua and use the overload instead
393393 // [MoonSharpHidden]
@@ -757,12 +757,12 @@ public int ChannelType(int id, int? typeID = null)
757757 /// </summary>
758758 /// <param name="value"></param>
759759 /// <returns></returns>
760- public string MaskColor ( string value = null )
761- {
762- if ( value != null ) colorChip . MaskColor = value ;
760+ public string MaskColor ( string value = null ) => _gameChip . MaskColor ( value ) ;
761+ // {
762+ // if (value != null) _gameChip .MaskColor( value) ;
763763
764- return colorChip . MaskColor ;
765- }
764+ // return _gameChip .MaskColor() ;
765+ // }
766766
767767 #endregion
768768
0 commit comments