Skip to content

Instantly share code, notes, and snippets.

View Alrecenk's full-sized avatar

Alrecenk Alrecenk

View GitHub Profile
std::string header = ...;
Variant glb = Variant::parseJSON(header);
glb["meshes"][glb["nodes"][glb["scenes"][0]["nodes"][0]]["mesh"]].printFormatted();
// A Generic Min Heap Priority Queue for Unity that uses supplied float values for its ordering.
using System.Collections.Generic;
using UnityEngine;
public class PriorityQueue<T> where T : class{
struct ValueItem {
public T item;
public float value;
public ValueItem(T i, float v) {
@Alrecenk
Alrecenk / SerializationRegistry.h
Last active May 3, 2025 19:37
A header only registry for classes and their void methods to allow automatic serialization and facilitate remote procedure calls.
#ifndef _REGISTRY_H_
#define _REGISTRY_H_ 1
#include <iostream>
#include <vector>
#include <tuple>
#include <string>
#include <cstring>
#include <type_traits>
#include <memory>