From 2e9cc9385258186fdc864e820533a552bce4d02d Mon Sep 17 00:00:00 2001 From: Kalila <69767640+digisomni@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:33:23 +0800 Subject: [PATCH] Rename files. --- .../components/{haze.ts => HazeComponent.ts} | 0 .../{image.ts => ImageComponent.ts} | 0 .../{KeyLight.ts => KeyLightComponent.ts} | 0 .../{model.ts => ModelComponent.ts} | 0 .../{skybox.ts => SkyboxComponent.ts} | 0 .../entity/components/components/index.ts | 38 +++--- .../entity/components/controllers/index.ts | 38 +++--- .../controllers/materialEntityController.ts | 112 +++++++++--------- 8 files changed, 94 insertions(+), 94 deletions(-) rename src/modules/entity/components/components/{haze.ts => HazeComponent.ts} (100%) rename src/modules/entity/components/components/{image.ts => ImageComponent.ts} (100%) rename src/modules/entity/components/components/{KeyLight.ts => KeyLightComponent.ts} (100%) rename src/modules/entity/components/components/{model.ts => ModelComponent.ts} (100%) rename src/modules/entity/components/components/{skybox.ts => SkyboxComponent.ts} (100%) diff --git a/src/modules/entity/components/components/haze.ts b/src/modules/entity/components/components/HazeComponent.ts similarity index 100% rename from src/modules/entity/components/components/haze.ts rename to src/modules/entity/components/components/HazeComponent.ts diff --git a/src/modules/entity/components/components/image.ts b/src/modules/entity/components/components/ImageComponent.ts similarity index 100% rename from src/modules/entity/components/components/image.ts rename to src/modules/entity/components/components/ImageComponent.ts diff --git a/src/modules/entity/components/components/KeyLight.ts b/src/modules/entity/components/components/KeyLightComponent.ts similarity index 100% rename from src/modules/entity/components/components/KeyLight.ts rename to src/modules/entity/components/components/KeyLightComponent.ts diff --git a/src/modules/entity/components/components/model.ts b/src/modules/entity/components/components/ModelComponent.ts similarity index 100% rename from src/modules/entity/components/components/model.ts rename to src/modules/entity/components/components/ModelComponent.ts diff --git a/src/modules/entity/components/components/skybox.ts b/src/modules/entity/components/components/SkyboxComponent.ts similarity index 100% rename from src/modules/entity/components/components/skybox.ts rename to src/modules/entity/components/components/SkyboxComponent.ts diff --git a/src/modules/entity/components/components/index.ts b/src/modules/entity/components/components/index.ts index 76181b63..9a1e7bac 100644 --- a/src/modules/entity/components/components/index.ts +++ b/src/modules/entity/components/components/index.ts @@ -1,19 +1,19 @@ -// -// index.ts -// -// Created by Nolan Huang on 24 Aug 2022. -// Copyright 2022 Vircadia contributors. -// Copyright 2022 DigiSomni LLC. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// - -export { KeyLightComponent } from "./KeyLight"; -export { HazeComponent } from "./haze"; -export { SkyboxComponent } from "./skybox"; -export { ModelComponent } from "./model"; -export { ImageComponent } from "./image"; -export { MaterialComponent } from "./materialComponent"; -export { ShapeComponent } from "./shapeComponent"; -export { LightEntityComponent } from "./lightComponent"; +// +// index.ts +// +// Created by Nolan Huang on 24 Aug 2022. +// Copyright 2022 Vircadia contributors. +// Copyright 2022 DigiSomni LLC. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +export { KeyLightComponent } from "./KeyLightComponent"; +export { HazeComponent } from "./HazeComponent"; +export { SkyboxComponent } from "./SkyboxComponent"; +export { ModelComponent } from "./ModelComponent"; +export { ImageComponent } from "./ImageComponent"; +export { MaterialComponent } from "./MaterialComponent"; +export { ShapeComponent } from "./ShapeComponent"; +export { LightEntityComponent } from "./LightComponent"; diff --git a/src/modules/entity/components/controllers/index.ts b/src/modules/entity/components/controllers/index.ts index bb9c96b2..7bb4cb46 100644 --- a/src/modules/entity/components/controllers/index.ts +++ b/src/modules/entity/components/controllers/index.ts @@ -1,19 +1,19 @@ -// -// index.ts -// -// Created by Nolan Huang on 4 Aug 2022. -// Copyright 2022 Vircadia contributors. -// Copyright 2022 DigiSomni LLC. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// - -export { EntityController } from "./EntityController"; -export { ShapeEntityController } from "./ShapeEntityController"; -export { ModelEntityController } from "./ModelEntityController"; -export { LightEntityController } from "./LightEntityController"; -export { ZoneEntityController } from "./ZoneEntityController"; -export { ImageEntityController } from "./ImageEntityController"; -export { MaterialEntityController } from "./materialEntityController"; -export { WebEntityController } from "./webEntityController"; +// +// index.ts +// +// Created by Nolan Huang on 4 Aug 2022. +// Copyright 2022 Vircadia contributors. +// Copyright 2022 DigiSomni LLC. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +export { EntityController } from "./EntityController"; +export { ShapeEntityController } from "./ShapeEntityController"; +export { ModelEntityController } from "./ModelEntityController"; +export { LightEntityController } from "./LightEntityController"; +export { ZoneEntityController } from "./ZoneEntityController"; +export { ImageEntityController } from "./ImageEntityController"; +export { MaterialEntityController } from "./MaterialEntityController"; +export { WebEntityController } from "./WebEntityController"; diff --git a/src/modules/entity/components/controllers/materialEntityController.ts b/src/modules/entity/components/controllers/materialEntityController.ts index 1f1997f9..3343d525 100644 --- a/src/modules/entity/components/controllers/materialEntityController.ts +++ b/src/modules/entity/components/controllers/materialEntityController.ts @@ -1,56 +1,56 @@ -// -// materialEntityController.ts -// -// Created by Nolan Huang on 19 Sep 2022. -// Copyright 2022 Vircadia contributors. -// Copyright 2022 DigiSomni LLC. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// - -// Domain Modules -import { EntityController } from "./EntityController"; -import { IMaterialEntity } from "../../EntityInterfaces"; -import { MaterialComponent } from "../../components"; - -export class MaterialEntityController extends EntityController { - // domain properties - _materialEntity: IMaterialEntity; - _materialComponent: Nullable; - - constructor(entity: IMaterialEntity) { - super(entity, MaterialEntityController.typeName); - this._materialEntity = entity; - } - - static get typeName(): string { - return "MaterialEntityController"; - } - - /** - * Gets a string identifying the type of this Component - * @returns "MaterialEntityController" string - */ - // eslint-disable-next-line class-methods-use-this - public get componentType(): string { - return MaterialEntityController.typeName; - } - - public onInitialize(): void { - super.onInitialize(); - - this._materialComponent = new MaterialComponent(); - this._gameObject?.addComponent(this._materialComponent); - } - - public onStart(): void { - super.onStart(); - this._materialComponent?.load(this._materialEntity); - } - - protected _updateParent(): void { - this._materialComponent?.updateParent(this._materialEntity); - super._updateParent(); - } -} +// +// materialEntityController.ts +// +// Created by Nolan Huang on 19 Sep 2022. +// Copyright 2022 Vircadia contributors. +// Copyright 2022 DigiSomni LLC. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +// Domain Modules +import { EntityController } from "./EntityController"; +import { IMaterialEntity } from "../../EntityInterfaces"; +import { MaterialComponent } from ".."; + +export class MaterialEntityController extends EntityController { + // domain properties + _materialEntity: IMaterialEntity; + _materialComponent: Nullable; + + constructor(entity: IMaterialEntity) { + super(entity, MaterialEntityController.typeName); + this._materialEntity = entity; + } + + static get typeName(): string { + return "MaterialEntityController"; + } + + /** + * Gets a string identifying the type of this Component + * @returns "MaterialEntityController" string + */ + // eslint-disable-next-line class-methods-use-this + public get componentType(): string { + return MaterialEntityController.typeName; + } + + public onInitialize(): void { + super.onInitialize(); + + this._materialComponent = new MaterialComponent(); + this._gameObject?.addComponent(this._materialComponent); + } + + public onStart(): void { + super.onStart(); + this._materialComponent?.load(this._materialEntity); + } + + protected _updateParent(): void { + this._materialComponent?.updateParent(this._materialEntity); + super._updateParent(); + } +}