RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Extensions

Extensions.SafeCheck(Dictionary<string,Object>, string) Method

Safely checks if the dictionary has the key and if they key has an existing object.

public static bool SafeCheck(this System.Collections.Generic.Dictionary<string,Object> dictionary, string key);

Parameters

dictionary System.Collections.Generic.Dictionary<System.String,UnityEngine.Object>
Supposedly the data dictionary from OptionBehavior.

key System.String
Key to search from the dictionary.

Returns

System.Boolean
True if the key exists and an object is found. False otherwise.