Crossfire Server, Trunk
arch_types_valid.cpp File Reference
#include <global.h>
#include <libproto.h>
+ Include dependency graph for arch_types_valid.cpp:

Go to the source code of this file.

Functions

int is_type_valid (uint8_t type)
 

Function Documentation

◆ is_type_valid()

int is_type_valid ( uint8_t  type)

Checks if the specified type is a valid one for a Crossfire object.

Parameters
typevalue to check.
Returns
1 if the type is valid, 0 else.

Definition at line 17 of file arch_types_valid.cpp.

References OBJECT_TYPE_MAX, and is_valid_types_gen::type.

Referenced by check_loaded_object().

+ Here is the caller graph for this function: