Ejemplo n.º 1
0
 //-------------------------------------------------------------------------
 public override void load(EbPropSet prop_set)
 {
     Name = prop_set.getPropString("T_Name").get();
     var prop_state = prop_set.getPropInt("I_State");
     State = prop_state == null ? DataState.Default : (DataState)prop_state.get();
     SourceName = prop_set.getPropString("T_SourceName").get();
     SwordCount = prop_set.getPropInt("I_SwordCount").get();
     LastTime = prop_set.getPropInt("I_LastTime").get();
     SwordSpeed = prop_set.getPropInt("I_SwordSpeed").get();
     var prop_spread = prop_set.getPropInt("I_SpreadType");
     SpreadType = prop_spread == null ? SpreadTypeEnum.Default : (SpreadTypeEnum)prop_spread.get();
 }
Ejemplo n.º 2
0
        //-------------------------------------------------------------------------
        public override void load(EbPropSet prop_set)
        {
            Name = prop_set.getPropString("T_Name").get();
            var prop_state = prop_set.getPropInt("I_State");

            State      = prop_state == null ? DataState.Default : (DataState)prop_state.get();
            SourceName = prop_set.getPropString("T_SourceName").get();
            SwordCount = prop_set.getPropInt("I_SwordCount").get();
            LastTime   = prop_set.getPropInt("I_LastTime").get();
            SwordSpeed = prop_set.getPropInt("I_SwordSpeed").get();
            var prop_spread = prop_set.getPropInt("I_SpreadType");

            SpreadType = prop_spread == null ? SpreadTypeEnum.Default : (SpreadTypeEnum)prop_spread.get();
        }