GetFloat() public method

public GetFloat ( int offset ) : float
offset int
return float
Ejemplo n.º 1
0
        public static float GetEdictFieldFloat(edict_t ed, string field, float defValue = 0)
        {
            ddef_t def = CachedSearch(ed, field);

            if (def == null)
            {
                return(defValue);
            }

            return(ed.GetFloat(def.ofs));
        }
Ejemplo n.º 2
0
        public static float GetEdictFieldFloat(edict_t ed, string field, float defValue = 0)
        {
            ddef_t def = CachedSearch(ed, field);
            if (def == null)
                return defValue;

            return ed.GetFloat(def.ofs);
        }