Skip to content

Instantly share code, notes, and snippets.

@Majiir
Majiir / api.md
Last active August 29, 2015 14:03
Thoughts on a DMP plugin API for mods

Server-side API

Client

Static Properties

  • Clients - enumerates connected clients

Methods

  • SendMessage(string key, string data)
@Majiir
Majiir / GeodesicGrid.cs
Created September 7, 2014 02:02
Legacy geodesic grid code released under BSD 2-Clause
/**
* Copyright (c) 2012-2013, Majiir
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace Evenge
{
public class PriorityQueue<T> : IPriorityQueue<T>
{
private readonly List<Entry> heap;
private readonly Dictionary<T, int> indices = new Dictionary<T, int>();
using System;
using System.Collections.Generic;
namespace EnumerableExtensions
{
public interface IDisposableEnumerable<T> : IDisposable, IEnumerable<T> { }
public static class EnumerableExtensions
{
public static IDisposableEnumerable<T> Disposer<T>(this IEnumerable<T> seq) where T : IDisposable
@Majiir
Majiir / Sources.md
Created April 9, 2012 18:33
Attitude Control
  • Manual Attitude Control of the Lunar Module
    Robert F. Stengel
    Charles Stark Draper Laboratory, Massachusetts Institute of Technology, Cambridge, Mass.

  • Handling Qualities for Pilot Control of Apollo Lunar-Landing Spacecraft
    Donald C. Cheatham and Clarke T. Hackler
    NASA Manned Spacecraft Center, Houston, Texas

  • Quaternion Feedback Control for Rigid-Body Spacecraft
    Hans-Christian B. Jensen, Rafal Wisniewski

0eNrNVmmumzAQvot/VlABIYuQ3iXer0rVEzIwSUbFNjImLYo4QG/Rs/UkHUNLyEIepK/LHyIvM+P5FsdHluQVFBqlYdGRYapkyaKPR1biTvLczpm6ABYxNCCYwyQXdrTTANL9jBpY4zCUGXxhkd84rwZmkGIG2k2VSFByo/QgQXAzwQG1qWimz9HtcJ8HkYtZkR8GkWHz4jCQBg1C13o7qGNZiQQ0ddVHW3AMl2Z4eIcVqqRYJW1dyufS/t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bKtjCs8nWwAvovBWs8iq+vWVNvFSv9Yvhb2cfvMCXRh720OQAddPxemaRfo5OiPPq/p87h22Sd1PO+vdvXSHCY5j36xT1RdawXljVm/2al1Zbt4NtVucRTlvDWd3h+HLI/vd5g19P8YvfmcTRX2ih1yrRejdXl1yy7vujDrrmiP1/sni8tuAMkcDQQWyCmXDx95XrBxQs9p2LWhuuh8LratNjfy6Yml7nru4FN6/eSxxNjX//DiO70pul18ydDraqtHMkW38UmK7ztD+vs+lpHGUxPjHW3DOeCHc39eNm1clI02luGRUdwLld8uiRxQ4sM/XWJdbWyYs1N/tbiTFUCCn/aNQORCBdLqA5VtzkjjMTLbnHtbx1ho4imeBTaGI3zEk4dqR6JnneGlQzJcQVYOKSeTdOHkvsIRI3yneOuVYzDgIxseKJuU4cWOlk3KCTyS/U2aEkZLyKJJfWPxmK9J0VabjKFkHpI
@Majiir
Majiir / gist:29f6ea92bae69b29465dc771c90affce
Created October 18, 2018 16:31
Entity type names in a game with all factions
AADeploy_Cast_StatusEffect
AADeploy_StatusEffect
Ability_C_ActivateMine
Ability_C_ArmorDebuff
Ability_C_ArmorDebuff_Campaign
Ability_C_ArmoredAssault_AA
Ability_C_ArtilleryBarrage
Ability_C_ArtilleryBarrage_2
Ability_C_ArtilleryBarrage_3
Ability_C_ArtilleryBarrage_4
@Majiir
Majiir / gist:c99d0c9e4ae33218179f2c23864eb803
Created October 18, 2018 16:39
Entity type names containing `_MP`
Ability_C_CarrierLeftArmRepair_MP
Ability_C_CarrierRightArmRepair_MP
Ability_C_CruiseMissile_MP
Ability_C_DeployPopCapCarrier_MP
Ability_C_DeploySalvagers_Wreck_MP
Ability_C_DeployScanner_MP
Ability_C_DeployTurret_AA_MP
Ability_C_DeployTurret_BeginCooldown_MP
Ability_C_DeployTurret_BeginCooldownToggle_MP
Ability_C_DeployTurret_MP
Research_Buff_ArmoredShip_Anti-Air (ARMORED ASSAULT ANTI-AIR)
Research_Buff_C_CruiseMissileUnlock (CARRIER - CRUISE MISSILE SILO)
Research_Buff_C_DeployableTurretsNoInitialCooldown (BASERUNNER INVENTORY)
Research_Buff_C_Escort (LAV ASSAULT PACK)
Research_Buff_C_Escort_Damage01 (VEHICLE DAMAGE LEVEL 1)
Research_Buff_C_Escort_Damage02 (VEHICLE DAMAGE LEVEL 2)
Research_Buff_C_Escort_ROF01 (LAV ASSAULT PACK ENHANCEMENT)
Research_Buff_C_Escort_VehicleArmor01 (LAV ARMOR LEVEL 1)
Research_Buff_C_Escort_VehicleArmor02 (LAV ARMOR LEVEL 2)
Research_Buff_C_Railgun (RAILGUN MAG ACCELERATOR UPGRADE)