Explorar o código

name ref in comment

Guide %!s(int64=6) %!d(string=hai) anos
pai
achega
f3b60bc62a
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/Sprites/spritePackedManager.ts

+ 4 - 1
src/Sprites/spritePackedManager.ts

@@ -21,7 +21,10 @@ export class SpritePackedManager extends SpriteManager{
      * @param fromPacked set to true; do not alter
      */
 
-    constructor(public name: string, imgUrl: string, capacity: number, scene: Scene, spriteJSON: string | null = null, epsilon: number = 0.01, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE) {
+    constructor(
+        /** defines the packed manager's name */
+        public name: string, 
+        imgUrl: string, capacity: number, scene: Scene, spriteJSON: string | null = null, epsilon: number = 0.01, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE) {
 
         //the cellSize parameter is not used when built from JSON which provides individual cell data, defaults to 64 if JSON load fails
         super(name, imgUrl, capacity, 64, scene, epsilon, samplingMode, true, spriteJSON);