Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赤子奈落
ygopro
Commits
f5d1f205
Commit
f5d1f205
authored
Mar 15, 2025
by
Chen Bill
Committed by
GitHub
Mar 15, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Game::Initialize (#2725)
parent
94fb5bc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
42 deletions
+27
-42
gframe/game.cpp
gframe/game.cpp
+0
-15
gframe/game.h
gframe/game.h
+27
-27
No files found.
gframe/game.cpp
View file @
f5d1f205
...
@@ -83,19 +83,6 @@ bool Game::Initialize() {
...
@@ -83,19 +83,6 @@ bool Game::Initialize() {
#ifndef _DEBUG
#ifndef _DEBUG
device
->
getLogger
()
->
setLogLevel
(
irr
::
ELOG_LEVEL
::
ELL_ERROR
);
device
->
getLogger
()
->
setLogLevel
(
irr
::
ELOG_LEVEL
::
ELL_ERROR
);
#endif
#endif
xScale
=
1
;
yScale
=
1
;
linePatternD3D
=
0
;
linePatternGL
=
0x0f0f
;
waitFrame
=
0
;
signalFrame
=
0
;
showcard
=
0
;
is_attacking
=
false
;
lpframe
=
0
;
always_chain
=
false
;
ignore_chain
=
false
;
chain_when_avail
=
false
;
is_building
=
false
;
deckManager
.
LoadLFList
();
deckManager
.
LoadLFList
();
driver
=
device
->
getVideoDriver
();
driver
=
device
->
getVideoDriver
();
driver
->
setTextureCreationFlag
(
irr
::
video
::
ETCF_CREATE_MIP_MAPS
,
false
);
driver
->
setTextureCreationFlag
(
irr
::
video
::
ETCF_CREATE_MIP_MAPS
,
false
);
...
@@ -982,8 +969,6 @@ bool Game::Initialize() {
...
@@ -982,8 +969,6 @@ bool Game::Initialize() {
yScale
=
window_size
.
Height
/
640.0
;
yScale
=
window_size
.
Height
/
640.0
;
OnResize
();
OnResize
();
}
}
hideChat
=
false
;
hideChatTimer
=
0
;
return
true
;
return
true
;
}
}
void
Game
::
MainLoop
()
{
void
Game
::
MainLoop
()
{
...
...
gframe/game.h
View file @
f5d1f205
...
@@ -240,41 +240,41 @@ public:
...
@@ -240,41 +240,41 @@ public:
std
::
wstring
chatMsg
[
8
];
std
::
wstring
chatMsg
[
8
];
std
::
vector
<
BotInfo
>
botInfo
;
std
::
vector
<
BotInfo
>
botInfo
;
int
hideChatTimer
;
int
hideChatTimer
{}
;
bool
hideChat
;
bool
hideChat
{}
;
int
chatTiming
[
8
]{};
int
chatTiming
[
8
]{};
int
chatType
[
8
]{};
int
chatType
[
8
]{};
unsigned
short
linePatternD3D
;
unsigned
short
linePatternD3D
{}
;
unsigned
short
linePatternGL
;
unsigned
short
linePatternGL
{
0x0f0f
}
;
int
waitFrame
;
int
waitFrame
{}
;
int
signalFrame
;
int
signalFrame
{}
;
int
actionParam
;
int
actionParam
{}
;
int
showingcode
;
int
showingcode
{}
;
const
wchar_t
*
showingtext
;
const
wchar_t
*
showingtext
{}
;
int
showcard
;
int
showcard
{}
;
int
showcardcode
;
int
showcardcode
{}
;
int
showcarddif
;
int
showcarddif
{}
;
int
showcardp
;
int
showcardp
{}
;
int
is_attacking
;
int
is_attacking
{}
;
int
attack_sv
;
int
attack_sv
{}
;
irr
::
core
::
vector3df
atk_r
;
irr
::
core
::
vector3df
atk_r
;
irr
::
core
::
vector3df
atk_t
;
irr
::
core
::
vector3df
atk_t
;
float
atkdy
;
float
atkdy
{}
;
int
lpframe
;
int
lpframe
{}
;
int
lpd
;
int
lpd
{}
;
int
lpplayer
;
int
lpplayer
{}
;
int
lpccolor
;
int
lpccolor
{}
;
std
::
wstring
lpcstring
;
std
::
wstring
lpcstring
;
bool
always_chain
;
bool
always_chain
{}
;
bool
ignore_chain
;
bool
ignore_chain
{}
;
bool
chain_when_avail
;
bool
chain_when_avail
{}
;
bool
is_building
;
bool
is_building
{}
;
bool
is_siding
;
bool
is_siding
{}
;
irr
::
core
::
dimension2d
<
irr
::
u32
>
window_size
;
irr
::
core
::
dimension2d
<
irr
::
u32
>
window_size
;
float
xScale
;
float
xScale
{
1.0
f
}
;
float
yScale
;
float
yScale
{
1.0
f
}
;
ClientField
dField
;
ClientField
dField
;
DeckBuilder
deckBuilder
;
DeckBuilder
deckBuilder
;
...
...
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