@@ -21,8 +21,8 @@ namespace NitroxClient.Debuggers.Drawer;
2121/// </summary>
2222public class DrawerManager
2323{
24- private readonly Dictionary < Type , IDrawer < object > > drawers = new ( ) ;
25- private readonly Dictionary < Type , IEditorDrawer < object > > editorDrawers = new ( ) ;
24+ private readonly Dictionary < Type , IDrawer < object > > drawers = [ ] ;
25+ private readonly Dictionary < Type , IEditorDrawer < object > > editorDrawers = [ ] ;
2626
2727 public DrawerManager ( SceneDebugger sceneDebugger )
2828 {
@@ -37,6 +37,7 @@ public DrawerManager(SceneDebugger sceneDebugger)
3737 MaterialDrawer materialDrawer = new ( ) ;
3838 ImageDrawer imageDrawer = new ( colorDrawer , materialDrawer , rectDrawer ) ;
3939 NitroxEntityDrawer nitroxEntityDrawer = new ( ) ;
40+ RigidbodyDrawer rigidbodyDrawer = new ( vectorDrawer ) ;
4041
4142 AddDrawer < NitroxEntityDrawer , NitroxEntity > ( nitroxEntityDrawer ) ;
4243 AddDrawer < NitroxEntityDrawer , NitroxId > ( nitroxEntityDrawer ) ;
@@ -68,13 +69,14 @@ public DrawerManager(SceneDebugger sceneDebugger)
6869 AddDrawer < TextDrawer , Text > ( new ( colorDrawer , materialDrawer ) ) ;
6970 AddDrawer < ToggleDrawer , Toggle > ( new ( sceneDebugger , selectableDrawer , unityEventDrawer ) ) ;
7071 AddDrawer < ToggleGroupDrawer , ToggleGroup > ( ) ;
71- AddDrawer < RigidbodyDrawer , Rigidbody > ( new ( vectorDrawer ) ) ;
72+ AddDrawer < RigidbodyDrawer , Rigidbody > ( rigidbodyDrawer ) ;
7273 AddDrawer < TransformDrawer , Transform > ( new ( sceneDebugger , vectorDrawer ) ) ;
7374 AddDrawer < UnityEventDrawer , UnityEvent > ( unityEventDrawer ) ;
7475 AddDrawer < UnityEventDrawer , UnityEvent < bool > > ( unityEventDrawer ) ;
7576 AddDrawer < VFXControllerDrawer , VFXController > ( new ( vectorDrawer , sceneDebugger ) ) ;
7677 AddDrawer < AnimatorDrawer , Animator > ( ) ;
7778 AddDrawer < CharacterControllerDrawer , CharacterController > ( new ( vectorDrawer ) ) ;
79+ AddDrawer < BoxColliderDrawer , BoxCollider > ( new ( vectorDrawer , rigidbodyDrawer ) ) ;
7880
7981 AddEditor < VectorDrawer , Vector2 > ( vectorDrawer ) ;
8082 AddEditor < VectorDrawer , Vector3 > ( vectorDrawer ) ;
@@ -86,6 +88,7 @@ public DrawerManager(SceneDebugger sceneDebugger)
8688 AddEditor < ColorDrawer , Color > ( colorDrawer ) ;
8789 AddEditor < ColorDrawer , Color32 > ( colorDrawer ) ;
8890 AddEditor < MaterialDrawer , Material > ( materialDrawer ) ;
91+ AddEditor < MaterialDrawer , PhysicMaterial > ( materialDrawer ) ;
8992 AddEditor < RectDrawer , Rect > ( rectDrawer ) ;
9093 AddEditor < RectDrawer , RectOffset > ( rectDrawer ) ;
9194 }
0 commit comments