mirror of
https://git.muiegratis.online/suikoakari/Campofinale
synced 2025-12-24 23:44:36 +01:00
test
This commit is contained in:
@@ -25,7 +25,13 @@ namespace Campofinale.Packets.Cs
|
||||
|
||||
State = 3
|
||||
};
|
||||
|
||||
if (!session.sceneManager.GetCurScene().activeScripts.Contains(req.ScriptId))
|
||||
{
|
||||
session.sceneManager.GetCurScene().activeScripts.Add(req.ScriptId);
|
||||
}
|
||||
session.Send(ScMsgId.ScSceneLevelScriptStateNotify, rsp);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +51,7 @@ namespace Campofinale.Packets.Cs
|
||||
|
||||
State = 4
|
||||
};
|
||||
|
||||
|
||||
session.Send(ScMsgId.ScSceneLevelScriptStateNotify, rsp,packet.csHead.UpSeqid);
|
||||
}
|
||||
|
||||
@@ -69,6 +75,15 @@ namespace Campofinale.Packets.Cs
|
||||
UnlockSystemType type = (UnlockSystemType)Enum.Parse(typeof(UnlockSystemType), action.valueStr[0]);
|
||||
player.UnlockSystem(type);
|
||||
break;
|
||||
case ScriptActionType.EnterScene:
|
||||
player.EnterScene((int)action.valueUlong[0]);
|
||||
break;
|
||||
case ScriptActionType.AddMission:
|
||||
player.missionSystem.AddMission(action.valueStr[0]);
|
||||
break;
|
||||
case ScriptActionType.CompleteMission:
|
||||
//player.missionSystem.C(action.valueStr[0]);
|
||||
break;
|
||||
default:
|
||||
Logger.PrintWarn("Script Action not implemented");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user