public bool GetMetaData <T>(string key, out T result) { AsyncContext?.RunAll(); lock (BaseObject) { if (!AsyncContext.CheckIfExistsNullable(BaseObject)) { result = default; return(false); } return(BaseObject.GetMetaData(key, out result)); } }
public static bool GetMetaData(this IBaseObject baseObject, string key, out float result) { baseObject.CheckIfEntityExists(); var mValue = MValue.Nil; baseObject.GetMetaData(key, ref mValue); if (mValue.type != MValue.Type.DOUBLE) { result = default; return(false); } result = (float)mValue.GetDouble(); return(true); }