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
4 months ago (0.0.29)
f
cardMatchesOpcode

Utility function to check if the specified card matches the opcode sequence.

I
Initializer

The initializer to create a core. If both Initializer.locateFile andInitializer.wasmBinary are missing then it will be importedautomatically.

T
InitializerAsync

Initialize async version

T
InitializerSync

Initialize sync version

T
InternalDepromisifyFunction
No documentation available
T
InternalMappedMap
No documentation available
T
v
OcgAttribute

Monster card attribute.

f
ocgAttributeParse

Parse a (OcgAttribute:type) mask and return the matching attributes.

v
ocgAttributeString
No documentation available
I
OcgCardData

Card data definition. These values should be imported as is from thecards.cdb of the card database you want to use. These will be requestedin OcgDuelOptions#cardReader.

E
OcgCardHintType
No documentation available
v
ocgCardHintTypeStrings
No documentation available
I
OcgCardLoc

Card passcode, location.

I
OcgCardLocActive

Card passcode, location, effect activation info.

I
OcgCardLocAttack

Card passcode, location, attack info.

I
OcgCardLocBattle

Card passcode, location, battle stats.

I
OcgCardLocCounter

Card passcode, location, counter info.

I
OcgCardLocPos

Card passcode, location, position.

I
OcgCardLocPosActive

Card passcode, location, position, activation info.

I
OcgCardLocSum

Card passcode, location, sum info

I
OcgCardLocTribute

Card passcode, location, tribute info.

I
OcgCardPos

Card passcode and position.

T
OcgCardQueryInfo
No documentation available
I
OcgCardQueryInfoCard

Returned cards by OcgCardQueryInfo.

I
OcgChain

Card passcode, location, position, chain info.

I
OcgCore

OcgCore interface.

T
OcgCoreSync
No documentation available
I
OcgDuelHandle

Internal representation of a duel.

T
v
OcgDuelMode

Duel creation options.

f
ocgDuelModeParse

Parse a (OcgDuelMode:type) mask and return the matching options.

v
ocgDuelModeString
No documentation available
I
OcgDuelOptions

Duel creation options.

T
OcgDuelOptionsSync

Remapped options for the sync version of the core.

I
OcgDuelOptionsTeam

Duel creation team settings.

E
OcgEffectClientMode
No documentation available
v
ocgEffectClientModeStrings
No documentation available
I
OcgFieldCard
No documentation available
I
OcgFieldPlayer
No documentation available
T
OcgFieldState
No documentation available
v
ocgHintString
No documentation available
T
v
OcgHintType

Hint type.

T
v
OcgLinkMarker

Link monster markers positions.

f
ocgLinkMarkerParse

Parse a (OcgLinkMarker:type) mask and return the matching markers.

v
ocgLinkMarkerString
No documentation available
T
v
OcgLocation

Location of a card.

v
ocgLocationString
No documentation available
I
OcgLocPos

Location and position.

T
v
OcgLogType

Log type.

v
ocgLogTypeString
No documentation available
T
OcgMessage
No documentation available
I
OcgMessageAddCounter
No documentation available
I
OcgMessageAiName
No documentation available
I
OcgMessageAnnounceAttrib
No documentation available
I
OcgMessageAnnounceCard
No documentation available
I
OcgMessageAnnounceNumber
No documentation available
I
OcgMessageAnnounceRace
No documentation available
I
OcgMessageAttack
No documentation available
I
OcgMessageAttackDisabled
No documentation available
I
OcgMessageBattle
No documentation available
I
OcgMessageBeChainTarget
No documentation available
I
OcgMessageBecomeTarget
No documentation available
I
OcgMessageCancelTarget
No documentation available
I
OcgMessageCardHint
No documentation available
I
OcgMessageCardSelected
No documentation available
I
OcgMessageCardTarget
No documentation available
I
OcgMessageChainDisabled
No documentation available
I
OcgMessageChained
No documentation available
I
OcgMessageChainEnd
No documentation available
I
OcgMessageChaining
No documentation available
I
OcgMessageChainNegated
No documentation available
I
OcgMessageChainSolved
No documentation available
I
OcgMessageChainSolving
No documentation available
I
OcgMessageConfirmCards
No documentation available
I
OcgMessageConfirmDeckTop
No documentation available
I
OcgMessageConfirmExtratop
No documentation available
I
OcgMessageCreateRelation
No documentation available
I
OcgMessageCustomMsg
No documentation available
I
OcgMessageDamage
No documentation available
I
OcgMessageDamageStepEnd
No documentation available
I
OcgMessageDamageStepStart
No documentation available
I
OcgMessageDeckTop
No documentation available
I
OcgMessageDraw
No documentation available
I
OcgMessageEquip
No documentation available
I
OcgMessageFieldDisabled
No documentation available
I
OcgMessageFlipsummoned
No documentation available
I
OcgMessageFlipsummoning
No documentation available
I
OcgMessageHandRes
No documentation available
I
OcgMessageHint

Additional information, usually card specific or for things that don't belong to a specific message.

I
OcgMessageLPUpdate
No documentation available
I
OcgMessageMatchKill
No documentation available
I
OcgMessageMissedEffect
No documentation available
I
OcgMessageMove
No documentation available
I
OcgMessageNewPhase
No documentation available
I
OcgMessageNewTurn
No documentation available
I
OcgMessagePayLPCost
No documentation available
I
OcgMessagePlayerHint
No documentation available
I
OcgMessagePosChange
No documentation available
I
OcgMessageRandomSelected
No documentation available
I
OcgMessageRecover
No documentation available
I
OcgMessageRefreshDeck
No documentation available
I
OcgMessageReleaseRelation
No documentation available
I
OcgMessageReloadField
No documentation available
I
OcgMessageRemoveCards
No documentation available
I
OcgMessageRemoveCounter
No documentation available
I
OcgMessageRetry

Sent when an invalid response was provided.

I
OcgMessageReverseDeck
No documentation available
I
OcgMessageRockPaperScissors
No documentation available
I
OcgMessageSelectBattleCMD

Available battle step actions.

I
OcgMessageSelectCard
No documentation available
I
OcgMessageSelectChain
No documentation available
I
OcgMessageSelectCounter
No documentation available
I
OcgMessageSelectDisfield
No documentation available
I
OcgMessageSelectEffectYN
No documentation available
I
OcgMessageSelectIdlecmd

Available main phase actions.

I
OcgMessageSelectOption
No documentation available
I
OcgMessageSelectPlace
No documentation available
I
OcgMessageSelectPosition
No documentation available
I
OcgMessageSelectSum
No documentation available
I
OcgMessageSelectTribute
No documentation available
I
OcgMessageSelectUnselectCard
No documentation available
I
OcgMessageSelectYesno
No documentation available
I
OcgMessageSet
No documentation available
I
OcgMessageShowHint
No documentation available
I
OcgMessageShuffleDeck
No documentation available
I
OcgMessageShuffleExtra
No documentation available
I
OcgMessageShuffleHand
No documentation available
I
OcgMessageShuffleSetCard
No documentation available
I
OcgMessageSortCard
No documentation available
I
OcgMessageSortChain
No documentation available
I
OcgMessageSpsummoned
No documentation available
I
OcgMessageSpsummoning
No documentation available
I
OcgMessageStart

Duel start.

I
OcgMessageSummoned
No documentation available
I
OcgMessageSummoning
No documentation available
I
OcgMessageSwap
No documentation available
I
OcgMessageSwapGraveDeck
No documentation available
I
OcgMessageTagSwap
No documentation available
I
OcgMessageTossCoin
No documentation available
I
OcgMessageTossDice
No documentation available
E
OcgMessageType

Message type enum.

v
ocgMessageTypeStrings
No documentation available
I
OcgMessageWaiting

Provide a response.

I
OcgMessageWin

Duel win.

I
OcgNewCardInfo

Card creation definition. Used in OcgCore#duelNewCard.

T
v
OcgOpCode

Opcode for the stack based card announcing process, used in OcgMessageAnnounceCard.

v
ocgOpCodeString

Convert a (OcgOpCode:type) to its string representation.

T
v
OcgPhase

Turn phase.

v
ocgPhaseString
No documentation available
E
OcgPlayerHintType
No documentation available
v
ocgPlayerHintTypeStrings
No documentation available
T
v
OcgPosition

Position (faceup or facedown and defense or attack) of a card.

f
ocgPositionParse

Parse a position mask and returns the list of actual positions it matches.

v
ocgPositionString
No documentation available
T
v
OcgProcessResult

The result of each call to OcgCore#duelProcess.

v
ocgProcessResultString
No documentation available
I
OcgQuery

Query interface to request information about a location.

T
v
OcgQueryFlags

Requested card properties, used when querying.

v
ocgQueryFlagsString
No documentation available
T
OcgQueryLocation
No documentation available
T
v
OcgRace

Monster card race.

f
ocgRaceParse

Parse a (OcgRace:type) mask and return the matching races.

v
ocgRaceString
No documentation available
T
OcgResponse
No documentation available
T
OcgResponseAnnounceAttrib
No documentation available
T
OcgResponseAnnounceCard
No documentation available
T
OcgResponseAnnounceNumber
No documentation available
T
OcgResponseAnnounceRace
No documentation available
T
OcgResponseRockPaperScissors
No documentation available
T
OcgResponseSelectBattleCMD
No documentation available
T
OcgResponseSelectCard
No documentation available
T
OcgResponseSelectCardCodes
No documentation available
T
OcgResponseSelectChain
No documentation available
T
OcgResponseSelectCounter
No documentation available
T
OcgResponseSelectDisfield
No documentation available
T
OcgResponseSelectEffectYN
No documentation available
T
OcgResponseSelectIdleCMD
No documentation available
T
OcgResponseSelectOption
No documentation available
T
OcgResponseSelectPlace
No documentation available
T
OcgResponseSelectPosition
No documentation available
T
OcgResponseSelectSum
No documentation available
T
OcgResponseSelectTribute
No documentation available
T
OcgResponseSelectUnselectCard
No documentation available
T
OcgResponseSelectYesNo
No documentation available
T
OcgResponseSortCard
No documentation available
E
OcgResponseType
No documentation available
T
v
OcgRPS

Rock paper scissor.

v
ocgRPSString
No documentation available
T
v
OcgScope

Legality scope of a card.

v
ocgScopeString
No documentation available
T
v
OcgType

Card type (monster/spell/trap and additional properties in case of a monster).

f
ocgTypeParse

Parse a OcgType mask and return the matching types.

v
ocgTypeString
No documentation available
v
responseTypeStrings
No documentation available
E
SelectBattleCMDAction
No documentation available
v
selectBattleCMDActionStrings
No documentation available
T
SelectFieldPlace
No documentation available
E
SelectIdleCMDAction
No documentation available
v
selectIdleCMDActionStrings
No documentation available
I
OcgMessageRequestDeck
No documentation available
I
OcgMessageUpdateCard
No documentation available
I
OcgMessageUpdateData
No documentation available