Skip to main content

Built and signed on GitHub Actions

ProjectIgnis' EDOPro Core built for WebAssembly using emscripten.

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
88%
Published
5 months ago (0.0.29)
interface OcgCore

OcgCore interface.

Methods

getVersion(): readonly [number, number]

Request the ocgcore version.

Create a duel instance.

Deallocates the specified duel.

Add a new card to the duel.

Triggers the start of the duel.

Performs a process step of the duel.

Get the list of the messages between the last two OcgCore#duelProcess calls.

duelSetResponse(
handle: OcgDuelHandle,
response: OcgResponse,
): void

Sets the response, called after OcgCore#duelProcess returns OcgProcessResult#WAITING.

Make the core load and execute the specified script.

Counts the number of card of the specified player and location.

duelQuery(
handle: OcgDuelHandle,
query: OcgQuery,
): Partial<OcgCardQueryInfo> | null

Queries a specific card pulling only the requested informations (OcgQuery#flags)

Like OcgCore.duelQuery but for all the cards in the specified location.

Queries the current field state.

Add Package

deno add jsr:@n1xx1/ocgcore-wasm

Import symbol

import { type OcgCore } from "@n1xx1/ocgcore-wasm";

---- OR ----

Import directly with a jsr specifier

import { type OcgCore } from "jsr:@n1xx1/ocgcore-wasm";

Add Package

npx jsr add @n1xx1/ocgcore-wasm

Import symbol

import { type OcgCore } from "@n1xx1/ocgcore-wasm";

Add Package

yarn dlx jsr add @n1xx1/ocgcore-wasm

Import symbol

import { type OcgCore } from "@n1xx1/ocgcore-wasm";

Add Package

pnpm dlx jsr add @n1xx1/ocgcore-wasm

Import symbol

import { type OcgCore } from "@n1xx1/ocgcore-wasm";

Add Package

bunx jsr add @n1xx1/ocgcore-wasm

Import symbol

import { type OcgCore } from "@n1xx1/ocgcore-wasm";