Skip to content

Instantly share code, notes, and snippets.

@Mikea15
Mikea15 / its.h
Last active May 17, 2022 07:25
Pseudo-Untested-Modular-Target-Selection
// Copyright (c) Michael Adaixo - 2022
#pragma once
#include "CoreMinimal.h"
#include "ITargetSelector.generated.h"
/*
* Base TS Filter object
@Mikea15
Mikea15 / function_pointers.cpp
Created December 6, 2019 11:21
Messing around with Function Pointers.
#include <stdio.h>
#include <math.h>
struct ptf
{
void (*firstFunctionName)(int param1);
float (*secondFunctionName)(float param1, float param2);
};
void voidFunction(int p1)
#include <iostream>
#include <functional>
#include <list>
using ModelDelegate = std::function<void(void)>;
using ModelDelegateIterator = std::list<ModelDelegate>::iterator;
class Model
{
public:
#include <vector>
#include <iostream>
#include <chrono>
#include <future>
#include <thread>
#include <mutex>
#include <atomic>
#include <queue>
struct Settings
@Mikea15
Mikea15 / AchievementManager.cs
Last active August 1, 2016 23:35
Simple Achievement System in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Achievement
{
public int countToUnlock { get; set; }
public bool isUnlocked { get; set; }
public string Message { get; set; }