-
Notifications
You must be signed in to change notification settings - Fork 3
/
UnityTest.nss
42 lines (35 loc) · 1.1 KB
/
UnityTest.nss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//::///////////////////////////////////////////
//:: File: UnityTest.nss
//:: Unity test file for NWScript Lexer Plugin
//::
//:: Copyright 2022 - Leonard The Wise
//::///////////////////////////////////////////
/*
Includes all customizable tokens:
- Pre-processor directives;
- Default Text
- Built-in Instruction SET;
- Standard variable types;
- Engine-defined variable types;
- Object (*special*) Type;
- Engine Constants
- User-Defined Constants (optional - must configure)
- Internal Engine Functions;
- User-Defined Functions (optional - must configure)
- Numbers, Strings, Operators, Single Comment, Multiline Comments,
*/
#include "somefile"
void UndefinedUserFunction(object oObject)
{
effect eTemp = OBJECT_INVALID;
int nColor = COLOR_WHITE;
string sString = "Lorem Ipsum";
vector vTranslation = [0.0198275f, -0.6277636f, 1.0f];
location iLoc = 0x0H;
if (GetIsPC(oObject)==OBJECT_INVALID || sTring=="" && iLoc >= 0x0H)
string sName = GetNamePCColor(oCreature);
/* Press ENTER after the brackets bellow to test auto-identation */
{}
int bReturn = FALSE;
return;
}