Skip to content

Commit 32eb019

Browse files
feat: add method to add multiple properties to NPC
1 parent 8253462 commit 32eb019

File tree

1 file changed

+5
-0
lines changed
  • surf-npc-api/src/main/kotlin/dev/slne/surf/npc/api/npc

1 file changed

+5
-0
lines changed

surf-npc-api/src/main/kotlin/dev/slne/surf/npc/api/npc/Npc.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ interface Npc {
102102
*/
103103
fun addProperty(property: NpcProperty)
104104

105+
/**
106+
* Adds multiple properties to the NPC.
107+
*
108+
* @param properties A variable number of properties to add, each represented as a Triple containing the key, value, and type.
109+
*/
105110
fun addProperties(vararg properties: Triple<String, Any, NpcPropertyType>)
106111

107112
/**

0 commit comments

Comments
 (0)