plugins/include/keyvalues.inc
changeset 1734 32aa9dc8ac1a
parent 1709 1caf5bfb1c52
child 1947 e73a1e51833b
     1.1 --- a/plugins/include/keyvalues.inc	Fri Nov 30 15:50:32 2007 +0000
     1.2 +++ b/plugins/include/keyvalues.inc	Sat Dec 01 00:37:47 2007 +0000
     1.3 @@ -121,6 +121,17 @@
     1.4  native KvSetColor(Handle:kv, const String:key[], r, g, b, a=0);
     1.5  
     1.6  /** 
     1.7 + * Sets a vector value of a KeyValues key.
     1.8 + *
     1.9 + * @param kv			KeyValues Handle.
    1.10 + * @param key			Name of the key, or NULL_STRING.
    1.11 + * @param vec			Vector value.
    1.12 + * @noreturn
    1.13 + * @error				Invalid Handle.
    1.14 + */
    1.15 +native KvSetVector(Handle:kv, const String:key[], const Float:vec[3]);
    1.16 +
    1.17 +/** 
    1.18   * Retrieves a string value from a KeyValues key.
    1.19   *
    1.20   * @param kv			KeyValues Handle.
    1.21 @@ -181,6 +192,18 @@
    1.22   */
    1.23  native KvGetUInt64(Handle:kv, const String:key[], value[2], defvalue[2]={0,0});
    1.24  
    1.25 +/** 
    1.26 + * Retrieves a vector value from a KeyValues key.
    1.27 + *
    1.28 + * @param kv			KeyValues Handle.
    1.29 + * @param key			Name of the key, or NULL_STRING.
    1.30 + * @param vec			Destination vector to store the value in.
    1.31 + * @param defvalue		Optional default value to use if the key is not found.
    1.32 + * @noreturn
    1.33 + * @error				Invalid Handle.
    1.34 + */
    1.35 +native KvGetVector(Handle:kv, const String:key[], Float:vec[3], const Float:defvalue[3]={0.0, 0.0, 0.0});
    1.36 +
    1.37  /**
    1.38   * Sets the current position in the KeyValues tree to the given key.
    1.39   *