Skip to content

Instantly share code, notes, and snippets.

View DenL's full-sized avatar

Dennis Lee DenL

  • Mochi Labs Ltd.
  • Toronto
View GitHub Profile
@DenL
DenL / QuestFrame.lua
Last active November 30, 2020 12:39
AngryWorldQuest Edit
local ADDON, Addon = ...
local Mod = Addon:NewModule('QuestFrame')
local Config
local dataProvder
local hoveredQuestID
local MAPID_AZEROTH = 947
-- Legion
local MAPID_BROKENISLES = 619
@DenL
DenL / State.cs
Last active April 23, 2019 05:24
A FSM implementation utilizing Unity Coroutine.
using System.Collections;
using UnityEngine;
namespace MochiLabs.FSM {
public interface IState {
void Link(StateMachine machine);
void Enter();
IEnumerator Executing();
void CheckParameter();
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
// ignore row/column if first row/column contains this key
var IGNORE_KEYS = ["ignore", "void"];
var EXPORT_FOLDER = "JsonExport";
var EXPORT_TYPE_JSON = "Json";
var EXPORT_TYPE_CSV = "Csv";
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
namespace MochiLabs.UI.Effects {
[AddComponentMenu("UI/Effects/Tint")]
public class Tint : BaseVertexEffect {
[SerializeField]
private Color32 tintColor = new Color32(225,225,225,255);
@DenL
DenL / Tuple.cs
Last active August 29, 2015 14:19 — forked from michaelbartnett/LICENSE.txt
// ----------------------------------------------------------------------------
// Tuple structs for use in .NET Not-Quite-3.5 (e.g. Unity3D).
//
// Used Chapter 3 in http://functional-programming.net/ as a starting point.
//
// Note: .NET 4.0 Tuples are immutable classes so they're *slightly* different.
// ----------------------------------------------------------------------------
using UnityEngine;
using System;