mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
-Fix possible issues that may not be completed when completing tasks of type "SubMissionFinishCnt"
Mission Part
Menu
MissionManager
MissionManager.cs: Used to manage the player's mission data
Method
- (need to write)
FinishTypeHandler
Class Name Style: MissionHandler
Example:
[MissionFinishType(MissionFinishTypeEnum.<Type>)]
public class MissionHandler<Type> : MissionFinishTypeHandler
{
public override void Init(PlayerInstance player, SubMissionInfo info, object? arg)
{
// your code
}
public override void HandleFinishType(PlayerInstance player, SubMissionInfo info, object? arg)
{
// your code
}
}
FinishActionHandler
Class Name Style: MissionHandler
Example:
[MissionFinishAction(FinishActionTypeEnum.<Type>)]
public class MissionHandler<Type> : MissionFinishActionHandler
{
public override void OnHandle(List<int> Params, List<string> ParamString, PlayerInstance Player)
{
// your code
}
}