Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Niflib
Commits
816f5ece
Commit
816f5ece
authored
16 years ago
by
Amorilia
Browse files
Options
Downloads
Patches
Plain Diff
nif.xml: Variable Offset x -> Variable x Offset (syncing with pyffi)
parent
f3b976fe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/gen/ControllerLink.h
+2
-2
2 additions, 2 deletions
include/gen/ControllerLink.h
src/gen/ControllerLink.cpp
+3
-3
3 additions, 3 deletions
src/gen/ControllerLink.cpp
src/obj/NiSequence.cpp
+6
-6
6 additions, 6 deletions
src/obj/NiSequence.cpp
with
11 additions
and
11 deletions
include/gen/ControllerLink.h
+
2
−
2
View file @
816f5ece
...
@@ -94,7 +94,7 @@ struct ControllerLink {
...
@@ -94,7 +94,7 @@ struct ControllerLink {
* Offset in the string palette where some variable string starts (such as
* Offset in the string palette where some variable string starts (such as
* 'SELF_ILLUM', '0-0-TT_TRANSLATE_U', 'tongue_out', etc.). Usually, -1.
* 'SELF_ILLUM', '0-0-TT_TRANSLATE_U', 'tongue_out', etc.). Usually, -1.
*/
*/
unsigned
int
variableOffset
1
;
unsigned
int
variable
1
Offset
;
/*! Another variable string, apparently used for particle system controllers. */
/*! Another variable string, apparently used for particle system controllers. */
IndexString
variable2
;
IndexString
variable2
;
/*!
/*!
...
@@ -102,7 +102,7 @@ struct ControllerLink {
...
@@ -102,7 +102,7 @@ struct ControllerLink {
* 'EmitterActive' and 'BirthRate' have been observed in official files, used for
* 'EmitterActive' and 'BirthRate' have been observed in official files, used for
* particle system controllers). Usually, -1.
* particle system controllers). Usually, -1.
*/
*/
unsigned
int
variableOffset
2
;
unsigned
int
variable
2
Offset
;
};
};
}
}
...
...
This diff is collapsed.
Click to expand it.
src/gen/ControllerLink.cpp
+
3
−
3
View file @
816f5ece
...
@@ -13,7 +13,7 @@ All rights reserved. Please see niflib.h for license. */
...
@@ -13,7 +13,7 @@ All rights reserved. Please see niflib.h for license. */
using
namespace
Niflib
;
using
namespace
Niflib
;
//Constructor
//Constructor
ControllerLink
::
ControllerLink
()
:
controller
(
NULL
),
interpolator
(
NULL
),
unknownLink2
(
NULL
),
unknownShort0
((
unsigned
short
)
0
),
priority
((
byte
)
0
),
stringPalette
(
NULL
),
nodeNameOffset
((
unsigned
int
)
-
1
),
propertyTypeOffset
((
unsigned
int
)
-
1
),
controllerTypeOffset
((
unsigned
int
)
-
1
),
variableOffset
1
((
unsigned
int
)
-
1
),
variableOffset
2
((
unsigned
int
)
-
1
)
{};
ControllerLink
::
ControllerLink
()
:
controller
(
NULL
),
interpolator
(
NULL
),
unknownLink2
(
NULL
),
unknownShort0
((
unsigned
short
)
0
),
priority
((
byte
)
0
),
stringPalette
(
NULL
),
nodeNameOffset
((
unsigned
int
)
-
1
),
propertyTypeOffset
((
unsigned
int
)
-
1
),
controllerTypeOffset
((
unsigned
int
)
-
1
),
variable
1
Offset
((
unsigned
int
)
-
1
),
variable
2
Offset
((
unsigned
int
)
-
1
)
{};
//Copy Constructor
//Copy Constructor
ControllerLink
::
ControllerLink
(
const
ControllerLink
&
src
)
{
ControllerLink
::
ControllerLink
(
const
ControllerLink
&
src
)
{
...
@@ -36,9 +36,9 @@ ControllerLink & ControllerLink::operator=( const ControllerLink & src ) {
...
@@ -36,9 +36,9 @@ ControllerLink & ControllerLink::operator=( const ControllerLink & src ) {
this
->
controllerType
=
src
.
controllerType
;
this
->
controllerType
=
src
.
controllerType
;
this
->
controllerTypeOffset
=
src
.
controllerTypeOffset
;
this
->
controllerTypeOffset
=
src
.
controllerTypeOffset
;
this
->
variable1
=
src
.
variable1
;
this
->
variable1
=
src
.
variable1
;
this
->
variableOffset
1
=
src
.
variableOffset
1
;
this
->
variable
1
Offset
=
src
.
variable
1
Offset
;
this
->
variable2
=
src
.
variable2
;
this
->
variable2
=
src
.
variable2
;
this
->
variableOffset
2
=
src
.
variableOffset
2
;
this
->
variable
2
Offset
=
src
.
variable
2
Offset
;
return
*
this
;
return
*
this
;
};
};
...
...
This diff is collapsed.
Click to expand it.
src/obj/NiSequence.cpp
+
6
−
6
View file @
816f5ece
...
@@ -121,7 +121,7 @@ void NiSequence::Read( istream& in, list<unsigned int> & link_stack, const NifIn
...
@@ -121,7 +121,7 @@ void NiSequence::Read( istream& in, list<unsigned int> & link_stack, const NifIn
NifStream
(
controlledBlocks
[
i1
].
variable1
,
in
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable1
,
in
,
info
);
};
};
if
(
(
info
.
version
>=
0x0A020000
)
&&
(
info
.
version
<=
0x14000005
)
)
{
if
(
(
info
.
version
>=
0x0A020000
)
&&
(
info
.
version
<=
0x14000005
)
)
{
NifStream
(
controlledBlocks
[
i1
].
variableOffset
1
,
in
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable
1
Offset
,
in
,
info
);
};
};
if
(
(
info
.
version
>=
0x0A01006A
)
&&
(
info
.
version
<=
0x0A01006A
)
)
{
if
(
(
info
.
version
>=
0x0A01006A
)
&&
(
info
.
version
<=
0x0A01006A
)
)
{
NifStream
(
controlledBlocks
[
i1
].
variable2
,
in
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable2
,
in
,
info
);
...
@@ -130,7 +130,7 @@ void NiSequence::Read( istream& in, list<unsigned int> & link_stack, const NifIn
...
@@ -130,7 +130,7 @@ void NiSequence::Read( istream& in, list<unsigned int> & link_stack, const NifIn
NifStream
(
controlledBlocks
[
i1
].
variable2
,
in
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable2
,
in
,
info
);
};
};
if
(
(
info
.
version
>=
0x0A020000
)
&&
(
info
.
version
<=
0x14000005
)
)
{
if
(
(
info
.
version
>=
0x0A020000
)
&&
(
info
.
version
<=
0x14000005
)
)
{
NifStream
(
controlledBlocks
[
i1
].
variableOffset
2
,
in
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable
2
Offset
,
in
,
info
);
};
};
};
};
...
@@ -257,7 +257,7 @@ void NiSequence::Write( ostream& out, const map<NiObjectRef,unsigned int> & link
...
@@ -257,7 +257,7 @@ void NiSequence::Write( ostream& out, const map<NiObjectRef,unsigned int> & link
NifStream
(
controlledBlocks
[
i1
].
variable1
,
out
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable1
,
out
,
info
);
};
};
if
(
(
info
.
version
>=
0x0A020000
)
&&
(
info
.
version
<=
0x14000005
)
)
{
if
(
(
info
.
version
>=
0x0A020000
)
&&
(
info
.
version
<=
0x14000005
)
)
{
NifStream
(
controlledBlocks
[
i1
].
variableOffset
1
,
out
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable
1
Offset
,
out
,
info
);
};
};
if
(
(
info
.
version
>=
0x0A01006A
)
&&
(
info
.
version
<=
0x0A01006A
)
)
{
if
(
(
info
.
version
>=
0x0A01006A
)
&&
(
info
.
version
<=
0x0A01006A
)
)
{
NifStream
(
controlledBlocks
[
i1
].
variable2
,
out
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable2
,
out
,
info
);
...
@@ -266,7 +266,7 @@ void NiSequence::Write( ostream& out, const map<NiObjectRef,unsigned int> & link
...
@@ -266,7 +266,7 @@ void NiSequence::Write( ostream& out, const map<NiObjectRef,unsigned int> & link
NifStream
(
controlledBlocks
[
i1
].
variable2
,
out
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable2
,
out
,
info
);
};
};
if
(
(
info
.
version
>=
0x0A020000
)
&&
(
info
.
version
<=
0x14000005
)
)
{
if
(
(
info
.
version
>=
0x0A020000
)
&&
(
info
.
version
<=
0x14000005
)
)
{
NifStream
(
controlledBlocks
[
i1
].
variableOffset
2
,
out
,
info
);
NifStream
(
controlledBlocks
[
i1
].
variable
2
Offset
,
out
,
info
);
};
};
};
};
...
@@ -307,9 +307,9 @@ std::string NiSequence::asString( bool verbose ) const {
...
@@ -307,9 +307,9 @@ std::string NiSequence::asString( bool verbose ) const {
out
<<
" Controller Type: "
<<
controlledBlocks
[
i1
].
controllerType
<<
endl
;
out
<<
" Controller Type: "
<<
controlledBlocks
[
i1
].
controllerType
<<
endl
;
out
<<
" Controller Type Offset: "
<<
controlledBlocks
[
i1
].
controllerTypeOffset
<<
endl
;
out
<<
" Controller Type Offset: "
<<
controlledBlocks
[
i1
].
controllerTypeOffset
<<
endl
;
out
<<
" Variable 1: "
<<
controlledBlocks
[
i1
].
variable1
<<
endl
;
out
<<
" Variable 1: "
<<
controlledBlocks
[
i1
].
variable1
<<
endl
;
out
<<
" Variable Offset
1
: "
<<
controlledBlocks
[
i1
].
variableOffset
1
<<
endl
;
out
<<
" Variable
1
Offset: "
<<
controlledBlocks
[
i1
].
variable
1
Offset
<<
endl
;
out
<<
" Variable 2: "
<<
controlledBlocks
[
i1
].
variable2
<<
endl
;
out
<<
" Variable 2: "
<<
controlledBlocks
[
i1
].
variable2
<<
endl
;
out
<<
" Variable Offset
2
: "
<<
controlledBlocks
[
i1
].
variableOffset
2
<<
endl
;
out
<<
" Variable
2
Offset: "
<<
controlledBlocks
[
i1
].
variable
2
Offset
<<
endl
;
};
};
return
out
.
str
();
return
out
.
str
();
...
...
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