mirror of https://github.com/zeldaret/tmc.git
				
				
				
			
		
			
				
	
	
		
			63 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
#ifndef ROOM_H
 | 
						|
#define ROOM_H
 | 
						|
 | 
						|
#include "global.h"
 | 
						|
#include "entity.h"
 | 
						|
 | 
						|
/*
 | 
						|
typedef struct {
 | 
						|
        u8 areaID;
 | 
						|
        u8 roomID;
 | 
						|
} RoomID;
 | 
						|
*/
 | 
						|
 | 
						|
typedef struct {
 | 
						|
    u16 unk2;
 | 
						|
    u8 unk3;
 | 
						|
    u8 unk4;
 | 
						|
    u8 areaID;
 | 
						|
    u8 roomID;
 | 
						|
    u16 roomOriginX;
 | 
						|
    u16 roomOriginY;
 | 
						|
    s16 roomScrollX;
 | 
						|
    s16 roomScrollY;
 | 
						|
    u8 unk5;
 | 
						|
    u8 unk6;
 | 
						|
    u8 filler[4];
 | 
						|
    u8 screenShakeMagnitude;
 | 
						|
    u8 unk7;
 | 
						|
    u16 screenShakeTime;
 | 
						|
    u16 filler2[6];
 | 
						|
    u8 filler3[4];
 | 
						|
    u16 filler4[4];
 | 
						|
    Entity* cameraTarget;
 | 
						|
} RoomControls;
 | 
						|
 | 
						|
typedef struct {
 | 
						|
	u8 filler[6];
 | 
						|
	u8 itemForSaleIndex;
 | 
						|
	u16 unk;
 | 
						|
	u8 unk2;
 | 
						|
	u16 filler2[3];
 | 
						|
	u32 roomFlags;
 | 
						|
    u32 unk3;
 | 
						|
	u8 filler4[48];
 | 
						|
	u8 filler5[28];
 | 
						|
	u32 greatFairyState;
 | 
						|
} RoomVars;
 | 
						|
 | 
						|
//Packets used to store which entities to load in a room
 | 
						|
typedef struct {
 | 
						|
    u8 entityType;
 | 
						|
    u8 field_0x1;
 | 
						|
    u8 entitySubtype;
 | 
						|
    u8 entityform;
 | 
						|
    u32 entityparameter;
 | 
						|
    u16 xPos;
 | 
						|
    u16 yPos;
 | 
						|
    u32 spritePtr;
 | 
						|
} EntityData;
 | 
						|
 | 
						|
extern RoomControls gRoomControls;
 | 
						|
extern RoomVars gRoomVars;
 | 
						|
#endif |