GetFloat() public méthode

public GetFloat ( int offset ) : float
offset int
Résultat float
Exemple #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));
        }
Exemple #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);
        }