Skip to content

Commit d433359

Browse files
committed
More documentation changes.
1 parent 443e4d8 commit d433359

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

docs/source/articles/conceptsinsc2reader.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Factories
99

1010
All resources are loaded through a factory. There are four kinds:
1111

12-
* SC2Factory - Basic factory. Loads resources.
13-
* DictCachedSC2Factory - Caches remote resources in memory. When loading remote resources, the dict cache is checked first.
14-
* FileCachedSC2Factory - Caches remote resources on the file system. When loading remote resources, the file system is checked first.
15-
* DoubleCachedSC2Factory - Caches remote resource in memory and on the file system.
12+
* :class:`~sc2reader.factories.SC2Factory` - Basic factory. Loads resources.
13+
* :class:`~sc2reader.factories.DictCachedSC2Factory` - Caches remote resources in memory. When loading remote resources, the dict cache is checked first.
14+
* :class:`~sc2reader.factories.FileCachedSC2Factory` - Caches remote resources on the file system. When loading remote resources, the file system is checked first.
15+
* :class:`~sc2reader.factories.DoubleCachedSC2Factory` - Caches remote resource in memory and on the file system.
1616

1717
A default factory is automatically configured and attached to the ``sc2reader`` module when the library is imported. Calling any factory method on the sc2reader module will use this default factory::
1818

docs/source/index.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ Scripts:
4545
* sc2json: Render basic replay information to json for use in other languages.
4646
* sc2replayer: Play back a replay one event at a time with detailed printouts.
4747

48-
I am actively looking for community members to assist in documenting the replay data and in creating plugins that enhance functionality. Contact me!
48+
I am actively looking for community members to assist in documenting the replay data and in creating plugins that enhance functionality. `Contact me`_!
4949

5050
.. _source: http://github.com/GraylinKim/sc2reader
51-
51+
.. _Contact me: mailto://[email protected]
5252

5353
Getting Started
5454
--------------------
@@ -59,7 +59,7 @@ I recommend the following steps when getting started:
5959
* Read this article on replays: :doc:`articles/whatsinareplay` (5 minutes).
6060
* Read this article on sc2reader: :doc:`articles/conceptsinsc2reader` (5 minutes).
6161

62-
After that, you can see sc2reader in action by working through a couple of the tutorials below.
62+
Now that you've been oriented, you can see sc2reader in action by working through a couple of the tutorials below.
6363

6464
.. _installation guide: https://github.com/GraylinKim/sc2reader#installation
6565

@@ -72,6 +72,14 @@ The best way to pick sc2reader up and get started is probably by example. With t
7272
* :doc:`tutorials/prettyprinter` (10-15 minutes)
7373

7474

75+
Articles
76+
----------------
77+
78+
* :doc:`articles/whatsinareplay` (5 minutes).
79+
* :doc:`articles/conceptsinsc2reader` (5 minutes).
80+
* :doc:`articles/creatingagameengineplugin` (10 minutes).
81+
82+
7583
Reference Pages
7684
-----------------------
7785

sc2reader/engine/engine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ def handleTargetAbilityEvent(self, event, replay):
5151
engine.reigster_plugin(Plugin(5))
5252
engine.run(replay)
5353
54-
Calls functions in the following order for a ``TargetUnitEvent``::
54+
Calls functions in the following order for a ``TargetAbilityEvent``::
5555
56-
Plugin1.handleAbilityEvent(replay, event)
57-
Plugin2.handleEvent(replay, event)
58-
Plugin2.handleTargetAbilityEvent(replay, event)
56+
Plugin1.handleAbilityEvent(event, replay)
57+
Plugin2.handleEvent(event, replay)
58+
Plugin2.handleTargetAbilityEvent(event, replay)
5959
6060
6161
Plugin Specification

0 commit comments

Comments
 (0)