plugins/include/entity.inc
changeset 556 494400c877f6
parent 555 e4af2e799a6a
child 557 467d4af2148b
     1.1 --- a/plugins/include/entity.inc	Fri Mar 02 01:21:43 2007 +0000
     1.2 +++ b/plugins/include/entity.inc	Fri Mar 02 01:56:56 2007 +0000
     1.3 @@ -106,4 +106,26 @@
     1.4   * @noreturn
     1.5   * @error				Invalid edict index.
     1.6   */
     1.7 -native SetEdictFlags(edict, flags);
     1.8 \ No newline at end of file
     1.9 +native SetEdictFlags(edict, flags);
    1.10 +
    1.11 +/**
    1.12 + * Retrieves an edict classname.
    1.13 + *
    1.14 + * @param edict			Index of the entity.
    1.15 + * @param clsname		Buffer to store the classname.
    1.16 + * @param maxlength		Maximum length of the buffer.
    1.17 + * @return				True on success, false if there is no classname set.
    1.18 + */
    1.19 +native bool:GetEdictClassname(edict, String:clsname[], maxlength);
    1.20 +
    1.21 +/**
    1.22 + * Retrieves an entity's networkable serverclass name.
    1.23 + * This is not the same as the classname and is used for networkable state changes.
    1.24 + *
    1.25 + * @param edict			Index of the entity.
    1.26 + * @param clsname		Buffer to store the serverclass name.
    1.27 + * @param maxlength		Maximum lnegth of the buffer.
    1.28 + * @return				True on success, false if the edict is not networkable.
    1.29 + * @error				Invalid edict index.
    1.30 + */
    1.31 +native bool:GetEntityNetClass(edict, String:clsname[], maxlength);