private _getRegistration ( ushort vendorId, ushort objectType ) : Registration | ||
vendorId | ushort | The vendor id of the object |
objectType | ushort | The object type of the object |
Результат | Registration |
private Registration _getRegistration(ushort vendorId, ushort objectType)
{
Registration ret;
uint key;
key = _getKey(vendorId, objectType);
if (_registrations.TryGetValue(key, out ret))
return ret;
key = _getKey(0, objectType);
if (_registrations.TryGetValue(key, out ret))
return ret;
return _defaultRegistration;
}