Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jochen Bauer
spn-website
Commits
8cd71e19
Commit
8cd71e19
authored
May 02, 2018
by
nachtgold
Committed by
Hubert Denkmair
May 03, 2018
Browse files
log method added to docs + method-font-size increased
parent
dd51f0ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/static/docs/docs.css
View file @
8cd71e19
...
@@ -16,3 +16,7 @@
...
@@ -16,3 +16,7 @@
padding
:
0px
;
padding
:
0px
;
border
:
none
;
border
:
none
;
}
}
.markdown-body
dl
dt
{
font-size
:
1.2em
;
}
\ No newline at end of file
docs/lua/sample.lua
View file @
8cd71e19
...
@@ -45,4 +45,9 @@ end
...
@@ -45,4 +45,9 @@ end
-- item.bot -- id of the other snake
-- item.bot -- id of the other snake
-- end
-- end
function
findSegments
(
max_distance
,
include_own
)
function
findSegments
(
max_distance
,
include_own
)
end
--- That method sends messages to the development console.
-- @param message this string will be transfered to the console
function
log
(
message
)
end
end
\ No newline at end of file
docs/templates/docs/docs.html
View file @
8cd71e19
...
@@ -52,6 +52,10 @@
...
@@ -52,6 +52,10 @@
<td
class=
"name"
nowrap
><a
href=
"#findSegments"
>
findSegments (max_distance, include_own)
</a></td>
<td
class=
"name"
nowrap
><a
href=
"#findSegments"
>
findSegments (max_distance, include_own)
</a></td>
<td
class=
"summary"
>
That method returns all segments of all snakes within a certain radius as list.
</td>
<td
class=
"summary"
>
That method returns all segments of all snakes within a certain radius as list.
</td>
</tr>
</tr>
<tr>
<td
class=
"name"
nowrap
><a
href=
"#log"
>
log (message)
</a></td>
<td
class=
"summary"
>
That method sends messages to the development console.
</td>
</tr>
</table>
</table>
...
@@ -166,6 +170,26 @@
...
@@ -166,6 +170,26 @@
</span>
<span
class=
"keyword"
>
end
</span></code></pre>
</span>
<span
class=
"keyword"
>
end
</span></code></pre>
</ul>
</ul>
</dd>
<dt>
<a
name =
"log"
></a>
<strong>
log (message)
</strong>
</dt>
<dd>
That method sends messages to the development console.
<h4>
Parameters:
</h4>
<ul>
<li><code>
message
</code>
this string will be transfered to the console
</li>
</ul>
</dd>
</dd>
</dl>
</dl>
...
...
Write
Preview
Supports
Markdown
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