Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
l2_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
l2_boardgame2
Commits
8d2416af
Commit
8d2416af
authored
Jul 25, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试换类名
parent
7eccf685
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
BoardGame2_ItemData.ts
assets/l2_boardgame2/scene/BoardGame2_ItemData.ts
+3
-3
l2_boardgame2.ts
assets/l2_boardgame2/scene/l2_boardgame2.ts
+3
-3
AI.ts
assets/l2_boardgame2/script/AI.ts
+2
-2
NetworkHelper.ts
assets/l2_boardgame2/script/NetworkHelper.ts
+1
-1
Server.ts
assets/l2_boardgame2/script/Server.ts
+3
-3
No files found.
assets/l2_boardgame2/scene/BoardGame2_ItemData.ts
View file @
8d2416af
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
// Learn life-cycle callbacks:
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
@
ccclass
export
default
class
NewClass
extends
cc
.
Component
{
export
default
class
L2_boardgame2_ItemData
extends
cc
.
Component
{
@
property
@
property
letter
:
string
=
''
;
letter
:
string
=
''
;
@
property
@
property
...
@@ -16,5 +16,5 @@ export default class NewClass extends cc.Component {
...
@@ -16,5 +16,5 @@ export default class NewClass extends cc.Component {
@
property
@
property
word
:
string
=
''
;
word
:
string
=
''
;
@
property
@
property
jump
:
string
=
''
jump
:
string
=
''
}
}
assets/l2_boardgame2/scene/l2_boardgame2.ts
View file @
8d2416af
...
@@ -6,15 +6,15 @@ import {
...
@@ -6,15 +6,15 @@ import {
RandomInt
,
RandomInt
,
}
from
"
../script/util
"
;
}
from
"
../script/util
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
import
{
NetworkHelper
}
from
"
../script/NetworkHelper
"
;
import
{
L2_boardgame2_NetworkHelper
as
NetworkHelper
}
from
"
../script/NetworkHelper
"
;
import
{
GameServer
}
from
"
../script/Server
"
;
import
{
L2_boardgame2_NetworkHelper_GameServer
as
GameServer
}
from
"
../script/Server
"
;
let
win
:
any
=
window
;
let
win
:
any
=
window
;
let
courseware
=
win
.
courseware
;
let
courseware
=
win
.
courseware
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
@
ccclass
export
default
class
SceneComponent
extends
MyCocosSceneComponent
{
export
default
class
L2_boardgame2_
SceneComponent
extends
MyCocosSceneComponent
{
@
property
(
cc
.
Prefab
)
@
property
(
cc
.
Prefab
)
loadingLayerPrefab
=
null
;
loadingLayerPrefab
=
null
;
...
...
assets/l2_boardgame2/script/AI.ts
View file @
8d2416af
import
{
NetworkHelper
}
from
"
./NetworkHelper
"
;
import
{
L2_boardgame2_NetworkHelper
as
NetworkHelper
}
from
"
./NetworkHelper
"
;
import
{
asyncDelay
}
from
"
./util
"
;
import
{
asyncDelay
}
from
"
./util
"
;
export
class
AI
{
export
class
L2_boardgame2
AI
{
networkHelper
:
NetworkHelper
;
networkHelper
:
NetworkHelper
;
playerData
:
any
;
playerData
:
any
;
_status
=
{
_status
=
{
...
...
assets/l2_boardgame2/script/NetworkHelper.ts
View file @
8d2416af
import
{
RandomInt
}
from
"
./util
"
;
import
{
RandomInt
}
from
"
./util
"
;
export
class
NetworkHelper
{
export
class
L2_boardgame2_
NetworkHelper
{
_eventListeners
:
any
=
{};
_eventListeners
:
any
=
{};
ctor
()
{
}
ctor
()
{
}
...
...
assets/l2_boardgame2/script/Server.ts
View file @
8d2416af
import
{
asyncDelay
,
RandomInt
}
from
"
../script/util
"
;
import
{
asyncDelay
,
RandomInt
}
from
"
../script/util
"
;
import
{
AI
}
from
"
./AI
"
;
import
{
L2_boardgame2AI
as
AI
}
from
"
./AI
"
;
import
{
NetworkHelper
}
from
"
./NetworkHelper
"
;
import
{
L2_boardgame2_NetworkHelper
as
NetworkHelper
}
from
"
./NetworkHelper
"
;
export
class
GameServer
{
export
class
L2_boardgame2_NetworkHelper_
GameServer
{
playerList
=
[];
playerList
=
[];
playerMaxNumber
=
0
;
playerMaxNumber
=
0
;
networkHelper
:
NetworkHelper
=
null
;
networkHelper
:
NetworkHelper
=
null
;
...
...
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