29 lines
978 B
Plaintext
29 lines
978 B
Plaintext
/*
|
|
文件名:SetState_All.nut
|
|
路径:SetState/SetState_All.nut
|
|
创建日期:2022-09-04 20:15
|
|
文件用途:全职业设置状态函数
|
|
*/
|
|
|
|
|
|
dofile("sqr/SetState/SetState_ATFighter.nut");
|
|
dofile("sqr/SetState/SetState_ATGunner.nut");
|
|
dofile("sqr/SetState/SetState_ATMage.nut");
|
|
dofile("sqr/SetState/SetState_CreatorMage.nut");
|
|
dofile("sqr/SetState/SetState_DemonicSwordman.nut");
|
|
dofile("sqr/SetState/SetState_Fighter.nut");
|
|
dofile("sqr/SetState/SetState_Gunner.nut");
|
|
dofile("sqr/SetState/SetState_Mage.nut");
|
|
dofile("sqr/SetState/SetState_Priest.nut");
|
|
dofile("sqr/SetState/SetState_Swordman.nut");
|
|
dofile("sqr/SetState/SetState_Thief.nut");
|
|
|
|
if (!getroottable().rawin("Chr_State_Table")) Chr_State_Table <- {}
|
|
|
|
function setState_All(obj, state, datas, isResetTimer) {
|
|
Chr_State_Table.rawset(15, state);
|
|
for (local i = 0; i < 12; i++) //将12位子状态push进 储存器的对应号位中
|
|
{
|
|
Chr_State_Table.rawset(i, obj.sq_GetVectorData(datas, i));
|
|
}
|
|
} |