|
@@ -4375,14 +4375,24 @@ namespace CommonAI.Zone
|
|
{
|
|
{
|
|
public byte[] cardData = new byte[(int)CardType.Max]; //0-3代表有
|
|
public byte[] cardData = new byte[(int)CardType.Max]; //0-3代表有
|
|
|
|
|
|
- public RefreshBossCardInfo()
|
|
|
|
|
|
+ public RefreshBossCardInfo()
|
|
|
|
+ {
|
|
|
|
+ this.init();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public RefreshBossCardInfo(uint objId) : base(objId)
|
|
{
|
|
{
|
|
- for (int i = 0; i < (int)CardType.Max; i++)
|
|
|
|
- {
|
|
|
|
- cardData[i] = (byte)CardType.Max;
|
|
|
|
- }
|
|
|
|
|
|
+ this.init();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private void init()
|
|
|
|
+ {
|
|
|
|
+ for (int i = 0; i < (int)CardType.Max; i++)
|
|
|
|
+ {
|
|
|
|
+ cardData[i] = (byte)CardType.Max;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
override public void WriteExternal(IOutputStream output)
|
|
override public void WriteExternal(IOutputStream output)
|
|
{
|
|
{
|
|
base.WriteExternal(output);
|
|
base.WriteExternal(output);
|
|
@@ -4416,7 +4426,9 @@ namespace CommonAI.Zone
|
|
public byte layer;
|
|
public byte layer;
|
|
public byte[] cardData = new byte[(int)CardType.Max]; //0-3代表有
|
|
public byte[] cardData = new byte[(int)CardType.Max]; //0-3代表有
|
|
|
|
|
|
- public BossTriggerCardSkill() { }
|
|
|
|
|
|
+ public BossTriggerCardSkill() { }
|
|
|
|
+
|
|
|
|
+ public BossTriggerCardSkill(uint objId) : base(objId){ }
|
|
override public void WriteExternal(IOutputStream output)
|
|
override public void WriteExternal(IOutputStream output)
|
|
{
|
|
{
|
|
base.WriteExternal(output);
|
|
base.WriteExternal(output);
|
|
@@ -4449,5 +4461,34 @@ namespace CommonAI.Zone
|
|
//System.Console.WriteLine("BossTriggerCardSkill: " + this.object_id + ", " + cardData[0] + ", " + cardData[1] + ", " + cardData[2] + ", " + cardData[3]);
|
|
//System.Console.WriteLine("BossTriggerCardSkill: " + this.object_id + ", " + cardData[0] + ", " + cardData[1] + ", " + cardData[2] + ", " + cardData[3]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 单位PK模式改变通知.
|
|
|
|
+ /// </summary>
|
|
|
|
+ [MessageType(0x8708)]
|
|
|
|
+ public class PlayerPKModeChangeEventB2C : ObjectEvent
|
|
|
|
+ {
|
|
|
|
+ public PKMode CurMode = PKMode.Peace;
|
|
|
|
+
|
|
|
|
+ public PlayerPKModeChangeEventB2C() { }
|
|
|
|
+
|
|
|
|
+ public PlayerPKModeChangeEventB2C(uint objId, PKMode mode) : base(objId)
|
|
|
|
+ {
|
|
|
|
+ this.CurMode = mode;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public override void WriteExternal(IOutputStream output)
|
|
|
|
+ {
|
|
|
|
+ base.WriteExternal(output);
|
|
|
|
+ output.PutEnum8(CurMode);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public override void ReadExternal(IInputStream input)
|
|
|
|
+ {
|
|
|
|
+ base.ReadExternal(input);
|
|
|
|
+ CurMode = input.GetEnum8<PKMode>();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|