Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BoardGame2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
BoardGame2
Commits
304ab2f7
Commit
304ab2f7
authored
Mar 17, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 改名走流水线
parent
5a891e69
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
199 additions
and
185 deletions
+199
-185
BoardGame2.meta
assets/BoardGame2.meta
+15
-1
play_BoardGame2.d.ts
assets/BoardGame2/leanCloud/play_BoardGame2.d.ts
+0
-0
play_BoardGame2.d.ts.meta
assets/BoardGame2/leanCloud/play_BoardGame2.d.ts.meta
+0
-0
play_BoardGame2.js
assets/BoardGame2/leanCloud/play_BoardGame2.js
+172
-172
play_BoardGame2.js.meta
assets/BoardGame2/leanCloud/play_BoardGame2.js.meta
+0
-0
BoardGame2.ts
assets/BoardGame2/scene/BoardGame2.ts
+4
-4
AI_BoardGame2.ts
assets/BoardGame2/script/AI_BoardGame2.ts
+2
-2
AI_BoardGame2.ts.meta
assets/BoardGame2/script/AI_BoardGame2.ts.meta
+0
-0
BoardGame2_LoadingLayer.ts
assets/BoardGame2/script/BoardGame2_LoadingLayer.ts
+1
-1
MyCocosSceneComponent_BoardGame2.ts
assets/BoardGame2/script/MyCocosSceneComponent_BoardGame2.ts
+1
-1
MyCocosSceneComponent_BoardGame2.ts.meta
...oardGame2/script/MyCocosSceneComponent_BoardGame2.ts.meta
+0
-0
NetworkHelper_BoardGame2.ts
assets/BoardGame2/script/NetworkHelper_BoardGame2.ts
+1
-1
NetworkHelper_BoardGame2.ts.meta
assets/BoardGame2/script/NetworkHelper_BoardGame2.ts.meta
+0
-0
Server_BoardGame2.ts
assets/BoardGame2/script/Server_BoardGame2.ts
+3
-3
Server_BoardGame2.ts.meta
assets/BoardGame2/script/Server_BoardGame2.ts.meta
+0
-0
defaultData_BoardGame2.ts
assets/BoardGame2/script/defaultData_BoardGame2.ts
+0
-0
defaultData_BoardGame2.ts.meta
assets/BoardGame2/script/defaultData_BoardGame2.ts.meta
+0
-0
util_BoardGame2.ts
assets/BoardGame2/script/util_BoardGame2.ts
+0
-0
util_BoardGame2.ts.meta
assets/BoardGame2/script/util_BoardGame2.ts.meta
+0
-0
No files found.
assets/BoardGame2.meta
View file @
304ab2f7
{"ver":"1.1.2","uuid":"7f32c18d-fd04-4689-8f8d-11beca185b0c","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "7f32c18d-fd04-4689-8f8d-11beca185b0c",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/BoardGame2/leanCloud/play.d.ts
→
assets/BoardGame2/leanCloud/play
_BoardGame2
.d.ts
View file @
304ab2f7
File moved
assets/BoardGame2/leanCloud/play.d.ts.meta
→
assets/BoardGame2/leanCloud/play
_BoardGame2
.d.ts.meta
View file @
304ab2f7
File moved
assets/BoardGame2/leanCloud/play.js
→
assets/BoardGame2/leanCloud/play
_BoardGame2
.js
View file @
304ab2f7
...
...
@@ -3045,178 +3045,178 @@
var _JSON$stringify = unwrapExports(stringify);
var componentEmitter = createCommonjsModule(function (module) {
/**
* Expose `Emitter`.
*/
{
module.exports = Emitter;
}
/**
* Initialize a new `Emitter`.
*
* @api public
*/
function Emitter(obj) {
if (obj) return mixin(obj);
}
/**
* Mixin the emitter properties.
*
* @param {Object} obj
* @return {Object}
* @api private
*/
function mixin(obj) {
for (var key in Emitter.prototype) {
obj[key] = Emitter.prototype[key];
}
return obj;
}
/**
* Listen on the given `event` with `fn`.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
Emitter.prototype.on =
Emitter.prototype.addEventListener = function(event, fn){
this._callbacks = this._callbacks || {};
(this._callbacks['$' + event] = this._callbacks['$' + event] || [])
.push(fn);
return this;
};
/**
* Adds an `event` listener that will be invoked a single
* time then automatically removed.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
Emitter.prototype.once = function(event, fn){
function on() {
this.off(event, on);
fn.apply(this, arguments);
}
on.fn = fn;
this.on(event, on);
return this;
};
/**
* Remove the given callback for `event` or all
* registered callbacks.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
Emitter.prototype.off =
Emitter.prototype.removeListener =
Emitter.prototype.removeAllListeners =
Emitter.prototype.removeEventListener = function(event, fn){
this._callbacks = this._callbacks || {};
// all
if (0 == arguments.length) {
this._callbacks = {};
return this;
}
// specific event
var callbacks = this._callbacks['$' + event];
if (!callbacks) return this;
// remove all handlers
if (1 == arguments.length) {
delete this._callbacks['$' + event];
return this;
}
// remove specific handler
var cb;
for (var i = 0; i < callbacks.length; i++) {
cb = callbacks[i];
if (cb === fn || cb.fn === fn) {
callbacks.splice(i, 1);
break;
}
}
// Remove event specific arrays for event types that no
// one is subscribed for to avoid memory leak.
if (callbacks.length === 0) {
delete this._callbacks['$' + event];
}
return this;
};
/**
* Emit `event` with the given args.
*
* @param {String} event
* @param {Mixed} ...
* @return {Emitter}
*/
Emitter.prototype.emit = function(event){
this._callbacks = this._callbacks || {};
var args = new Array(arguments.length - 1)
, callbacks = this._callbacks['$' + event];
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
if (callbacks) {
callbacks = callbacks.slice(0);
for (var i = 0, len = callbacks.length; i < len; ++i) {
callbacks[i].apply(this, args);
}
}
return this;
};
/**
* Return array of callbacks for `event`.
*
* @param {String} event
* @return {Array}
* @api public
*/
Emitter.prototype.listeners = function(event){
this._callbacks = this._callbacks || {};
return this._callbacks['$' + event] || [];
};
/**
* Check if this emitter has `event` handlers.
*
* @param {String} event
* @return {Boolean}
* @api public
*/
Emitter.prototype.hasListeners = function(event){
return !! this.listeners(event).length;
/**
* Expose `Emitter`.
*/
{
module.exports = Emitter;
}
/**
* Initialize a new `Emitter`.
*
* @api public
*/
function Emitter(obj) {
if (obj) return mixin(obj);
}
/**
* Mixin the emitter properties.
*
* @param {Object} obj
* @return {Object}
* @api private
*/
function mixin(obj) {
for (var key in Emitter.prototype) {
obj[key] = Emitter.prototype[key];
}
return obj;
}
/**
* Listen on the given `event` with `fn`.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
Emitter.prototype.on =
Emitter.prototype.addEventListener = function(event, fn){
this._callbacks = this._callbacks || {};
(this._callbacks['$' + event] = this._callbacks['$' + event] || [])
.push(fn);
return this;
};
/**
* Adds an `event` listener that will be invoked a single
* time then automatically removed.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
Emitter.prototype.once = function(event, fn){
function on() {
this.off(event, on);
fn.apply(this, arguments);
}
on.fn = fn;
this.on(event, on);
return this;
};
/**
* Remove the given callback for `event` or all
* registered callbacks.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
Emitter.prototype.off =
Emitter.prototype.removeListener =
Emitter.prototype.removeAllListeners =
Emitter.prototype.removeEventListener = function(event, fn){
this._callbacks = this._callbacks || {};
// all
if (0 == arguments.length) {
this._callbacks = {};
return this;
}
// specific event
var callbacks = this._callbacks['$' + event];
if (!callbacks) return this;
// remove all handlers
if (1 == arguments.length) {
delete this._callbacks['$' + event];
return this;
}
// remove specific handler
var cb;
for (var i = 0; i < callbacks.length; i++) {
cb = callbacks[i];
if (cb === fn || cb.fn === fn) {
callbacks.splice(i, 1);
break;
}
}
// Remove event specific arrays for event types that no
// one is subscribed for to avoid memory leak.
if (callbacks.length === 0) {
delete this._callbacks['$' + event];
}
return this;
};
/**
* Emit `event` with the given args.
*
* @param {String} event
* @param {Mixed} ...
* @return {Emitter}
*/
Emitter.prototype.emit = function(event){
this._callbacks = this._callbacks || {};
var args = new Array(arguments.length - 1)
, callbacks = this._callbacks['$' + event];
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
if (callbacks) {
callbacks = callbacks.slice(0);
for (var i = 0, len = callbacks.length; i < len; ++i) {
callbacks[i].apply(this, args);
}
}
return this;
};
/**
* Return array of callbacks for `event`.
*
* @param {String} event
* @return {Array}
* @api public
*/
Emitter.prototype.listeners = function(event){
this._callbacks = this._callbacks || {};
return this._callbacks['$' + event] || [];
};
/**
* Check if this emitter has `event` handlers.
*
* @param {String} event
* @return {Boolean}
* @api public
*/
Emitter.prototype.hasListeners = function(event){
return !! this.listeners(event).length;
};
});
assets/BoardGame2/leanCloud/play.js.meta
→
assets/BoardGame2/leanCloud/play
_BoardGame2
.js.meta
View file @
304ab2f7
File moved
assets/BoardGame2/scene/BoardGame2.ts
View file @
304ab2f7
...
...
@@ -4,10 +4,10 @@ import {
asyncTweenTo
,
onHomeworkFinish
,
RandomInt
,
}
from
"
../script/util
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
import
{
NetworkHelper
}
from
"
../script/NetworkHelper
"
;
import
{
GameServer
}
from
"
../script/Server
"
;
}
from
"
../script/util
_BoardGame2
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
_BoardGame2
"
;
import
{
NetworkHelper
}
from
"
../script/NetworkHelper
_BoardGame2
"
;
import
{
GameServer
}
from
"
../script/Server
_BoardGame2
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
assets/BoardGame2/script/AI.ts
→
assets/BoardGame2/script/AI
_BoardGame2
.ts
View file @
304ab2f7
import
{
NetworkHelper
}
from
"
./NetworkHelper
"
;
import
{
asyncDelay
}
from
"
./util
"
;
import
{
NetworkHelper
}
from
"
./NetworkHelper
_BoardGame2
"
;
import
{
asyncDelay
}
from
"
./util
_BoardGame2
"
;
export
class
AI
{
networkHelper
:
NetworkHelper
;
...
...
assets/BoardGame2/script/AI.ts.meta
→
assets/BoardGame2/script/AI
_BoardGame2
.ts.meta
View file @
304ab2f7
File moved
assets/BoardGame2/script/BoardGame2_LoadingLayer.ts
View file @
304ab2f7
import
{
asyncPlayDragonBoneAnimation
}
from
"
./util
"
;
import
{
asyncPlayDragonBoneAnimation
}
from
"
./util
_BoardGame2
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
assets/BoardGame2/script/MyCocosSceneComponent.ts
→
assets/BoardGame2/script/MyCocosSceneComponent
_BoardGame2
.ts
View file @
304ab2f7
import
{
defaultData
}
from
"
../script/defaultData
"
;
import
{
defaultData
}
from
"
../script/defaultData
_BoardGame2
"
;
export
class
MyCocosSceneComponent
extends
cc
.
Component
{
...
...
assets/BoardGame2/script/MyCocosSceneComponent.ts.meta
→
assets/BoardGame2/script/MyCocosSceneComponent
_BoardGame2
.ts.meta
View file @
304ab2f7
File moved
assets/BoardGame2/script/NetworkHelper.ts
→
assets/BoardGame2/script/NetworkHelper
_BoardGame2
.ts
View file @
304ab2f7
import
{
RandomInt
}
from
"
./util
"
;
import
{
RandomInt
}
from
"
./util
_BoardGame2
"
;
export
class
NetworkHelper
{
_eventListeners
:
any
=
{};
...
...
assets/BoardGame2/script/NetworkHelper.ts.meta
→
assets/BoardGame2/script/NetworkHelper
_BoardGame2
.ts.meta
View file @
304ab2f7
File moved
assets/BoardGame2/script/Server.ts
→
assets/BoardGame2/script/Server
_BoardGame2
.ts
View file @
304ab2f7
import
{
asyncDelay
,
RandomInt
}
from
"
../script/util
"
;
import
{
AI
}
from
"
./AI
"
;
import
{
NetworkHelper
}
from
"
./NetworkHelper
"
;
import
{
asyncDelay
,
RandomInt
}
from
"
../script/util
_BoardGame2
"
;
import
{
AI
}
from
"
./AI
_BoardGame2
"
;
import
{
NetworkHelper
}
from
"
./NetworkHelper
_BoardGame2
"
;
export
class
GameServer
{
playerList
=
[];
...
...
assets/BoardGame2/script/Server.ts.meta
→
assets/BoardGame2/script/Server
_BoardGame2
.ts.meta
View file @
304ab2f7
File moved
assets/BoardGame2/script/defaultData.ts
→
assets/BoardGame2/script/defaultData
_BoardGame2
.ts
View file @
304ab2f7
File moved
assets/BoardGame2/script/defaultData.ts.meta
→
assets/BoardGame2/script/defaultData
_BoardGame2
.ts.meta
View file @
304ab2f7
File moved
assets/BoardGame2/script/util.ts
→
assets/BoardGame2/script/util
_BoardGame2
.ts
View file @
304ab2f7
File moved
assets/BoardGame2/script/util.ts.meta
→
assets/BoardGame2/script/util
_BoardGame2
.ts.meta
View file @
304ab2f7
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment