51 lines
1.6 KiB
C#
51 lines
1.6 KiB
C#
namespace BrewMonster.Scripts.Task
|
|
{
|
|
public interface TaskInterface
|
|
{
|
|
bool Init(byte[] pActiveListBuf, int iActiveListLen, byte[] pFinishedListBuf,
|
|
int iFinishedListLen, byte[] pFinishedTimeListBuf, int iFinishedTimeListLen,
|
|
byte[] pFinishedCountListBuf, int iFinishedCountListLen, byte[] pStorageTaskListBuf,
|
|
int iStorageTaskListLen);
|
|
/// <summary>
|
|
/// Get task state info for a task id. 清理并填充任务状态信息 // Clean and fill task state info
|
|
/// </summary>
|
|
/// <param name="ulTaskId">任务ID // Task ID</param>
|
|
/// <param name="pInfo">输出任务状态 // Output task state</param>
|
|
/// <param name="bActiveTask">是否在激活列表中查找 // Whether to search in active list</param>
|
|
void GetTaskStateInfo(uint ulTaskId, ref Task_State_info pInfo, bool bActiveTask);
|
|
|
|
bool CheckTaskForbid(uint task_id);
|
|
|
|
bool IsAtCrossServer();
|
|
|
|
bool IsDeliverLegal();
|
|
int GetCommonItemCount(uint ulCommonItem);
|
|
|
|
int GetTaskItemCount(uint ulTaskItem);
|
|
|
|
uint GetPlayerLevel();
|
|
|
|
uint GetGoldNum();
|
|
|
|
int GetGlobalValue(int lKey);
|
|
|
|
byte GetShapeMask();
|
|
|
|
int GetPos(float[] pos);
|
|
|
|
bool CheckSimpleTaskFinshConditon(uint task_id);
|
|
|
|
int GetFactionConsumeContrib();
|
|
|
|
int GetFactionExpContrib();
|
|
|
|
bool HasTask(uint ulTaskId);
|
|
|
|
#if _TASK_CLIENT
|
|
void GetTaskAwardPreview(uint ulTaskId,ref Task_Award_Preview p, bool bActiveTask = true);
|
|
uint GetTaskCount();
|
|
uint GetTaskId(uint ulIndex);
|
|
#endif
|
|
|
|
}
|
|
} |