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 @@
...
@@ -3045,178 +3045,178 @@
var _JSON$stringify = unwrapExports(stringify);
var _JSON$stringify = unwrapExports(stringify);
var componentEmitter = createCommonjsModule(function (module) {
var componentEmitter = createCommonjsModule(function (module) {
/**
/**
* Expose `Emitter`.
* Expose `Emitter`.
*/
*/
{
{
module.exports = Emitter;
module.exports = Emitter;
}
}
/**
/**
* Initialize a new `Emitter`.
* Initialize a new `Emitter`.
*
*
* @api public
* @api public
*/
*/
function Emitter(obj) {
function Emitter(obj) {
if (obj) return mixin(obj);
if (obj) return mixin(obj);
}
}
/**
/**
* Mixin the emitter properties.
* Mixin the emitter properties.
*
*
* @param {Object} obj
* @param {Object} obj
* @return {Object}
* @return {Object}
* @api private
* @api private
*/
*/
function mixin(obj) {
function mixin(obj) {
for (var key in Emitter.prototype) {
for (var key in Emitter.prototype) {
obj[key] = Emitter.prototype[key];
obj[key] = Emitter.prototype[key];
}
}
return obj;
return obj;
}
}
/**
/**
* Listen on the given `event` with `fn`.
* Listen on the given `event` with `fn`.
*
*
* @param {String} event
* @param {String} event
* @param {Function} fn
* @param {Function} fn
* @return {Emitter}
* @return {Emitter}
* @api public
* @api public
*/
*/
Emitter.prototype.on =
Emitter.prototype.on =
Emitter.prototype.addEventListener = function(event, fn){
Emitter.prototype.addEventListener = function(event, fn){
this._callbacks = this._callbacks || {};
this._callbacks = this._callbacks || {};
(this._callbacks['$' + event] = this._callbacks['$' + event] || [])
(this._callbacks['$' + event] = this._callbacks['$' + event] || [])
.push(fn);
.push(fn);
return this;
return this;
};
};
/**
/**
* Adds an `event` listener that will be invoked a single
* Adds an `event` listener that will be invoked a single
* time then automatically removed.
* time then automatically removed.
*
*
* @param {String} event
* @param {String} event
* @param {Function} fn
* @param {Function} fn
* @return {Emitter}
* @return {Emitter}
* @api public
* @api public
*/
*/
Emitter.prototype.once = function(event, fn){
Emitter.prototype.once = function(event, fn){
function on() {
function on() {
this.off(event, on);
this.off(event, on);
fn.apply(this, arguments);
fn.apply(this, arguments);
}
}
on.fn = fn;
on.fn = fn;
this.on(event, on);
this.on(event, on);
return this;
return this;
};
};
/**
/**
* Remove the given callback for `event` or all
* Remove the given callback for `event` or all
* registered callbacks.
* registered callbacks.
*
*
* @param {String} event
* @param {String} event
* @param {Function} fn
* @param {Function} fn
* @return {Emitter}
* @return {Emitter}
* @api public
* @api public
*/
*/
Emitter.prototype.off =
Emitter.prototype.off =
Emitter.prototype.removeListener =
Emitter.prototype.removeListener =
Emitter.prototype.removeAllListeners =
Emitter.prototype.removeAllListeners =
Emitter.prototype.removeEventListener = function(event, fn){
Emitter.prototype.removeEventListener = function(event, fn){
this._callbacks = this._callbacks || {};
this._callbacks = this._callbacks || {};
// all
// all
if (0 == arguments.length) {
if (0 == arguments.length) {
this._callbacks = {};
this._callbacks = {};
return this;
return this;
}
}
// specific event
// specific event
var callbacks = this._callbacks['$' + event];
var callbacks = this._callbacks['$' + event];
if (!callbacks) return this;
if (!callbacks) return this;
// remove all handlers
// remove all handlers
if (1 == arguments.length) {
if (1 == arguments.length) {
delete this._callbacks['$' + event];
delete this._callbacks['$' + event];
return this;
return this;
}
}
// remove specific handler
// remove specific handler
var cb;
var cb;
for (var i = 0; i < callbacks.length; i++) {
for (var i = 0; i < callbacks.length; i++) {
cb = callbacks[i];
cb = callbacks[i];
if (cb === fn || cb.fn === fn) {
if (cb === fn || cb.fn === fn) {
callbacks.splice(i, 1);
callbacks.splice(i, 1);
break;
break;
}
}
}
}
// Remove event specific arrays for event types that no
// Remove event specific arrays for event types that no
// one is subscribed for to avoid memory leak.
// one is subscribed for to avoid memory leak.
if (callbacks.length === 0) {
if (callbacks.length === 0) {
delete this._callbacks['$' + event];
delete this._callbacks['$' + event];
}
}
return this;
return this;
};
};
/**
/**
* Emit `event` with the given args.
* Emit `event` with the given args.
*
*
* @param {String} event
* @param {String} event
* @param {Mixed} ...
* @param {Mixed} ...
* @return {Emitter}
* @return {Emitter}
*/
*/
Emitter.prototype.emit = function(event){
Emitter.prototype.emit = function(event){
this._callbacks = this._callbacks || {};
this._callbacks = this._callbacks || {};
var args = new Array(arguments.length - 1)
var args = new Array(arguments.length - 1)
, callbacks = this._callbacks['$' + event];
, callbacks = this._callbacks['$' + event];
for (var i = 1; i < arguments.length; i++) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
args[i - 1] = arguments[i];
}
}
if (callbacks) {
if (callbacks) {
callbacks = callbacks.slice(0);
callbacks = callbacks.slice(0);
for (var i = 0, len = callbacks.length; i < len; ++i) {
for (var i = 0, len = callbacks.length; i < len; ++i) {
callbacks[i].apply(this, args);
callbacks[i].apply(this, args);
}
}
}
}
return this;
return this;
};
};
/**
/**
* Return array of callbacks for `event`.
* Return array of callbacks for `event`.
*
*
* @param {String} event
* @param {String} event
* @return {Array}
* @return {Array}
* @api public
* @api public
*/
*/
Emitter.prototype.listeners = function(event){
Emitter.prototype.listeners = function(event){
this._callbacks = this._callbacks || {};
this._callbacks = this._callbacks || {};
return this._callbacks['$' + event] || [];
return this._callbacks['$' + event] || [];
};
};
/**
/**
* Check if this emitter has `event` handlers.
* Check if this emitter has `event` handlers.
*
*
* @param {String} event
* @param {String} event
* @return {Boolean}
* @return {Boolean}
* @api public
* @api public
*/
*/
Emitter.prototype.hasListeners = function(event){
Emitter.prototype.hasListeners = function(event){
return !! this.listeners(event).length;
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 {
...
@@ -4,10 +4,10 @@ import {
asyncTweenTo
,
asyncTweenTo
,
onHomeworkFinish
,
onHomeworkFinish
,
RandomInt
,
RandomInt
,
}
from
"
../script/util
"
;
}
from
"
../script/util
_BoardGame2
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
_BoardGame2
"
;
import
{
NetworkHelper
}
from
"
../script/NetworkHelper
"
;
import
{
NetworkHelper
}
from
"
../script/NetworkHelper
_BoardGame2
"
;
import
{
GameServer
}
from
"
../script/Server
"
;
import
{
GameServer
}
from
"
../script/Server
_BoardGame2
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
assets/BoardGame2/script/AI.ts
→
assets/BoardGame2/script/AI
_BoardGame2
.ts
View file @
304ab2f7
import
{
NetworkHelper
}
from
"
./NetworkHelper
"
;
import
{
NetworkHelper
}
from
"
./NetworkHelper
_BoardGame2
"
;
import
{
asyncDelay
}
from
"
./util
"
;
import
{
asyncDelay
}
from
"
./util
_BoardGame2
"
;
export
class
AI
{
export
class
AI
{
networkHelper
:
NetworkHelper
;
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
;
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
{
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
{
export
class
NetworkHelper
{
_eventListeners
:
any
=
{};
_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
{
asyncDelay
,
RandomInt
}
from
"
../script/util
_BoardGame2
"
;
import
{
AI
}
from
"
./AI
"
;
import
{
AI
}
from
"
./AI
_BoardGame2
"
;
import
{
NetworkHelper
}
from
"
./NetworkHelper
"
;
import
{
NetworkHelper
}
from
"
./NetworkHelper
_BoardGame2
"
;
export
class
GameServer
{
export
class
GameServer
{
playerList
=
[];
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