File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -3711,6 +3711,21 @@ class LunaProfile : public Luna<Profile>
3711
3711
return 1 ;
3712
3712
}
3713
3713
3714
+ // make unshit -mina
3715
+ static int RemoveGoalsByKey (T* p, lua_State *L) {
3716
+ RString ck = SArg (1 );
3717
+ auto it = p->goalmap .find (ck);
3718
+ if (it == p->goalmap .end ()) {
3719
+ lua_pushnil (L);
3720
+ }
3721
+ else {
3722
+ p->goalmap .erase (ck);
3723
+ SONGMAN->SetHasGoal (p->goalmap );
3724
+ }
3725
+
3726
+ return 1 ;
3727
+ }
3728
+
3714
3729
static int GetAllGoals (T* p, lua_State *L) {
3715
3730
lua_newtable (L);
3716
3731
int idx = 0 ;
@@ -3810,6 +3825,7 @@ class LunaProfile : public Luna<Profile>
3810
3825
ADD_METHOD ( GetPBHighScoreByKey );
3811
3826
ADD_METHOD ( ValidateAllScores );
3812
3827
ADD_METHOD ( GetGoalByKey );
3828
+ ADD_METHOD ( RemoveGoalsByKey );
3813
3829
ADD_METHOD ( GetAllGoals );
3814
3830
}
3815
3831
};
@@ -3853,6 +3869,7 @@ class LunaScoreGoal : public Luna<ScoreGoal>
3853
3869
}
3854
3870
return 1 ;
3855
3871
}
3872
+
3856
3873
static int SetPriority (T* p, lua_State *L) { p->priority = IArg (1 ); return 1 ; }
3857
3874
static int SetComment (T* p, lua_State *L) { p->comment = SArg (1 ); return 1 ; }
3858
3875
You can’t perform that action at this time.
0 commit comments