Skip to content

Commit

Permalink
Merge pull request #1 from ir-engine/component-schemas
Browse files Browse the repository at this point in the history
Update to component schema
  • Loading branch information
HexaField authored Sep 17, 2024
2 parents 845c307 + 2a1ce79 commit 54dc019
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Hello2.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ECS } from '@ir-engine/ecs'
import { ECS, S } from '@ir-engine/ecs'
import { PrimitiveGeometryComponent } from '@ir-engine/engine/src/scene/components/PrimitiveGeometryComponent'
import { GeometryTypeEnum } from '@ir-engine/engine/src/scene/constants/GeometryTypeEnum'
import { PhysicsSystem } from '@ir-engine/spatial'
Expand All @@ -11,10 +11,7 @@ import { Vector3 } from 'three'
const HelloComponent = ECS.defineComponent({
name: 'ee.hello-tutorial.HelloComponent',
jsonID: 'EE_tutorial_hello',

onInit() {
return { initialized: false }
}
schema: S.Object({ initialized: S.Bool(false) })
})

// Define our query
Expand Down

0 comments on commit 54dc019

Please sign in to comment.