This file contains hidden or 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
/*: | |
* @plugindesc マップ画面上にステータスを表示する | |
* @author F_ | |
* | |
* @param horizontal_margin | |
* @desc 横方向の余白(px) | |
* @default 50 | |
* | |
* @param vertical_margin | |
* @desc 縦方向の余白(px) |
This file contains hidden or 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
// @ts-check | |
"use strict"; | |
/** @typedef {(entries: IntersectionObserverEntry[]) => (observer: IntersectionObserver) => () => void} CurriedIntersectionObserverCallback */ | |
/** @type {(callback: CurriedIntersectionObserverCallback) => (options: IntersectionObserverInit) => () => IntersectionObserver} */ | |
exports.intersectionObserver_ = function (callback) { | |
return function (options) { | |
return function () { |
This file contains hidden or 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; | |
public readonly struct Entity | |
{ | |
public readonly int ID; | |
public Entity(int id) => this.ID = id; | |
} |
This file contains hidden or 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
const Parser = (() => { | |
const isOk = result => result.error === undefined; | |
const succeed = value => (_, i) => ({ value, position: i }); | |
const fail = error => () => ({ error }); | |
const value = (context, parse) => (args, i) => { | |
if (i < args.length) { | |
const result = parse(args[i]); |
This file contains hidden or 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
/*:ja | |
* @plugindesc JSONシリアライズの挙動を改善します。 | |
* @author F_ | |
* | |
* @help | |
* ツクールのセーブ/ロード時などに使用されるJSONシリアライザ/デシリアライザの挙動を改善します。 | |
* | |
* ツクール標準のシリアライザは実行中に対象のオブジェクトを書き換え、 | |
* 終了時にいくつかの操作によって元に近い状態へと戻します。 | |
* この挙動は多くの場合に問題なく動作しますが、 |
OlderNewer