forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
17
Kha/Sources/kha/CodeStyle.hx
Normal file
17
Kha/Sources/kha/CodeStyle.hx
Normal file
@ -0,0 +1,17 @@
|
||||
package kha;
|
||||
|
||||
class CodeStyle { // upper camel case class names
|
||||
public function new() { // egyptian style curly brackets
|
||||
}
|
||||
|
||||
public function doIt(): Void { // lower camel case method and function names
|
||||
var i = 0;
|
||||
switch (i) {
|
||||
case 1: // case in same column as switch
|
||||
playSfx(2);
|
||||
}
|
||||
}
|
||||
|
||||
public function playSfx(soundId: Int) { // lower camel case for parameters and locals, camel case is used for akronyms, too
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user