plugins/testsuite/capstest.sp
author Nicholas Hastings <skamonkey@gmail.com>
Tue May 14 11:27:06 2013 -0400 (2013-05-14)
changeset 3918 312fa627bf21
parent 2841 dde3dd0b4b8b
permissions -rw-r--r--
Fixed SDKTools dota build.
     1 
     2 
     3 public OnPluginStart()
     4 {
     5 	RegServerCmd("sm_test_caps1", Test_Caps1);
     6 	RegServerCmd("sm_test_caps2", Test_Caps2);
     7 	RegServerCmd("sm_test_caps3", Test_Caps3);
     8 }
     9 
    10 public Action:Test_Caps1(args)
    11 {
    12 	PrintToServer("CanTestFeatures: %d", CanTestFeatures());
    13 	PrintToServer("Status PTS: %d", GetFeatureStatus(FeatureType_Native, "PrintToServer"));
    14 	PrintToServer("Status ???: %d", GetFeatureStatus(FeatureType_Native, "???"));
    15 	PrintToServer("Status CL: %d", GetFeatureStatus(FeatureType_Capability, FEATURECAP_COMMANDLISTENER));
    16 
    17 	return Plugin_Handled
    18 }
    19 
    20 public Action:Test_Caps2(args)
    21 {
    22 	RequireFeature(FeatureType_Native, "VerifyCoreVersion");
    23 	RequireFeature(FeatureType_Native, "Sally ate a worm");
    24 }
    25 
    26 public Action:Test_Caps3(args)
    27 {
    28 	RequireFeature(FeatureType_Native, "Sally ate a worm", "oh %s %d no", "yam", 23);
    29 }
    30 
    31 
    32 
    33