Instance Stuff

custom instance commands
warping takes you into instances
npcs show up only in the instance they are supposed to be inside.
This commit is contained in:
Zenpock
2020-10-02 15:17:24 -05:00
committed by Gent
parent 5a80c53e79
commit bd34bb294c
6 changed files with 70 additions and 27 deletions

View File

@@ -13,7 +13,7 @@
// this should really be called vec3 or something...
struct WarpLocation {
int x, y, z;
int x, y, z, instanceID, isInstance, limitTaskID, npcID;
};
namespace NPCManager {
@@ -29,6 +29,7 @@ namespace NPCManager {
void destroyNPC(int32_t);
void updateNPCPosition(int32_t, int X, int Y, int Z, int angle);
void updateNPCPosition(int32_t, int X, int Y, int Z);
void updateNPCInstance(int32_t, int instanceID);
void sendToViewable(BaseNPC* npc, void* buf, uint32_t type, size_t size);