/// <summary> /// Return the interface BaseGameObject to the caller, based on the type of class we can recast it once returned. /// </summary> /// <typeparam name="TValue1">usually the string value (key)</typeparam> /// <typeparam name="TValue2">Tuple of string,int or string,string</typeparam> /// <param name="type">type of data to search for</param> /// <param name="key">key value to search for</param> /// <returns>Interface to a game object that will need to be recast to the original type.</returns> public BaseGameObject <TValue1, TValue2> getDataFromStorageObject <TValue1, TValue2>(GameDataStorageLayerUtils.objectClassType type, string key) { BaseGameObject <TValue1, TValue2> obj = null; switch (type) { case GameDataStorageLayerUtils.objectClassType.Attribute: if (characterData.ContainsKey(key)) { return((BaseGameObject <TValue1, TValue2>)characterData[key]); } break; } return(obj); }
public bool modifyAttributeData(BaseGameObject obj) { return(true); }