第一批重构,主要是物理迁移脚本和部分命名空间的调整
- 结构上迁移文件,将脚本分成 Base/Runtime/Presentation/Procedure/Editor 五大文件夹 - 调整 DataTable 和 Definition 下脚本的命名空间 - 依据 UI-5层架构设计规范 拆分原先的 UI 到 Runtime 和 Presentation 下
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7771e0f6b92ece64395ada5cdea72858
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,53 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public sealed class ProjectileHitPresentationEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ProjectileHitPresentationEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int ProjectileEntityId { get; private set; }
|
||||
public int SourceEntityId { get; private set; }
|
||||
public int SourceOwnerEntityId { get; private set; }
|
||||
public int TargetEntityId { get; private set; }
|
||||
public int Damage { get; private set; }
|
||||
public Vector3 HitPosition { get; private set; }
|
||||
public bool ShowHitMarker { get; private set; }
|
||||
public bool ShowHitEffect { get; private set; }
|
||||
public int EffectEntityTypeId { get; private set; }
|
||||
|
||||
public static ProjectileHitPresentationEventArgs Create(int projectileEntityId, int sourceEntityId,
|
||||
int sourceOwnerEntityId, int targetEntityId, int damage, in Vector3 hitPosition, bool showHitMarker,
|
||||
bool showHitEffect, int effectEntityTypeId)
|
||||
{
|
||||
ProjectileHitPresentationEventArgs args = ReferencePool.Acquire<ProjectileHitPresentationEventArgs>();
|
||||
args.ProjectileEntityId = projectileEntityId;
|
||||
args.SourceEntityId = sourceEntityId;
|
||||
args.SourceOwnerEntityId = sourceOwnerEntityId;
|
||||
args.TargetEntityId = targetEntityId;
|
||||
args.Damage = damage;
|
||||
args.HitPosition = hitPosition;
|
||||
args.ShowHitMarker = showHitMarker;
|
||||
args.ShowHitEffect = showHitEffect;
|
||||
args.EffectEntityTypeId = effectEntityTypeId;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
ProjectileEntityId = 0;
|
||||
SourceEntityId = 0;
|
||||
SourceOwnerEntityId = 0;
|
||||
TargetEntityId = 0;
|
||||
Damage = 0;
|
||||
HitPosition = Vector3.zero;
|
||||
ShowHitMarker = false;
|
||||
ShowHitEffect = false;
|
||||
EffectEntityTypeId = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d02876e26d8342f7af024c697e451ea4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,32 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class DisplayItemInfoHideEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(DisplayItemInfoHideEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public bool Force = false;
|
||||
|
||||
public DisplayItemInfoHideEventArgs()
|
||||
{
|
||||
Force = false;
|
||||
}
|
||||
|
||||
public static DisplayItemInfoHideEventArgs Create(bool force = false)
|
||||
{
|
||||
var args = ReferencePool.Acquire<DisplayItemInfoHideEventArgs>();
|
||||
args.Force = force;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Force = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a515c94c54304c79b0fa4761f07a732d
|
||||
timeCreated: 1771071838
|
||||
@@ -0,0 +1,27 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class DisplayItemInfoLockEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(DisplayItemInfoLockEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public DisplayItemInfoLockEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
public static DisplayItemInfoLockEventArgs Create()
|
||||
{
|
||||
var args = ReferencePool.Acquire<DisplayItemInfoLockEventArgs>();
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 17754f00ac924fc29b3604cfed7a5efe
|
||||
timeCreated: 1771488601
|
||||
@@ -0,0 +1,41 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class DisplayItemShowEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(DisplayItemShowEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int Index { get; private set; }
|
||||
|
||||
public bool IsWeapon { get; private set; }
|
||||
|
||||
public Vector3 TargetPos { get; private set; }
|
||||
|
||||
public DisplayItemShowEventArgs()
|
||||
{
|
||||
Index = -1;
|
||||
IsWeapon = false;
|
||||
}
|
||||
|
||||
public static DisplayItemShowEventArgs Create(int index, bool isWeapon, Vector3 targetPos)
|
||||
{
|
||||
var args = ReferencePool.Acquire<DisplayItemShowEventArgs>();
|
||||
args.Index = index;
|
||||
args.IsWeapon = isWeapon;
|
||||
args.TargetPos = targetPos;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Index = -1;
|
||||
IsWeapon = false;
|
||||
TargetPos = Vector3.zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51bff2c6818f44398b4b8f7d1448b310
|
||||
timeCreated: 1771071724
|
||||
@@ -0,0 +1,32 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class LevelProcessEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(LevelProcessEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int LevelTimeLeft { get; private set; }
|
||||
|
||||
public LevelProcessEventArgs()
|
||||
{
|
||||
LevelTimeLeft = 60;
|
||||
}
|
||||
|
||||
public static LevelProcessEventArgs Create(int timeLeft)
|
||||
{
|
||||
var args = ReferencePool.Acquire<LevelProcessEventArgs>();
|
||||
args.LevelTimeLeft = timeLeft;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
LevelTimeLeft = 60;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2955cc8506684108ba00e6a1e1504a35
|
||||
timeCreated: 1771483221
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9ee8d2a2a12545b8b8cfc85c5fe912ed
|
||||
timeCreated: 1771071689
|
||||
@@ -0,0 +1,31 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class LevelUpPropSelectedEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(LevelUpPropSelectedEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int SelectedId { get; private set; }
|
||||
|
||||
public LevelUpPropSelectedEventArgs()
|
||||
{
|
||||
SelectedId = -1;
|
||||
}
|
||||
|
||||
public static LevelUpPropSelectedEventArgs Create(int propId)
|
||||
{
|
||||
var args = ReferencePool.Acquire<LevelUpPropSelectedEventArgs>();
|
||||
args.SelectedId = propId;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
SelectedId = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3183e53376fbf95438a0a938510ce7f1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8fc42c90ffa598d4e89c908ad82116d8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuAboutButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuAboutButtonClickEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static MenuAboutButtonClickEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<MenuAboutButtonClickEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f58e49962f2db9140aaf209ca65dd2f9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuFileButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuFileButtonClickEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static MenuFileButtonClickEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<MenuFileButtonClickEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e093cff04ac83fc47ae21bd659b338ad
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuGuideButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuGuideButtonClickEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static MenuGuideButtonClickEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<MenuGuideButtonClickEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b39712010e7085f428e9ef9727bda043
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuQuitButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuQuitButtonClickEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static MenuQuitButtonClickEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<MenuQuitButtonClickEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c008a5618fa012842992de55bef3791c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuSelectRoleConfirmEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuSelectRoleConfirmEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static MenuSelectRoleConfirmEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<MenuSelectRoleConfirmEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c360f9423f498704dbb32820841451c0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuSelectRoleReturnEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuSelectRoleReturnEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static MenuSelectRoleReturnEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<MenuSelectRoleReturnEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 25cf88630e365d2428872f6bae81001e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,26 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuSelectRoleSelectedEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuSelectRoleSelectedEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int RoleId { get; private set; } = -1;
|
||||
|
||||
public static MenuSelectRoleSelectedEventArgs Create(int roleId)
|
||||
{
|
||||
var args = ReferencePool.Acquire<MenuSelectRoleSelectedEventArgs>();
|
||||
args.RoleId = roleId;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
RoleId = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c99f1c134cc628142a36d21c209ed507
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuSettingButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuSettingButtonClickEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static MenuSettingButtonClickEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<MenuSettingButtonClickEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d5de2367f2bc83642bbbdc02081ae804
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class MenuStartGameEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(MenuStartGameEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static MenuStartGameEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<MenuStartGameEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 217b0022ddd4a4545a8d8e3d8158a967
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2540b6786a5c4f3aadd4f57c79b714b9
|
||||
timeCreated: 1770985387
|
||||
@@ -0,0 +1,37 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class PlayerCoinChangeEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(PlayerCoinChangeEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int Gain { get; private set; }
|
||||
|
||||
public int CoinCount { get; private set; }
|
||||
|
||||
public PlayerCoinChangeEventArgs()
|
||||
{
|
||||
Gain = 0;
|
||||
CoinCount = 0;
|
||||
}
|
||||
|
||||
public static PlayerCoinChangeEventArgs Create(int gain, int coinCount)
|
||||
{
|
||||
var args = ReferencePool.Acquire<PlayerCoinChangeEventArgs>();
|
||||
args.Gain = gain;
|
||||
args.CoinCount = coinCount;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Gain = 0;
|
||||
CoinCount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d5397f71ffb0ec542a8d82349d2b87ce
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,37 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class PlayerExpChangeEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(PlayerExpChangeEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int CurrentExp { get; private set; }
|
||||
|
||||
public int MaxExp { get; private set; }
|
||||
|
||||
public PlayerExpChangeEventArgs()
|
||||
{
|
||||
CurrentExp = 0;
|
||||
MaxExp = 0;
|
||||
}
|
||||
|
||||
public static PlayerExpChangeEventArgs Create(int currentExp, int maxExp)
|
||||
{
|
||||
var args = ReferencePool.Acquire<PlayerExpChangeEventArgs>();
|
||||
args.CurrentExp = currentExp;
|
||||
args.MaxExp = maxExp;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
CurrentExp = 0;
|
||||
MaxExp = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: df4e3161b15f43348b28e3abc199c6a2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,42 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class PlayerHealthChangeEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(PlayerHealthChangeEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int Damage { get; private set; }
|
||||
|
||||
public int CurrentHealth { get; private set; }
|
||||
|
||||
public int MaxHealth { get; private set; }
|
||||
|
||||
public PlayerHealthChangeEventArgs()
|
||||
{
|
||||
Damage = 0;
|
||||
CurrentHealth = 0;
|
||||
MaxHealth = 0;
|
||||
}
|
||||
|
||||
public static PlayerHealthChangeEventArgs Create(int damage, int currentHealth, int maxHealth)
|
||||
{
|
||||
var args = ReferencePool.Acquire<PlayerHealthChangeEventArgs>();
|
||||
args.Damage = damage;
|
||||
args.CurrentHealth = currentHealth;
|
||||
args.MaxHealth = maxHealth;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Damage = 0;
|
||||
CurrentHealth = 0;
|
||||
MaxHealth = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 360d3b70d3fbfc048a9ad5beb0d7bf84
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,27 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class PlayerLevelUpEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(PlayerLevelUpEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public PlayerLevelUpEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
public static PlayerLevelUpEventArgs Create()
|
||||
{
|
||||
var args = ReferencePool.Acquire<PlayerLevelUpEventArgs>();
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 59e602f086ce428396eab715b1277a23
|
||||
timeCreated: 1770989625
|
||||
@@ -0,0 +1,34 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class RefreshEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(RefreshEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int Cost { get; private set; }
|
||||
|
||||
public RefreshEventArgs()
|
||||
{
|
||||
Cost = 0;
|
||||
}
|
||||
|
||||
public static RefreshEventArgs Create(int cost)
|
||||
{
|
||||
var args = ReferencePool.Acquire<RefreshEventArgs>();
|
||||
|
||||
args.Cost = cost;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Cost = 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f463ec631b54d9e9feda00be716ae68
|
||||
timeCreated: 1770985436
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0ce83a125a974b49ad8a9251a8d73359
|
||||
timeCreated: 1770985411
|
||||
@@ -0,0 +1,27 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class ShopContinueEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ShopContinueEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public ShopContinueEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
public static ShopContinueEventArgs Create()
|
||||
{
|
||||
var args = ReferencePool.Acquire<ShopContinueEventArgs>();
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b09ad1baac8a41338c0e42baf398beb8
|
||||
timeCreated: 1770986449
|
||||
@@ -0,0 +1,34 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class ShopPurchaseEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ShopPurchaseEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int GoodsIndex { get; private set; }
|
||||
|
||||
public ShopPurchaseEventArgs()
|
||||
{
|
||||
GoodsIndex = -1;
|
||||
}
|
||||
|
||||
public static ShopPurchaseEventArgs Create(int index)
|
||||
{
|
||||
var args = ReferencePool.Acquire<ShopPurchaseEventArgs>();
|
||||
|
||||
args.GoodsIndex = index;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
GoodsIndex = -1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 11c82e4a45804087b1aaf337e38a8836
|
||||
timeCreated: 1770986490
|
||||
@@ -0,0 +1,37 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class ShopWeaponRecycleEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ShopWeaponRecycleEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int Index { get; private set; }
|
||||
|
||||
public int Price { get; private set; }
|
||||
|
||||
public ShopWeaponRecycleEventArgs()
|
||||
{
|
||||
Index = -1;
|
||||
Price = 0;
|
||||
}
|
||||
|
||||
public static ShopWeaponRecycleEventArgs Create(int index, int price)
|
||||
{
|
||||
var args = ReferencePool.Acquire<ShopWeaponRecycleEventArgs>();
|
||||
args.Index = index;
|
||||
args.Price = price;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Index = -1;
|
||||
Price = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a11aec04bee4abf85e3df1d495e9f84
|
||||
timeCreated: 1771487051
|
||||
Reference in New Issue
Block a user