Skip to content

Instantly share code, notes, and snippets.

View FuzzySlipper's full-sized avatar

George FuzzySlipper

View GitHub Profile
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 5/25/2025 7:38 PM 0-Alter_OverrideSounds
d----- 5/25/2025 7:38 PM 0-CustomParticleLoader
d----- 5/25/2025 9:30 PM 0-Quartz
d----- 5/25/2025 7:38 PM 0-SCore
d----- 5/25/2025 7:38 PM 0-XNPCCo
@FuzzySlipper
FuzzySlipper / AssetEntry.cs
Last active April 17, 2020 21:46
Addressables are annoying
[System.Serializable]
public abstract class AssetEntry {
public AssetReference AssetReference = new AssetReference();
public string Path;
public abstract System.Type Type { get; }
public abstract UnityEngine.Object AssetObject { get; }
}
[System.Serializable]
public class AssetEntry<T> : AssetEntry where T : UnityEngine.Object {
@FuzzySlipper
FuzzySlipper / GameData.cs
Created September 18, 2018 20:29
Example usage of runtime CastleDB files
using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace PixelComrades {
public static partial class GameData {
@FuzzySlipper
FuzzySlipper / JsonDB.cs
Created September 18, 2018 20:23
Runtime CastleDB file reader
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using SimpleJSON;
namespace PixelComrades {
public class JsonDB {
private const string Id = "ID";
private const string EnumProp = "hasIndex";