Example #1
0
    public static int CommonBattlePropertyToPBCommonBattleProperty_s(IntPtr l)
    {
        int result;

        try
        {
            CommonBattleProperty property;
            LuaObject.checkType <CommonBattleProperty>(l, 1, out property);
            ProCommonBattleProperty o = CommonBattleProperty.CommonBattlePropertyToPBCommonBattleProperty(property);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
 // Token: 0x060031E3 RID: 12771 RVA: 0x000C4554 File Offset: 0x000C2754
 public static CommonBattleProperty PBCommonBattlePropertyToCommonBattleProperty(ProCommonBattleProperty pbProperty)
 {
     return(new CommonBattleProperty
     {
         Id = (PropertyModifyType)pbProperty.Id,
         Value = pbProperty.Value
     });
 }