I hereby claim:
- I am danielytics on github.
- I am guywithknife (https://keybase.io/guywithknife) on keybase.
- I have a public key ASCfWEd74yrc1AWr28bUEd0t4hQWtWlaUtc7trWPJVU6two
To claim this, I am signing this object:
#include <core/Godot.hpp> | |
#include <KinematicBody2D.hpp> | |
using namespace godot; | |
class Player : public GodotScript<KinematicBody2D> | |
{ | |
public: | |
GODOT_SUBCLASS(Player, KinematicBody2D) |
lock = RWLock() | |
with lock.read(): | |
# Do some stuff | |
# Other threads can also use lock.read() at the same time, but no threads can lock.write() until current reads complete | |
with lock.write(): | |
# Do some stuff | |
# No other thread can be reading or writing while this thread has the lock |
I hereby claim:
To claim this, I am signing this object:
// Code taken from GLFW documentation: https://www.glfw.org/documentation.html | |
#include <GLFW/glfw3.h> | |
int main(void) | |
{ | |
GLFWwindow* window; | |
/* Initialize the library */ | |
if (!glfwInit()) | |
return -1; |
entt::entity EntityLayout::Build(entt::registry& reg, entt::hashed_string entName) | |
{ | |
auto ConfigIt = g_entityConfigs.find(entName); | |
if (ConfigIt == g_entityConfigs.end()) | |
{ | |
return entt::null; | |
} | |
const EntityConfig& config = (*ConfigIt).second; | |
if (config.protoEnt_ == entt::null) | |
{ |
#include <iostream> | |
#include <entt/entity/registry.hpp> | |
struct A { | |
}; | |
struct B { | |
int x; |
#include <string> | |
#include <regex> | |
#include <iostream> | |
#include <random> | |
#include <vector> | |
#include "plf_nanotimer.h" | |
bool find_regex (const std::string& input) |
#pragma once | |
#include <entt/core/utility.hpp> | |
#include <entt/entity/poly_storage.hpp> | |
#include <cstring> | |
enum OnComponentCollision { | |
Replace, | |
Skip, | |
}; |