Example #1
0
 public static DefModExtension_PawnTableDefs Ext(this PawnTableDef def)
 {
     if (!def.HasModExtension <DefModExtension_PawnTableDefs>())
     {
         Log.Error("Numbers expected DefModExtension PawnTableDef, got null");
         return(null);
     }
     return(def.GetModExtension <DefModExtension_PawnTableDefs>());
 }
Example #2
0
        public static DefModExtension_PawnTableDefs Ext(this PawnTableDef def)
        {
            var ext = def.GetModExtension <DefModExtension_PawnTableDefs>();

            if (ext == null)
            {
                Log.Error($"Numbers expected DefModExtension PawnTableDef, got null for def {def.defName}");
            }

            return(ext);
        }