Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wotb-rs
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
typescript
wotb-rs
Commits
71dbd14c
Commit
71dbd14c
authored
7 years ago
by
nanocryk
Browse files
Options
Downloads
Patches
Plain Diff
refractor : renamed to camelCase to match C++ wotb addon
parent
4e093a26
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
native/src/lib.rs
+14
-14
14 additions, 14 deletions
native/src/lib.rs
with
14 additions
and
14 deletions
native/src/lib.rs
+
14
−
14
View file @
71dbd14c
...
@@ -38,7 +38,7 @@ declare_types! {
...
@@ -38,7 +38,7 @@ declare_types! {
}
}
}
}
method
to
_f
ile
(
call
)
{
method
to
F
ile
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
path
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.to_string
(
scope
))
.value
();
let
path
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.to_string
(
scope
))
.value
();
...
@@ -49,7 +49,7 @@ declare_types! {
...
@@ -49,7 +49,7 @@ declare_types! {
Ok
(
JsBoolean
::
new
(
scope
,
result
)
.upcast
())
Ok
(
JsBoolean
::
new
(
scope
,
result
)
.upcast
())
}
}
method
add
_n
ode
(
call
)
{
method
add
N
ode
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
id
=
call
.arguments
.this
(
scope
)
.grab
(|
wot
|
{
let
id
=
call
.arguments
.this
(
scope
)
.grab
(|
wot
|
{
...
@@ -59,7 +59,7 @@ declare_types! {
...
@@ -59,7 +59,7 @@ declare_types! {
Ok
(
JsInteger
::
new
(
scope
,
*
id
as
i32
)
.upcast
())
Ok
(
JsInteger
::
new
(
scope
,
*
id
as
i32
)
.upcast
())
}
}
method
remove
_n
ode
(
call
)
{
method
remove
N
ode
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
id
=
call
.arguments
.this
(
scope
)
.grab
(|
wot
|
{
let
id
=
call
.arguments
.this
(
scope
)
.grab
(|
wot
|
{
...
@@ -72,7 +72,7 @@ declare_types! {
...
@@ -72,7 +72,7 @@ declare_types! {
Ok
(
JsInteger
::
new
(
scope
,
id
)
.upcast
())
Ok
(
JsInteger
::
new
(
scope
,
id
)
.upcast
())
}
}
method
get
_s
entries
(
call
)
{
method
get
S
entries
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
arg0
=
try!
(
call
.arguments
.require
(
scope
,
0
));
let
arg0
=
try!
(
call
.arguments
.require
(
scope
,
0
));
...
@@ -91,7 +91,7 @@ declare_types! {
...
@@ -91,7 +91,7 @@ declare_types! {
Ok
(
jsarray
.upcast
())
Ok
(
jsarray
.upcast
())
}
}
method
get
_non_s
entries
(
call
)
{
method
get
NonS
entries
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
arg0
=
try!
(
call
.arguments
.require
(
scope
,
0
));
let
arg0
=
try!
(
call
.arguments
.require
(
scope
,
0
));
...
@@ -110,7 +110,7 @@ declare_types! {
...
@@ -110,7 +110,7 @@ declare_types! {
Ok
(
jsarray
.upcast
())
Ok
(
jsarray
.upcast
())
}
}
method
d
isabled
(
call
)
{
method
getD
isabled
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
array
=
call
.arguments
.this
(
scope
)
.grab
(|
wot
|
{
let
array
=
call
.arguments
.this
(
scope
)
.grab
(|
wot
|
{
...
@@ -126,7 +126,7 @@ declare_types! {
...
@@ -126,7 +126,7 @@ declare_types! {
Ok
(
jsarray
.upcast
())
Ok
(
jsarray
.upcast
())
}
}
method
get
_p
aths
(
call
)
{
method
get
P
aths
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
from
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
let
from
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
...
@@ -152,7 +152,7 @@ declare_types! {
...
@@ -152,7 +152,7 @@ declare_types! {
Ok
(
jsarray
.upcast
())
Ok
(
jsarray
.upcast
())
}
}
method
s
ize
(
call
)
{
method
getWoTS
ize
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
size
=
call
.arguments
.this
(
scope
)
.grab
(|
wot
|
{
let
size
=
call
.arguments
.this
(
scope
)
.grab
(|
wot
|
{
...
@@ -162,7 +162,7 @@ declare_types! {
...
@@ -162,7 +162,7 @@ declare_types! {
Ok
(
JsInteger
::
new
(
scope
,
size
as
i32
)
.upcast
())
Ok
(
JsInteger
::
new
(
scope
,
size
as
i32
)
.upcast
())
}
}
method
is
_e
nabled
(
call
)
{
method
is
E
nabled
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
node
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
let
node
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
...
@@ -175,7 +175,7 @@ declare_types! {
...
@@ -175,7 +175,7 @@ declare_types! {
}
}
}
}
method
set
_e
nabled
(
call
)
{
method
set
E
nabled
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
node
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
let
node
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
...
@@ -189,7 +189,7 @@ declare_types! {
...
@@ -189,7 +189,7 @@ declare_types! {
}
}
}
}
method
add
_l
ink
(
call
)
{
method
add
L
ink
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
from
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
let
from
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
...
@@ -205,7 +205,7 @@ declare_types! {
...
@@ -205,7 +205,7 @@ declare_types! {
}
}
}
}
method
remove
_l
ink
(
call
)
{
method
remove
L
ink
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
from
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
let
from
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
...
@@ -219,7 +219,7 @@ declare_types! {
...
@@ -219,7 +219,7 @@ declare_types! {
}
}
}
}
method
exists
_l
ink
(
call
)
{
method
exists
L
ink
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
from
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
let
from
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
...
@@ -232,7 +232,7 @@ declare_types! {
...
@@ -232,7 +232,7 @@ declare_types! {
Ok
(
JsBoolean
::
new
(
scope
,
result
)
.upcast
())
Ok
(
JsBoolean
::
new
(
scope
,
result
)
.upcast
())
}
}
method
is
_o
utdistanced
(
call
)
{
method
is
O
utdistanced
(
call
)
{
let
scope
=
call
.scope
;
let
scope
=
call
.scope
;
let
node
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
let
node
=
try!
(
try!
(
call
.arguments
.require
(
scope
,
0
))
.check
::
<
JsInteger
>
())
.value
()
as
usize
;
...
...
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