public static GetMount ( int type ) : |
||
type | int | |
Résultat |
public static ModMountData GetMount(int type)
{
if (mountDatas.ContainsKey(type))
{
return mountDatas[type];
}
return null;
}
/// <summary> /// Gets the ModMountData instance corresponding to the given type. Returns null if no ModMountData has the given type. /// </summary> /// <param name="type">The type of the mount.</param> /// <returns>Null if not found, otherwise the ModMountData associated with the mount.</returns> public static ModMountData GetModMountData(int type) => MountLoader.GetMount(type);