属性控制
This commit is contained in:
@@ -55,6 +55,26 @@ namespace NBC
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2Map_RolePropertyChange : AMessage, ICustomRouteMessage, IProto
|
||||
{
|
||||
public static C2Map_RolePropertyChange Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_RolePropertyChange>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Propertys.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_RolePropertyChange>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Map_RolePropertyChange; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.MapRoute;
|
||||
[ProtoMember(1)]
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 玩家状态变化同步
|
||||
/// </summary>
|
||||
@@ -116,6 +136,7 @@ namespace NBC
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Propertys.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_RolePropertyChangeNotify>(this);
|
||||
@@ -125,7 +146,9 @@ namespace NBC
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.MapRoute;
|
||||
[ProtoMember(1)]
|
||||
public List<KeyValueInt32> Propertys = new List<KeyValueInt32>();
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2Map_Move : AMessage, ICustomRouteMessage, IProto
|
||||
|
||||
Reference in New Issue
Block a user