Skip to content

Commit

Permalink
chore: Add a few more common component names
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed May 13, 2024
1 parent 11926ad commit 7c8968b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.mineinabyss.geary.serialization.dsl

import com.mineinabyss.geary.components.relations.ChildOf
import com.mineinabyss.geary.components.relations.InstanceOf
import com.mineinabyss.geary.observers.events.*

fun SerializableComponentsDSL.withCommonComponentNames() {
Expand All @@ -10,4 +12,7 @@ fun SerializableComponentsDSL.withCommonComponentNames() {
namedComponent<OnUpdate>("geary:on_update")
namedComponent<OnEntityRemoved>("geary:on_entity_removed")
namedComponent<OnExtend>("geary:on_extend")
namedComponent<ChildOf>("geary:child_of")
namedComponent<InstanceOf>("geary:instance_of")
namedComponent<Any>("geary:any")
}

0 comments on commit 7c8968b

Please sign in to comment.