This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://google_docs/document/d/1sTN_0uSiDj4VFzr0IeQPWigmP7xAxLjs5eecL2ixG4I/edit?usp=sharing | |
https://google_docs/drawings/d/1jwsxJMNnzTvM4FZzHrXb-BxHO2Pw6MWJAu9TrIOKbj4/edit?usp=sharing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* callback -> promise -> async/await | |
*/ | |
function foo_callback(x) | |
{ | |
console.log("foo_callback: " + x); | |
setTimeout(foo_callback, 1000, x + 1); | |
} | |
foo_callback(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"formattingOptions": { | |
"IndentSwitchCaseSection": false | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace PortsManager | |
{ | |
class PortsManager | |
{ | |
int count = 0; | |
readonly (int minPort, int maxPort) range; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using Microsoft.Extensions.CommandLineUtils; | |
namespace CommandLineTest | |
{ | |
class Program | |
{ | |
public static void Main(params string[] args) | |
{ |