Skip to content

Commit e82f35b

Browse files
committed
Updated readme
1 parent f8ba96d commit e82f35b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.vsconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "1.0",
3+
"components": [
4+
"Microsoft.VisualStudio.Workload.ManagedGame"
5+
]
6+
}

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ This pattern is almost the same as the [Observer](#3-observer) pattern. The only
342342

343343
**How to implement?**
344344

345-
Combine the [Command](#1-command) pattern with a C#'s built-in queue, which is why this pattern is sometimes known as a **Command Queue**. In the Update method you pick the first Command in the queue and run it while measuring time. To measure time you can use System.Diagnostics.Stopwatch. If you have time to spare, you run the next Command, and so on until you are out of time. How much time you can spend on the Event Queue each update depends on the game, so you have to experiment.
345+
Combine the [Command](#1-command) pattern with a C#'s built-in queue, which is why this pattern is sometimes known as a **Command Queue**. In the Update method you pick the first Command in the queue and run it while measuring time. To measure time you can use System.Diagnostics.Stopwatch. If you have time to spare, you run the next Command, and so on until you are out of time. How much time you can spend on the Event Queue each update depends on the game, so you have to experiment.
346+
347+
Credit to [masoudarvishian](https://github.com/masoudarvishian) for implementing this pattern!
346348

347349
**When is it useful?**
348350

UserSettings/EditorUserSettings.asset

-3.44 KB
Binary file not shown.

0 commit comments

Comments
 (0)