Selaa lähdekoodia

Update PointLight: add toString method

Wyatt Gillette 3 kuukautta sitten
vanhempi
commit
2747d7fbf2
1 muutettua tiedostoa jossa 12 lisäystä ja 1 poistoa
  1. 12 1
      jme3-core/src/main/java/com/jme3/light/PointLight.java

+ 12 - 1
jme3-core/src/main/java/com/jme3/light/PointLight.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012, 2015-2016, 2018 jMonkeyEngine
+ * Copyright (c) 2009-2025 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -247,4 +247,15 @@ public class PointLight extends Light {
         p.position = position.clone();
         return p;
     }
+
+    @Override
+    public String toString() {
+        return getClass().getSimpleName()
+                + "[name=" + name
+                + ", position=" + position
+                + ", radius=" + radius
+                + ", color=" + color
+                + ", enabled=" + enabled
+                + "]";
+    }
 }