mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-24 05:37:45 +00:00
Update CONTRIBUTING.md
This commit is contained in:
parent
11660773c2
commit
587844f9fd
1 changed files with 23 additions and 23 deletions
|
@ -22,7 +22,7 @@ When making a PR, please make sure that it follows our style guidelines and good
|
||||||
|
|
||||||
### Coding style
|
### Coding style
|
||||||
|
|
||||||
Indentations are Allman-style based, 4-space, no tabs.
|
Indentations are Allman-style based, 2-space, no tabs.
|
||||||
Space between arguments in function calls, as well as for types.
|
Space between arguments in function calls, as well as for types.
|
||||||
|
|
||||||
Example (shortened from ActionHandler.cpp):
|
Example (shortened from ActionHandler.cpp):
|
||||||
|
@ -33,10 +33,10 @@ switch( commandId )
|
||||||
case 0x01: // Toggle sheathe
|
case 0x01: // Toggle sheathe
|
||||||
{
|
{
|
||||||
if ( param11 == 1 )
|
if ( param11 == 1 )
|
||||||
pPlayer->setStance( Entity::Actor::Stance::Active );
|
pPlayer->setStance( Entity::Chara::Stance::Active );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pPlayer->setStance( Entity::Actor::Stance::Passive );
|
pPlayer->setStance( Entity::Chara::Stance::Passive );
|
||||||
pPlayer->setAutoattack( false );
|
pPlayer->setAutoattack( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue