public override void initConfig(Dictionary <string, object> data = null) { this.itemType = (int)(data["itemType"]); this._shape = Collision.createGeom(this, new object[] { (int)(data["radius"]) }); this.beanVO = BeanVO.getVOByType(this.itemType); base.initConfig(data); }
public static void initPower() { POWER_INIT = (int)(powerConfig["init"]); POWER_MAX = (int)(powerConfig["max"]); POWER_UNIT = (int)(powerConfig["unit"]); POWER_GAIN = (int)(powerConfig["gain"]); LAST_POWER_GAIN = (int)(powerConfig["lastGain"]); BeanVO.init(); }
public static void init() { for (int i = 0, len = 4; i < len; i++) { int itemType = (i + 1); Dictionary <string, object> beanConfig = (Dictionary <string, object>)ConfigConstant.powerConfig["bean" + itemType]; _map[itemType] = new BeanVO() { itemType = (int)beanConfig["itemType"], power = (int)beanConfig["power"], cure = Convert.ToDouble(beanConfig["cure"]), push = Convert.ToDouble(beanConfig["push"]), score = (int)beanConfig["score"] }; } }
public override void setData(Dictionary <string, object> data) { this.itemType = (int)(data["itemType"]); this.beanVO = BeanVO.getVOByType(this.itemType); base.setData(data); }