Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
Interactable Struct Reference

#include <interactable.h>

Public Attributes

InteractableType type
 
int index
 
bool active
 
bool enabled
 
bool interactable
 
Vec2 position
 
Vec2 renderSize
 
Vec2 hitboxSize
 
SDL_Rect srcRect
 
SDL_Texture * spriteTexture
 
SDL_Texture * textTexture
 
char * spritePath
 
char * interactionText
 
void(* callback )(void *data, int interactableIndex)
 
void * data
 

Member Data Documentation

◆ active

bool Interactable::active

◆ callback

void(* Interactable::callback) (void *data, int interactableIndex)

◆ data

void* Interactable::data

◆ enabled

bool Interactable::enabled

◆ hitboxSize

Vec2 Interactable::hitboxSize

◆ index

int Interactable::index

◆ interactable

bool Interactable::interactable

◆ interactionText

char* Interactable::interactionText

◆ position

Vec2 Interactable::position

◆ renderSize

Vec2 Interactable::renderSize

◆ spritePath

char* Interactable::spritePath

◆ spriteTexture

SDL_Texture* Interactable::spriteTexture

◆ srcRect

SDL_Rect Interactable::srcRect

◆ textTexture

SDL_Texture* Interactable::textTexture

◆ type

InteractableType Interactable::type

The documentation for this struct was generated from the following file: