Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
UltimateZoneBuilder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
UltimateZoneBuilder
Commits
c67e8dec
Commit
c67e8dec
authored
1 year ago
by
sphere
Browse files
Options
Downloads
Patches
Plain Diff
Maintain category of edited existing thing's info
parent
1afa0b9e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#4168
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Core/SRB2/LuaMobjStructure.cs
+11
-3
11 additions, 3 deletions
Source/Core/SRB2/LuaMobjStructure.cs
with
11 additions
and
3 deletions
Source/Core/SRB2/LuaMobjStructure.cs
+
11
−
3
View file @
c67e8dec
...
@@ -12,13 +12,13 @@ namespace CodeImp.DoomBuilder.ZDoom
...
@@ -12,13 +12,13 @@ namespace CodeImp.DoomBuilder.ZDoom
public
sealed
class
LuaMobjStructure
:
ActorStructure
public
sealed
class
LuaMobjStructure
:
ActorStructure
{
{
#
region
==================
DECORATE
Actor
Structure
parsing
#
region
==================
Lua
Actor
Structure
parsing
internal
LuaMobjStructure
(
ZDTextParser
zdparser
,
string
objname
,
int
editnum
)
internal
LuaMobjStructure
(
ZDTextParser
zdparser
,
string
objname
,
int
editnum
)
{
{
classname
=
string
.
Empty
;
classname
=
string
.
Empty
;
LuaParser
parser
=
(
LuaParser
)
zdparser
;
LuaParser
parser
=
(
LuaParser
)
zdparser
;
bool
done
=
false
;
//mxd
bool
done
=
false
;
//mxd
General
.
WriteLogLine
(
objname
);
General
.
WriteLogLine
(
objname
);
...
@@ -31,7 +31,15 @@ namespace CodeImp.DoomBuilder.ZDoom
...
@@ -31,7 +31,15 @@ namespace CodeImp.DoomBuilder.ZDoom
props
[
"$title"
]
=
new
List
<
string
>
{
objname
};
props
[
"$title"
]
=
new
List
<
string
>
{
objname
};
if
(
editnum
>
0
)
if
(
editnum
>
0
)
doomednum
=
editnum
;
{
Dictionary
<
int
,
ThingTypeInfo
>
thingtypes
=
General
.
Map
.
Config
.
GetThingTypes
();
thingtypes
.
TryGetValue
(
editnum
,
out
ThingTypeInfo
ti
);
if
(
ti
!=
null
)
{
doomednum
=
editnum
;
props
[
"category"
]
=
new
List
<
string
>()
{
ti
.
Category
.
Title
};
}
}
// Now parse the contents of actor structure
// Now parse the contents of actor structure
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment