plugins/include/keyvalues.inc
branchsourcemod-1.1.0
changeset 1715 f9ecab642e25
parent 1401 e3b761515c0a
     1.1 --- a/plugins/include/keyvalues.inc	Sun Nov 11 20:59:20 2007 +0000
     1.2 +++ b/plugins/include/keyvalues.inc	Fri Nov 23 05:10:33 2007 +0000
     1.3 @@ -192,6 +192,15 @@
     1.4  native bool:KvJumpToKey(Handle:kv, const String:key[], bool:create=false);
     1.5  
     1.6  /**
     1.7 + * Sets the current position in the KeyValues tree to the given key.
     1.8 + *
     1.9 + * @param kv			KeyValues Handle.
    1.10 + * @param id			KeyValues id.
    1.11 + * @return				True if the key exists, false if it does not.
    1.12 + */
    1.13 +native bool:KvJumpToKeySymbol(Handle:kv, id);
    1.14 +
    1.15 +/**
    1.16   * Sets the current position in the KeyValues tree to the first sub key.
    1.17   * This native adds to the internal traversal stack.
    1.18   *
    1.19 @@ -385,3 +394,13 @@
    1.20   * @error				Invalid Handle.
    1.21   */
    1.22  native bool:KvGetNameSymbol(Handle:kv, const String:key[], &id);
    1.23 +
    1.24 +/**
    1.25 + * Retrieves the current section id.
    1.26 + * 
    1.27 + * @param kv			KeyValues Handle.
    1.28 + * @param id			Id of the current section.
    1.29 + * @return				True on success, false on failure.
    1.30 + * @error				Invalid Handle.
    1.31 + */
    1.32 +native bool:KvGetSectionSymbol(Handle:kv, &id);