浏览代码

fix comments in pr

Trevor Baron 7 年之前
父节点
当前提交
e434746997
共有 1 个文件被更改,包括 50 次插入6 次删除
  1. 50 6
      src/babylon.assetContainer.ts

+ 50 - 6
src/babylon.assetContainer.ts

@@ -6,19 +6,63 @@ module BABYLON {
         /**
          * Cameras to keep.
          */
-        cameras: BABYLON.Camera[] = [];
+        public cameras = new Array<Camera>();
+        /**
+         * Lights to keep.
+         */
+        public lights = new Array<Light>();
         /**
          * Meshes to keep.
          */
-        meshes: BABYLON.Mesh[] = [];
+        public meshes = new Array<AbstractMesh>();
+        /**
+         * Skeletons to keep.
+         */
+        public skeletons = new Array<Skeleton>();
         /**
-         * Geometries to keep.
+         * ParticleSystems to keep.
+         */
+        public particleSystems = new Array<ParticleSystem>();
+        /**
+         * Animations to keep.
+         */
+        public animations = new Array<Animation>();
+        /**
+         * MultiMaterials to keep.
          */
-        geometries: BABYLON.Geometry[] = [];
+        public multiMaterials = new Array<MultiMaterial>();
         /**
          * Materials to keep.
          */
-        materials: BABYLON.Material[] = [];
+        public materials = new Array<Material>();
+        /**
+         * MorphTargetManagers to keep.
+         */
+        public morphTargetManagers = new Array<MorphTargetManager>();
+        /**
+         * Geometries to keep.
+         */
+        public geometries = new Array<Geometry>();
+        /**
+         * TransformNodes to keep.
+         */
+        public transformNodes = new Array<TransformNode>();
+        /**
+         * LensFlareSystems to keep.
+         */
+        public lensFlareSystems = new Array<LensFlareSystem>();
+        /**
+         * ShadowGenerators to keep.
+         */
+        public shadowGenerators = new Array<ShadowGenerator>();
+        /**
+         * ActionManagers to keep.
+         */
+        public actionManagers = new Array<ActionManager>();
+        /**
+         * Sounds to keep.
+         */
+        public sounds = new Array<Sound>();
     }
 
     /**
@@ -218,7 +262,7 @@ module BABYLON {
 
         /**
          * Removes all the assets contained in the scene and adds them to the container.
-         * @param keepAssets Set of assets keep in the scene. (default: empty)
+         * @param keepAssets Set of assets to keep in the scene. (default: empty)
          */
         public moveAllFromScene(keepAssets?: KeepAssets): void {