This repository has been archived by the owner on Oct 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html><head> | ||
<!-- Generated by Ddoc from source\scone\console\ui\progress_bar.d --> | ||
<META http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<title>scone.console.ui.progress_bar</title> | ||
</head><body> | ||
<h1>scone.console.ui.progress_bar</h1> | ||
<br><br> | ||
|
||
<hr><small>Page generated by <a href="http://dlang.org/ddoc.html">Ddoc</a>. </small> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<html><head> | ||
<!-- Generated by Ddoc from source\scone\misc\ticker.d --> | ||
<META http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<title>scone.misc.ticker</title> | ||
</head><body> | ||
<h1>scone.misc.ticker</h1> | ||
<br><br> | ||
<dl><dt><big><a name="Ticker"></a>struct <u>Ticker</u>; | ||
</big></dt> | ||
<dd>A general ticker, intended for games. Used to count how many times the game should update. | ||
<br><br> | ||
<b>Example:</b><br> | ||
<pre class="d_code"><font color=blue>auto</font> ticker = <u>Ticker</u>(60); <font color=green>// update 60 times per second | ||
</font><font color=blue>foreach</font>(tick; 0 .. ticker.ticks) <font color=green>// `ticker.ticks` returns how many time to ticks since last call | ||
</font>{ | ||
<font color=green>// update logic, and only be run 60 times per second | ||
</font>} | ||
</pre> | ||
<br><br> | ||
|
||
<dl><dt><big><a name="Ticker.this"></a>this(uint <i>ticksPerSecond</i>); | ||
</big></dt> | ||
<dd>Set custom ticks per second.<br><br> | ||
|
||
</dd> | ||
<dt><big><a name="Ticker.ticks"></a>@property auto <u>ticks</u>(); | ||
</big></dt> | ||
<dd><b>Returns:</b><br> | ||
int, how many <u>ticks</u> that should be run since last call.<br><br> | ||
|
||
</dd> | ||
<dt><big><a name="Ticker.reset"></a>void <u>reset</u>(); | ||
</big></dt> | ||
<dd>Resets the ticks since last call <pre style="display:inline;" class="d_inline_code">ticks()</pre><br><br> | ||
|
||
</dd> | ||
</dl> | ||
</dd> | ||
</dl> | ||
|
||
<hr><small>Page generated by <a href="http://dlang.org/ddoc.html">Ddoc</a>. </small> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters