Typically, when maintaining this repository, most tasks involve adding support for new functionality from the Yandex.Games SDK.
This is easy to do, and you won’t even need to open Cocos Creator. Here’s what you need to do:
-
Update the
@types/ysdk
dependency. Simply runnpm install @types/ysdk@latest
. -
Reflect the SDK changes in the
CHANGELOG.md
file. -
Update the plugin version in
package.json
. -
Run the script
npm run bundle
to generate two archives in thebundles
folder. -
From the
bundles
folder:- Publish the archive named
ysdk-cc-[version].zip
on GitHub. - Publish the archive named
ysdk.zip
on the Cocos Store.
- Publish the archive named
It may seem like a slightly lengthy process, but trust me, you’ll thank me later.
Sometimes, updating the TypeScript package isn’t enough, and you’ll need to make changes within the extension.
First, refer to the official Cocos Creator Extension Documentation.
This monorepo serves as an extension for Cocos Creator. I mean the entire repository as a whole. To start development, open the Extension Manager, click Install Extension Folder
, and select the directory where the repository is located.
This repository consists of three main parts:
-
workspaces/static
: Files available while working in the Cocos Creator editor.workspaces/static/assets
: Files visible to users of the extension in the Assets tab of the editor.
-
workspaces/electron-main
: Scripts that can extend the functionality of the Cocos Creator engine. Learn more.main
: The entry point for the extension. Here, you can declare methods callable by other engine processes.builder
: Extends the project build functionality within the engine.panels
: Adds new interfaces to the engine.server
: Undocumented functionality of Cocos Creator. It’s required only for interaction withPreview in Browser
.
-
workspaces/common
: Code that can be reused in scripts fromelectron-main
andstatic/assets
.