jblanked 9 месяцев назад
Родитель
Сommit
616c743576
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      game/npc.c
  2. 1 1
      game/npc.h

+ 3 - 3
game/npc.c

@@ -324,7 +324,7 @@ static const EntityDescription _generic_npc = {
 };
 };
 
 
 // Spawn function to return the entity description
 // Spawn function to return the entity description
-const EntityDescription *npc(
+static const EntityDescription *npc(
     GameManager *manager,
     GameManager *manager,
     const char *id,
     const char *id,
     int index,
     int index,
@@ -334,7 +334,7 @@ const EntityDescription *npc(
     float speed,
     float speed,
     const char *message)
     const char *message)
 {
 {
-    SpriteContext *sprite_context = get_sprite_context(id);
+    SpriteContext *sprite_context = sprite_context_get(id);
     if (!sprite_context)
     if (!sprite_context)
     {
     {
         FURI_LOG_E("Game", "Failed to get SpriteContext");
         FURI_LOG_E("Game", "Failed to get SpriteContext");
@@ -384,7 +384,7 @@ const EntityDescription *npc(
     return &_generic_npc;
     return &_generic_npc;
 }
 }
 
 
-void spawn_npc(Level *level, GameManager *manager, FuriString *json)
+void npc_spawn(Level *level, GameManager *manager, FuriString *json)
 {
 {
     if (!level || !manager || !json)
     if (!level || !manager || !json)
     {
     {

+ 1 - 1
game/npc.h

@@ -2,4 +2,4 @@
 #include <game/game.h>
 #include <game/game.h>
 #include "flip_world.h"
 #include "flip_world.h"
 
 
-void spawn_npc(Level *level, GameManager *manager, FuriString *json);
+void npc_spawn(Level *level, GameManager *manager, FuriString *json);