Skip to content

Instantly share code, notes, and snippets.

View Romain-P's full-sized avatar
🈴
/home

- Romain-P

🈴
/home
View GitHub Profile
@Romain-P
Romain-P / Timer.lua
Created August 28, 2018 23:33
Example
NewTimer(0,
function()
print(CombatLogGetCurrentEventInfo())
end
)
@Romain-P
Romain-P / timer.lua
Last active August 28, 2018 23:31
Wow Timers | Lua
if not timers then
timers = true
callback_timers = {}
function TableSize(table)
local count = 0
for _,_ in pairs(table) do
count = count + 1
end
typedef enum tile {
none = 0,
forward = 1,
right = 7,
backward = 5,
left = 3
} tile;
typedef enum dir {
dirtop = 1,
#ifndef ZAPPY_LIBRARY_H
#define ZAPPY_LIBRARY_H
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
#if defined(_MSC_VER)
#define EXPORT __declspec(dllexport)
#define IMPORT __declspec(dllimport)
struct gui_handlers_s {
void (*on_connect)(session_t id);
void (*on_disconnect)(session_t id);
void (*on_welcome)(session_t id, packet_welcome_t *);
void (*on_map_size_reply)(session_t id, packet_msz_t *);
void (*on_tile_content_reply)(session_t id, packet_bct_tile_t *);
void (*on_team_name_reply)(session_t id, packet_tna_t *);
void (*on_player_position_update)(session_t id, packet_ppo_t *);
void (*on_player_level_update)(session_t id, packet_plv_t *);
#ifndef ZAPPY_LIBRARY_H
#define ZAPPY_LIBRARY_H
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
#if defined(_MSC_VER)
#define EXPORT __declspec(dllexport)
#define IMPORT __declspec(dllimport)
#ifndef ZAPPY_LIBRARY_H
#define ZAPPY_LIBRARY_H
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
#include "network.h"
#if defined(_MSC_VER)
#define EXPORT __declspec(dllexport)
@Romain-P
Romain-P / plugin-interface.h
Last active June 19, 2018 15:50
zappy unity native plugin
#ifndef ZAPPY_LIBRARY_H
#define ZAPPY_LIBRARY_H
#include <stdint.h>
#include "poll.h"
#include "protocol.h"
#define PACKED __attribute__((__packed__))
#if defined(_MSC_VER)
//
// EPITECH PROJECT, 2018
//
// File description:
//
//
#include <Exceptions.hpp>
#include <iostream>
#include "ConsoleAnalyser.hpp"
//
// EPITECH PROJECT, 2018
//
// File description:
//
//
#include "Parser.hpp"
#include "Exceptions.hpp"