Skip to content

Commit

Permalink
convert: API pre-loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Nov 11, 2019
1 parent d93d757 commit 7c26de8
Show file tree
Hide file tree
Showing 5 changed files with 2,149 additions and 71 deletions.
19 changes: 10 additions & 9 deletions doc/nyan/aoe2_nyan_tree.uxf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?><diagram program="umlet" version="13.3">
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="13.3">
<help_text>// Uncomment the following line to change the fontsize and font:
// fontsize=10
// fontfamily=SansSerif //possible: SansSerif,Serif,Monospaced
Expand Down Expand Up @@ -2737,7 +2738,7 @@ bg=blue</panel_attributes>
<x>3260</x>
<y>3490</y>
<w>240</w>
<h>90</h>
<h>80</h>
</coordinates>
<panel_attributes>*Progress*
bg=pink
Expand Down Expand Up @@ -2801,12 +2802,12 @@ bg=pink</panel_attributes>
<id>Relation</id>
<coordinates>
<x>3370</x>
<y>3570</y>
<y>3560</y>
<w>30</w>
<h>450</h>
<h>460</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;10.0;10.0;430.0</additional_attributes>
<additional_attributes>10.0;10.0;10.0;440.0</additional_attributes>
</element>
<element>
<id>Relation</id>
Expand Down Expand Up @@ -5734,7 +5735,7 @@ markup_file : file</panel_attributes>
<element>
<id>UMLClass</id>
<coordinates>
<x>1850</x>
<x>1840</x>
<y>1370</y>
<w>180</w>
<h>80</h>
Expand All @@ -5756,7 +5757,7 @@ sound : Sound</panel_attributes>
<h>80</h>
</coordinates>
<panel_attributes>lt=&lt;.</panel_attributes>
<additional_attributes>10.0;60.0;10.0;10.0</additional_attributes>
<additional_attributes>10.0;10.0;10.0;60.0</additional_attributes>
</element>
<element>
<id>Relation</id>
Expand All @@ -5767,7 +5768,7 @@ sound : Sound</panel_attributes>
<h>80</h>
</coordinates>
<panel_attributes>lt=&lt;.</panel_attributes>
<additional_attributes>10.0;60.0;10.0;10.0</additional_attributes>
<additional_attributes>10.0;10.0;10.0;60.0</additional_attributes>
</element>
<element>
<id>Relation</id>
Expand All @@ -5778,7 +5779,7 @@ sound : Sound</panel_attributes>
<h>80</h>
</coordinates>
<panel_attributes>lt=&lt;.</panel_attributes>
<additional_attributes>10.0;60.0;10.0;10.0</additional_attributes>
<additional_attributes>10.0;10.0;10.0;60.0</additional_attributes>
</element>
<element>
<id>UMLClass</id>
Expand Down
4 changes: 3 additions & 1 deletion doc/nyan/api_reference/reference_ability.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Reference documentation of the `engine.ability` module of the openage modding AP

```python
Ability(Entity):
pass
```

Generalization object for all abilities. Abilities define what game entities can *do* and what they *are*, respectively. They can be considered passive and active traits.
Expand Down Expand Up @@ -116,7 +117,7 @@ Blacklist for specific game entities that would be covered by `allowed_types`, b

```python
ApplyDiscreteEffect(Ability):
effects : set(ContinuousEffect)
effects : set(DiscreteEffect)
reload_time : float
application_delay : float
allowed_types : set(GameEntityType)
Expand Down Expand Up @@ -220,6 +221,7 @@ A set of `DamageProgress` objects that can activate state changes and animation

```python
Deletable(Ability):
pass
```

Makes the game entity deletable via manual command. This will trigger the currently active `Die` ability without the need to fulfill the conditions for death. If the game entity does not have an active `Die` ability, the engine will try to trigger `Despawn` instead. If this ability is also not present, the game entity is instantly removed from the game.
Expand Down
18 changes: 13 additions & 5 deletions doc/nyan/api_reference/reference_aux.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Accuracy(Entity):
blacklisted_entities : set(GameEntity)
```

Stores information for the accuracy calculation of a game entity with `Projectile` ability.
<!-- Stores information for the accuracy calculation of a game entity with `Projectile` ability. -->

**accuracy**
The chance for the projectile to land at the "perfect" position to hit its target as a value between 0 and 1.
Expand Down Expand Up @@ -582,7 +582,7 @@ Subdivision of a formation. It defines the structure and placement of game entit
## aux.formation.PrecedingSubformation

```python
PrecedingSubformation(Entity):
PrecedingSubformation(Subformation):
precedes : Subformation
```

Expand Down Expand Up @@ -723,6 +723,14 @@ Defensive(GameEntityStance):

The game entity will use ranged abilities or move to the nearest target in its line of sight to use other abilities. If the target gets out of range or the line of sight, the game entity searches for a new target. When no new target can be found, the game entity returns to its original position and returns to an idle state.

## aux.game_entity_stance.type.Passive

```python
Passive(GameEntityStance):
```

The game entity will stay at its current position and only reacts to manual commands given by players. Abilities in `ability_preference` will be ignored.

## aux.game_entity_stance.type.StandGround

```python
Expand All @@ -731,13 +739,13 @@ StandGround(GameEntityStance):

The game entity will stay at its current position.

## aux.game_entity_stance.type.Passive
## aux.game_entity_type.GameEntityType

```python
Passive(GameEntityStance):
GameEntityType(Entity):
```

The game entity will stay at its current position and only reacts to manual commands given by players. Abilities in `ability_preference` will be ignored.
Classification for a game entity.

## aux.graphics.Animation

Expand Down
Loading

0 comments on commit 7c26de8

Please sign in to comment.