Skip to content

Instantly share code, notes, and snippets.

@llint
llint / B_PlayerController_C.ts
Created July 10, 2024 08:27
${ProjectRoot}/TypeScript/ScriptBindings/Game/Blueprints/
import * as UE from 'ue'
interface B_PlayerController_C extends UE.Game.Blueprints.B_PlayerController.B_PlayerController_C {};
class B_PlayerController_C {
ReceiveBeginPlay() {
console.log(`****************** B_PlayerController_C.ReceiveBeginPlay: from B_PlayerController_C.ts`);
this.Print("****************** B_PlayerController_C.ReceiveBeginPlay: from B_PlayerController_C.ts");
}
};
import * as UE from 'ue';
import { blueprint } from 'puerts';
import * as fs from 'fs';
import * as path from 'path';
export function setupMixin<A extends typeof UE.Object, R extends InstanceType<A>>(assetPath: string, mixinCls: new (...args: any) => R) {
console.log(`EntryPoint.setupMixin('${assetPath}', '${mixinCls.name}') ******************`);
let ueAssetCls = UE.Class.Load(assetPath);
let jsAssetCls = blueprint.tojs<A>(ueAssetCls);
@llint
llint / ServerArch.txt
Last active January 29, 2018 07:06
ServerArch
https://google_docs/document/d/1sTN_0uSiDj4VFzr0IeQPWigmP7xAxLjs5eecL2ixG4I/edit?usp=sharing
https://google_docs/drawings/d/1jwsxJMNnzTvM4FZzHrXb-BxHO2Pw6MWJAu9TrIOKbj4/edit?usp=sharing
/*
* callback -> promise -> async/await
*/
function foo_callback(x)
{
console.log("foo_callback: " + x);
setTimeout(foo_callback, 1000, x + 1);
}
foo_callback(0);
@llint
llint / omnisharp.json
Created August 10, 2017 18:21
Visual Studio Code Omnisharp formatting settings (~/.omnisharp/omnisharp.json)
{
"formattingOptions": {
"IndentSwitchCaseSection": false
}
}
@llint
llint / Settings.json
Last active March 14, 2024 03:41
Visual Studio Code User Settings
{
"files.trimTrailingWhitespace": true,
"editor.fontFamily": "Cascadia Mono",
"diffEditor.renderSideBySide": false,
"editor.codeLens": true,
"workbench.colorTheme": "Solarized Light",
"editor.minimap.enabled": true,
"workbench.colorCustomizations": {
"editor.selectionBackground": "#00000080", // hex RGB(A) for selection
"editor.selectionHighlightBackground": "#00000020", // hex RGB(A) for occurences
using System;
using System.Collections.Generic;
namespace PortsManager
{
class PortsManager
{
int count = 0;
readonly (int minPort, int maxPort) range;
@llint
llint / CommandLineUtilsExample.cs
Created March 16, 2017 21:15
CommandLineUtils Example
using System;
using System.Linq;
using Microsoft.Extensions.CommandLineUtils;
namespace CommandLineTest
{
class Program
{
public static void Main(params string[] args)
{