Example #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();
 }
        //-------------------------------------------------------------------------
        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();
        }