Game/Source/Map.cpp
// Ask for the value of a custom property
Ask for the value of a custom property
Ask for the value of a custom property
int Properties::GetProperty(const char* value, int defaultValue) const
{
	ListItem<Property*>* item = propertyList.start;
	while (item != NULL)
	{
		if (item->data->name == value)
		{
			return item->data->value;
		}
		item = item->next;
	}
	return defaultValue;
}
int Properties :: GetProperty ( const char * value , int defaultValue ) const { ListItem < Property * > * item = propertyList . start ; while ( item != NULL ) { if ( item -> data -> name == value ) { return item -> data -> value ; } item = item -> next ; } return defaultValue ; }
Ask for the value of a custom property
Ask for the value of a custom property