Checkpoint 5 & Checkpoint 6

This commit is contained in:
SepComet
2026-02-22 22:00:43 +08:00
parent 5fb7ea499f
commit f0abf78128
65 changed files with 3875 additions and 137 deletions
@@ -28,14 +28,15 @@ namespace Entity.EntityData
public WeaponType WeaponType => (WeaponType)_drWeapon.Id;
public string GetParamsString(string paramsName)
public bool TryGetParam(string key, out string value)
{
if (!Params.TryGetValue(paramsName.ToLower(), out var value))
value = null;
if (string.IsNullOrEmpty(key) || Params == null)
{
throw new Exception($"Parameter '{paramsName}' not found.");
return false;
}
return value;
return Params.TryGetValue(key.ToLower(), out value);
}
/// <summary>
@@ -0,0 +1,12 @@
using Definition.Enum;
namespace Entity.EntityData
{
public class WeaponLightningData : WeaponData
{
public WeaponLightningData(int entityId, int ownerId, CampType ownerCamp)
: base(entityId, WeaponType.WeaponLightning, ownerId, ownerCamp)
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 25b0006918fd46959c7f6b8ec1bbc8ab
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: