Skip to content

Commit

Permalink
made some remove funcs private
Browse files Browse the repository at this point in the history
  • Loading branch information
untoldengine committed Jan 15, 2025
1 parent 372e818 commit 3fb2cb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/UntoldEngine/Systems/RegistrationSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public func setEntityMesh(entityId: EntityID, filename: String, withExtension: S
setEntitySkeleton(entityId: entityId, filename: filename, withExtension: withExtension)
}

public func removeEntityMesh(entityId: EntityID) {
func removeEntityMesh(entityId: EntityID) {
guard let renderComponent = scene.get(component: RenderComponent.self, for: entityId) else {
handleError(.noRenderComponent)
return
Expand Down Expand Up @@ -195,7 +195,7 @@ public func setEntityAnimations(entityId: EntityID, filename: String, withExtens
addClips(to: animationComponent)
}

public func removeEntityAnimations(entityId: EntityID) {
func removeEntityAnimations(entityId: EntityID) {
guard let animationComponent = scene.get(component: AnimationComponent.self, for: entityId) else {
handleError(.noAnimationComponent, entityId)
return
Expand All @@ -215,7 +215,7 @@ public func setEntityKinetics(entityId: EntityID) {
}
}

public func removeEntityKinetics(entityId: EntityID) {
func removeEntityKinetics(entityId: EntityID) {
guard let kineticComponent = scene.get(component: KineticComponent.self, for: entityId) else {
handleError(.noKineticComponent, entityId)
return
Expand Down

0 comments on commit 3fb2cb0

Please sign in to comment.