Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
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
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
MyCard
magicseteditor
Commits
867ce0d1
Commit
867ce0d1
authored
Dec 19, 2006
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed: GetMember works on values without save_value
parent
3cb34e10
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
5 deletions
+10
-5
src/data/field/choice.cpp
src/data/field/choice.cpp
+1
-1
src/data/field/color.cpp
src/data/field/color.cpp
+1
-1
src/data/field/image.cpp
src/data/field/image.cpp
+1
-1
src/data/field/symbol.cpp
src/data/field/symbol.cpp
+1
-1
src/data/field/text.cpp
src/data/field/text.cpp
+1
-1
src/util/io/get_member.hpp
src/util/io/get_member.hpp
+2
-0
src/util/io/reader.hpp
src/util/io/reader.hpp
+2
-0
src/util/io/writer.hpp
src/util/io/writer.hpp
+1
-0
No files found.
src/data/field/choice.cpp
View file @
867ce0d1
...
...
@@ -226,5 +226,5 @@ bool ChoiceValue::update(Context& ctx) {
}
IMPLEMENT_REFLECTION_NAMELESS
(
ChoiceValue
)
{
if
(
fieldP
->
save_value
)
REFLECT_NAMELESS
(
value
);
if
(
fieldP
->
save_value
||
tag
.
scripting
()
)
REFLECT_NAMELESS
(
value
);
}
src/data/field/color.cpp
View file @
867ce0d1
...
...
@@ -82,5 +82,5 @@ bool ColorValue::update(Context& ctx) {
}
IMPLEMENT_REFLECTION_NAMELESS
(
ColorValue
)
{
if
(
fieldP
->
save_value
)
REFLECT_NAMELESS
(
value
);
if
(
fieldP
->
save_value
||
tag
.
scripting
()
)
REFLECT_NAMELESS
(
value
);
}
src/data/field/image.cpp
View file @
867ce0d1
...
...
@@ -36,5 +36,5 @@ String ImageValue::toString() const {
}
IMPLEMENT_REFLECTION_NAMELESS
(
ImageValue
)
{
if
(
fieldP
->
save_value
)
REFLECT_NAMELESS
(
filename
);
if
(
fieldP
->
save_value
||
tag
.
scripting
()
)
REFLECT_NAMELESS
(
filename
);
}
src/data/field/symbol.cpp
View file @
867ce0d1
...
...
@@ -46,5 +46,5 @@ String SymbolValue::toString() const {
}
IMPLEMENT_REFLECTION_NAMELESS
(
SymbolValue
)
{
if
(
fieldP
->
save_value
)
REFLECT_NAMELESS
(
filename
);
if
(
fieldP
->
save_value
||
tag
.
scripting
()
)
REFLECT_NAMELESS
(
filename
);
}
src/data/field/text.cpp
View file @
867ce0d1
...
...
@@ -99,5 +99,5 @@ bool TextValue::update(Context& ctx) {
}
IMPLEMENT_REFLECTION_NAMELESS
(
TextValue
)
{
if
(
fieldP
->
save_value
)
REFLECT_NAMELESS
(
value
);
if
(
fieldP
->
save_value
||
tag
.
scripting
()
)
REFLECT_NAMELESS
(
value
);
}
src/util/io/get_member.hpp
View file @
867ce0d1
...
...
@@ -27,6 +27,7 @@ class GetDefaultMember {
public:
/// Tell the reflection code we are not reading
inline
bool
reading
()
const
{
return
false
;
}
inline
bool
scripting
()
const
{
return
true
;
}
inline
bool
isComplex
()
const
{
return
false
;
}
inline
void
addAlias
(
int
,
const
Char
*
,
const
Char
*
)
{}
inline
void
handleAppVersion
()
{}
// no effect
...
...
@@ -67,6 +68,7 @@ class GetMember : private GetDefaultMember {
/// Tell the reflection code we are not reading
inline
bool
reading
()
const
{
return
false
;
}
inline
bool
scripting
()
const
{
return
true
;
}
inline
bool
isComplex
()
const
{
return
false
;
}
inline
void
addAlias
(
int
,
const
Char
*
,
const
Char
*
)
{}
inline
void
handleAppVersion
()
{}
// no effect
...
...
src/util/io/reader.hpp
View file @
867ce0d1
...
...
@@ -46,6 +46,8 @@ class Reader {
/// Tell the reflection code we are reading
inline
bool
reading
()
const
{
return
true
;
}
/// Tell the reflection code we are not related to scripting
inline
bool
scripting
()
const
{
return
false
;
}
/// Is the thing currently being read 'complex', i.e. does it have children
inline
bool
isComplex
()
const
{
return
value
.
empty
();
}
/// Add a as an alias for b, all keys a will be replaced with b, only if file_app_version < end_version
...
...
src/util/io/writer.hpp
View file @
867ce0d1
...
...
@@ -30,6 +30,7 @@ class Writer {
/// Tell the reflection code we are not reading
inline
bool
reading
()
const
{
return
false
;
}
inline
bool
scripting
()
const
{
return
false
;
}
inline
bool
isComplex
()
const
{
return
false
;
}
inline
void
addAlias
(
int
,
const
Char
*
,
const
Char
*
)
{}
...
...
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