Skip to content

Instantly share code, notes, and snippets.

View dylanh724's full-sized avatar
🌐
imperium42.com

Dylan Hunt dylanh724

🌐
imperium42.com
View GitHub Profile
@dylanh724
dylanh724 / lib.cs
Last active March 4, 2024 03:32
SpacetimeDB | Docs | Unity Pt1 | Rust Parity: lib.cs
// using SpacetimeDB; // Useful if I wanted to exclude `SpacetimeDB` attribute prefixes
using SpacetimeDB.Module;
using static SpacetimeDB.Runtime;
/// Code From the Unity Pt1 Basic Tutorial: https://spacetimedb.com/docs/unity/part-1
static partial class Module
{
[SpacetimeDB.Reducer(ReducerKind.Update)]
public static void OnConnect(DbEventArgs dbEventArgs)
{
using GameSparks;
using System;
using WebSocketSharp;
/// <summary>
/// Custom wrapper around the WebSocketSharp from https://github.com/sta/websocket-sharp
/// Intended to fix the issue of the GameSparks SDK not supporting .net4.x
/// https://github.com/Imperium42/gs-csharp-community-sdk/issues/4
/// -------------------------------------------------------------------
/// IMPORTANT: DOWNLOAD DLL @ https://discordapp.com/channels/356100134565838848/548131641491587093/728510612547567646
@dylanh724
dylanh724 / tol-locale.json
Last active January 16, 2019 08:16
ToL-Localization
This file has been truncated, but you can view the full file.
{
"languages": [
{
"languageName": "English",
"code": "en"
},
{
"languageName": "Chinesetw",
"code": "tw"
}