mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 08:04:01 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16d1413cd8 | ||
|
|
00d5f35c30 | ||
|
|
7e45bd8dcb |
@@ -0,0 +1,42 @@
|
||||
using MikuSB.Database.Player;
|
||||
using MikuSB.GameServer.Server.CallGS.Handlers.Misc;
|
||||
using MikuSB.Proto;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace MikuSB.GameServer.Server.CallGS.Handlers.Preview;
|
||||
|
||||
[CallGSApi("RecordConfession")]
|
||||
public class RecordConfession : ICallGSHandler
|
||||
{
|
||||
private const int MainSceneGID = 132;
|
||||
public async Task Handle(Connection connection, string param, ushort seqNo)
|
||||
{
|
||||
var req = JsonSerializer.Deserialize<RecordConfessionParam>(param);
|
||||
if (req == null) return;
|
||||
var sid = req.Id + 10;
|
||||
var player = connection.Player!;
|
||||
var attr = player.Data.Attrs
|
||||
.FirstOrDefault(x => x.Gid == MainSceneGID && x.Sid == sid);
|
||||
if (attr == null)
|
||||
{
|
||||
attr = new PlayerAttr
|
||||
{
|
||||
Gid = MainSceneGID,
|
||||
Sid = sid,
|
||||
Val = 1
|
||||
};
|
||||
player.Data.Attrs.Add(attr);
|
||||
}
|
||||
var sync = new NtfSyncPlayer();
|
||||
sync.Custom[player.ToPackedAttrKey(MainSceneGID, sid)] = attr.Val;
|
||||
sync.Custom[player.ToShiftedAttrKey(MainSceneGID, sid)] = attr.Val;
|
||||
await CallGSRouter.SendScript(connection, "RecordConfession", "{}", sync);
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class RecordConfessionParam
|
||||
{
|
||||
[JsonPropertyName("nIdx")]
|
||||
public uint Id { get; set; }
|
||||
}
|
||||
@@ -62,7 +62,7 @@ public class PacketNtfCallScript : BasePacket
|
||||
};
|
||||
|
||||
var extraSync = new NtfSyncPlayer();
|
||||
foreach (var item in inventory.Items.Values) if ((item.TemplateId & 0xFFFF) != 5) extraSync.Items.Add(item.ToProto());
|
||||
foreach (var item in inventory.Items.Values) extraSync.Items.Add(item.ToProto());
|
||||
foreach (var weapon in inventory.Weapons.Values) extraSync.Items.Add(weapon.ToProto());
|
||||
proto.ExtraSync = extraSync;
|
||||
SetData(proto);
|
||||
|
||||
@@ -11,7 +11,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<_TargetId>Folder</_TargetId>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<SelfContained>true</SelfContained>
|
||||
<SelfContained>false</SelfContained>
|
||||
<PublishSingleFile>false</PublishSingleFile>
|
||||
<PublishReadyToRun>true</PublishReadyToRun>
|
||||
<PublishTrimmed>false</PublishTrimmed>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MikuSB
|
||||
|
||||
Snowbreak: Containment Zone private server reimplementation written in C#.
|
||||
<strong>MikuSB</strong> is a server emulator of a certain dungeon anime game.
|
||||
`SdkServer`, `GameServer`, and an optional local HTTP/HTTPS proxy are started from a single `net9.0` application.
|
||||
|
||||
[Discord](https://discord.gg/aMwCu9JyUR)
|
||||
@@ -86,7 +86,6 @@ It is not intended for unauthorized access to, interference with, or commercial
|
||||
|
||||
## Legal Disclaimer
|
||||
MikuSB was developed for educational and research purposes.
|
||||
- This project is not affiliated with or endorsed by SEASUN GAMES PTE. LTD.
|
||||
- All trademarks, copyrights, and other intellectual property related to the original game and its associated franchise belong to their respective owners.
|
||||
- This repository does not include any copyrighted game assets, binaries, or master data.
|
||||
- Use this software at your own risk. The authors assume no responsibility for any damages or legal consequences resulting from its use.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MikuSB
|
||||
|
||||
Snowbreak: Containment Zone 向けの C# 製プライベートサーバー再実装です。
|
||||
<strong>MikuSB</strong>は、あるダンジョンアニメゲームのサーバーエミュレーターです。
|
||||
`SdkServer`、`GameServer`、任意のローカル HTTP/HTTPS プロキシを 1 つの `net9.0` アプリとして起動します。
|
||||
|
||||
[Discord](https://discord.gg/aMwCu9JyUR)
|
||||
@@ -87,7 +87,6 @@ dotnet build
|
||||
|
||||
## 法的免責事項
|
||||
MikuSBは教育および研究目的で開発されました。
|
||||
- このプロジェクトはSEASUN GAMES PTE. LTD. と一切関係が無く、承認も受けていません。
|
||||
- 元のゲーム及び関連フランチャイズに関するすべての商標、著作権知的財産権はそれぞれの所有者に帰属します。
|
||||
- このリポジトリには、著作権で保護されたゲームアセット、バイナリ、マスターデータは一切含まれていません。
|
||||
- 自己責任でご利用下さい。 著者は、本ソフトウェアによって生じるいかなる損害または法的結果についても一切責任を負いません。
|
||||
|
||||
@@ -1 +1 @@
|
||||
v=0.8
|
||||
v=0.9
|
||||
Reference in New Issue
Block a user