mittens_engine/engine/ecs/component/
emissive_pass.rs1use crate::engine::ecs::component::Component;
2
3#[derive(Debug, Clone, Default)]
4pub struct EmissivePassComponent;
5
6impl EmissivePassComponent {
7 pub fn new() -> Self {
8 Self
9 }
10}
11
12impl Component for EmissivePassComponent {
13 fn name(&self) -> &'static str {
14 "emissive_pass"
15 }
16
17 fn as_any(&self) -> &dyn std::any::Any {
18 self
19 }
20
21 fn as_any_mut(&mut self) -> &mut dyn std::any::Any {
22 self
23 }
24
25 fn to_mms_ast(
26 &self,
27 _world: &crate::engine::ecs::World,
28 ) -> crate::scripting::ast::ComponentExpression {
29 crate::engine::ecs::component::ce_helpers::ce("EmissivePass")
30 }
31}