Files
SVSimServer/SVSim.BattleEngine/Engine/NetworkBattleDefine.cs
gamer147 0d9d8acae0 feat(battle-engine): M1 auto-copy closure (782 battle-logic files)
Compile-driven bulk-copy loop (tools/engine-port/m1_copy_loop.py) pulled the precise reference closure of the battle-core roots, stopping at the classify god-object/View-VFX-UI boundary. 782 files; no re-explosion (M0 had estimated ~order 1000). Residual frontier = 52 shim-classified + 80 external (Unity/BCL) types to author next.
2026-06-05 16:57:20 -04:00

200 lines
3.7 KiB
C#

using System;
using System.Collections.Generic;
public class NetworkBattleDefine
{
public enum PlayActionType
{
NONE = 0,
ATTACK = 10,
EVOLUTION = 20,
EVOLUTION_SELECT = 21,
PLAY_HAND = 30,
PLAY_HAND_SELECT = 31,
FUSION = 40
}
public enum NetworkCardPlaceState
{
Deck = 0,
Hand = 10,
Field = 20,
Cemetery = 30,
Banish = 40,
None = 50,
FusionIngredient = 60,
Riding = 70,
Reservation = 80,
Unite = 90,
BlackHole = 999
}
public enum NetworkBattleURI
{
None,
Resume,
Retry,
InitNetwork,
InitBattle,
InitRoomBattle,
Matched,
Loaded,
Deal,
Swap,
Ready,
TurnStart,
TurnEndActions,
TurnEnd,
TurnEndFinal,
PlayActions,
BattleStart,
BattleFinish,
ChatStamp,
Gungnir,
Echo,
Retire,
OppoDisconnect,
End,
Judge,
Touch,
SelectSkill,
SelectObject,
SlideObject,
TurnEndReady,
RecoveryStart,
RecoveryEnd,
JudgeResult,
Maintenance,
ReplayFinish,
Kill,
Watch
}
public enum NetworkParameter
{
playIdx,
idx,
idxList,
isSelf,
type,
targetIdx,
skillIndex,
selectSkillIndex,
targetList,
from,
to,
cardId,
cost,
is_open,
addAtk,
setAtk,
addLife,
setLife,
clan,
tribe,
knownList,
oppoTargetList,
stamp,
chatStamp,
key,
skill,
activate,
log,
endType,
result,
targetUri,
uList,
keyAction,
skillKeyCardIdx,
skillIdx,
skillCount,
skillTarget,
count,
param,
attachTarget,
isFlood,
highlander,
spellboost,
addChantCount,
setChantCount,
callCount,
unionburst,
skyboundArt,
randomTargetIdx,
idxChangeSeed,
oppoIdxChangeSeed,
spin,
resultCode,
isWin,
errorType,
pos,
self,
oppo,
battleStartDate,
time,
cards,
touch,
value,
vid,
finishData,
fusion,
isInvoke,
notBuff,
hasGuard,
byOppo
}
public enum ReceiveNodeResultCode
{
None = 0,
Success = 1,
RoomStatusInfoError = 30101,
RoomCreateError = 30102,
RoomEntryError = 30103,
RoomKickError = 30104,
RoomLeaveError = 30105,
RoomReleaseError = 30106,
RoomForceReleaseError = 30107,
RoomReenterError = 30108,
RoomBattleReadeError = 30109,
RoomTournamentDeckError = 30110,
RoomTournamentError = 30111,
RoomSetupLock = 30112,
SwapTimeoutError = 31001,
MatchingTimeOut = 30201,
FoundRemovedUserErrorSelf = 32101,
FoundRemovedUserErrorOppo = 32102,
FoundRemovedUserErrorWatcher = 32103,
RoomTimeEndError = 32104,
WatcherInRemovedOwnerRoomError = 32105,
RoomTornamentOwnTimeEndError = 32106,
RoomTornamentOppoTimeEndError = 32107,
BattleFinishTimeEnd = 32108,
Different_UUID = 30001,
RedisReplyError = 30002,
WatchError = 30302,
CurrentBattleError = 30212,
UnexpectedPhaseError = 30213,
UnexistUserinfoError = 30003,
UnmatchedError = 30211
}
public static readonly Dictionary<NetworkBattleURI, string> NetworkURINames;
public static readonly Dictionary<NetworkParameter, string> NetworkParameterNames;
static NetworkBattleDefine()
{
NetworkURINames = new Dictionary<NetworkBattleURI, string>(Enum.GetValues(typeof(NetworkBattleURI)).Length);
foreach (NetworkBattleURI value in Enum.GetValues(typeof(NetworkBattleURI)))
{
NetworkURINames[value] = Enum.GetName(typeof(NetworkBattleURI), value);
}
NetworkParameterNames = new Dictionary<NetworkParameter, string>(Enum.GetValues(typeof(NetworkParameter)).Length);
foreach (NetworkParameter value2 in Enum.GetValues(typeof(NetworkParameter)))
{
NetworkParameterNames[value2] = Enum.GetName(typeof(NetworkParameter), value2);
}
}
}