public static void SetRadingPhase(int phase) { if (phase > 4 || phase < 1) { return; } List <Mst_radingtype> list = Mst_DataManager.Instance.Mst_RadingType.get_Item((int)Comm_UserDatas.Instance.User_basic.Difficult); int turn_from; if (phase == 3) { turn_from = list.get_Item(0).Turn_from; } else if (phase == 2) { turn_from = list.get_Item(1).Turn_from; } else { turn_from = list.get_Item(2).Turn_from; } Mem_turn user_turn = Comm_UserDatas.Instance.User_turn; user_turn.GetType().InvokeMember("_total_turn", 2084, null, user_turn, new object[] { turn_from - 1 }); user_turn.GetType().InvokeMember("_reqQuestReset", 2084, null, user_turn, new object[] { true }); }
public static void SetRadingPhase(int phase) { if (phase <= 4 && phase >= 1) { List <Mst_radingtype> list = Mst_DataManager.Instance.Mst_RadingType[(int)Comm_UserDatas.Instance.User_basic.Difficult]; int turn_from; switch (phase) { case 3: turn_from = list[0].Turn_from; break; case 2: turn_from = list[1].Turn_from; break; default: turn_from = list[2].Turn_from; break; } Mem_turn user_turn = Comm_UserDatas.Instance.User_turn; user_turn.GetType().InvokeMember("_total_turn", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.SetField, null, user_turn, new object[1] { turn_from - 1 }); user_turn.GetType().InvokeMember("_reqQuestReset", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.SetField, null, user_turn, new object[1] { true }); } }
public static void SetRebellionPhase(int phase) { if (phase != 0 && phase <= 6) { int turn_from = Mst_DataManager.Instance.Mst_RebellionPoint[phase].Turn_from; Mem_turn user_turn = Comm_UserDatas.Instance.User_turn; user_turn.GetType().InvokeMember("_total_turn", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.SetField, null, user_turn, new object[1] { turn_from - 1 }); user_turn.GetType().InvokeMember("_reqQuestReset", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.SetField, null, user_turn, new object[1] { true }); } }
public static void SetRebellionPhase(int phase) { if (phase == 0 || phase > 6) { return; } int turn_from = Mst_DataManager.Instance.Mst_RebellionPoint.get_Item(phase).Turn_from; Mem_turn user_turn = Comm_UserDatas.Instance.User_turn; user_turn.GetType().InvokeMember("_total_turn", 2084, null, user_turn, new object[] { turn_from - 1 }); user_turn.GetType().InvokeMember("_reqQuestReset", 2084, null, user_turn, new object[] { true }); }