/// <summary> /// 创建生成器 /// </summary> /// <param name="ctrl_idx">控制器标识</param> /// <param name="sp_idx">生成器标识</param> /// <param name="sp_type">生成器类型</param> /// <param name="npc_type">NPC类型</param> /// <param name="group_type">群组类型</param> /// <param name="revive">是否复活</param> /// <param name="region_type">区域类型</param> /// <param name="x">坐标x</param> /// <param name="y">坐标y</param> /// <param name="z">坐标z</param> /// <param name="dx">ex</param> /// <param name="dy">dy</param> /// <param name="dz">sz</param> /// <param name="ex">ex</param> /// <param name="ey">ey</param> /// <param name="ez">ez</param> /// <param name="dir1">dir1</param> /// <param name="rad">rad</param> /// <param name="life_time">life_time</param> /// <param name="total_num">total_num</param> /// <param name="phase_id">phase_id</param> /// <param name="reborn_time">reborn_time</param> /// <returns>成功/失败</returns> public bool CreateSpawer(int ctrl_idx, int sp_idx, TSPAWER_TYPE sp_type, TSPAWER_NPC npc_type, TSPAWER_GROUP group_type, bool revive, TSPAWER_REGION region_type, float x, float y, float z, float dx, float dy, float dz, float ex, float ey, float ez, int dir1, int rad, int life_time, int total_num, int phase_id, int reborn_time) { return(CreateSpawer(nativePtr, ctrl_idx, sp_idx, sp_type, npc_type, group_type, revive, region_type, x, y, z, dx, dy, dz, ex, ey, ez, dir1, rad, life_time, total_num, phase_id, reborn_time)); }
private extern static bool CreateSpawer(IntPtr p, int ctrl_idx, int sp_idx, TSPAWER_TYPE sp_type, TSPAWER_NPC npc_type, TSPAWER_GROUP group_type, bool revive, TSPAWER_REGION region_type, float x, float y, float z, float dx, float dy, float dz, float ex, float ey, float ez, int dir1, int rad, int life_time, int total_num, int phase_id, int reborn_time);