Updated What are Scenarios (markdown)
parent
a8b7079ff4
commit
c4d7775f54
1 changed files with 3 additions and 3 deletions
|
@ -10,8 +10,8 @@ To add a scenario to your UHC game, you need to be in waiting for more players,
|
||||||
|
|
||||||
If you know all those, let's start:
|
If you know all those, let's start:
|
||||||
First, create a new File that will be your scenario code named **"YOUR_SCENARIO_NAME.php"**.
|
First, create a new File that will be your scenario code named **"YOUR_SCENARIO_NAME.php"**.
|
||||||
Then, you'll need to add the class that will be your main class. So to do that, add some code inside:
|
Then, you'll need to add the class that will be your main class. So to do that, add some code inside:
|
||||||
`<?php
|
<?php
|
||||||
# This is an example !
|
# This is an example !
|
||||||
class YOUR_SCENARIO_NAME extends \Ad5001\UHC\scenario\Scenario {
|
class YOUR_SCENARIO_NAME extends \Ad5001\UHC\scenario\Scenario {
|
||||||
}`
|
}
|
Loading…
Reference in a new issue