slot0 = class("OilResourceField", import(".BaseResourceField")) function slot0.Ctor(slot0, slot1) uv0.super.Ctor(slot0, slot1) slot2 = slot0:bindConfigTable() table.insert(slot0.attrs, ResourceFieldAttr.New(slot2, i18n("class_attr_store"), "store")) table.insert(slot0.attrs, ResourceFieldLevelProductAttr.New(slot2, i18n("class_label_oilfield"), "production", 1)) end function slot0.GetKeyWord(slot0) return "canteen" end function slot0.bindConfigTable(slot0) return pg.oilfield_template end function slot0.GetUpgradeType(slot0) return 8 end function slot0.GetResourceType(slot0) return PlayerConst.ResOil end function slot0.getHourProduct(slot0) return slot0:getConfig("hour_time") * slot0:getConfig("production") end function slot0.GetName(slot0) return i18n("school_title_shitang") end function slot0.GetDesc(slot0) return i18n("naval_academy_res_desc_cateen") end function slot0.GetPlayerRes(slot0) return getProxy(PlayerProxy):getRawData().oilField end return slot0