|
@@ -44,7 +44,22 @@ namespace CommonAI.Zone.ZoneEditor
|
|
|
public string[] Attributes;
|
|
|
|
|
|
[DescAttribute("逻辑开关", "扩展")]
|
|
|
- public bool Enable = true;
|
|
|
+ public bool Enable = true;
|
|
|
+
|
|
|
+ [DescAttribute("地图显示", "地图显示")]
|
|
|
+ public bool MapShow = false;
|
|
|
+ [DescAttribute("地图名称", "地图显示")]
|
|
|
+ public string UnitName = "";
|
|
|
+ [DescAttribute("地图icon", "地图显示")]
|
|
|
+ public string UnitIcon = "";
|
|
|
+ [DescAttribute("坐标OffsetX", "地图显示")]
|
|
|
+ public float OffsetX = 0;
|
|
|
+ [DescAttribute("坐标OffsetX", "地图显示")]
|
|
|
+ public float OffsetY = 0;
|
|
|
+ [DescAttribute("坐标LableOffsetX", "地图显示")]
|
|
|
+ public float LableOffsetX = 0;
|
|
|
+ [DescAttribute("坐标LableOffsetY", "地图显示")]
|
|
|
+ public float LableOffsetY = 15;
|
|
|
|
|
|
[DescAttribute("事件", "事件")]
|
|
|
[SceneScriptIDAttribute]
|
|
@@ -84,7 +99,14 @@ namespace CommonAI.Zone.ZoneEditor
|
|
|
output.PutUTF(this.SavePath);
|
|
|
output.PutS32(this.Color);
|
|
|
output.PutArray(this.Attributes, output.PutUTF);
|
|
|
- output.PutBool(this.Enable);
|
|
|
+ output.PutBool(this.Enable);
|
|
|
+ output.PutBool(this.MapShow);
|
|
|
+ output.PutUTF(this.UnitName);
|
|
|
+ output.PutUTF(this.UnitIcon);
|
|
|
+ output.PutF32(this.OffsetX);
|
|
|
+ output.PutF32(this.OffsetY);
|
|
|
+ output.PutF32(this.LableOffsetX);
|
|
|
+ output.PutF32(this.LableOffsetY);
|
|
|
output.PutUTF(this.Script);
|
|
|
output.PutUTF(this.Tag);
|
|
|
}
|
|
@@ -98,7 +120,14 @@ namespace CommonAI.Zone.ZoneEditor
|
|
|
this.SavePath = input.GetUTF();
|
|
|
this.Color = input.GetS32();
|
|
|
this.Attributes = input.GetUTFArray();
|
|
|
- this.Enable = input.GetBool();
|
|
|
+ this.Enable = input.GetBool();
|
|
|
+ this.MapShow = input.GetBool();
|
|
|
+ this.UnitName = input.GetUTF();
|
|
|
+ this.UnitIcon = input.GetUTF();
|
|
|
+ this.OffsetX = input.GetF32();
|
|
|
+ this.OffsetY = input.GetF32();
|
|
|
+ this.LableOffsetX = input.GetF32();
|
|
|
+ this.LableOffsetY = input.GetF32();
|
|
|
this.Script = input.GetUTF();
|
|
|
this.Tag = input.GetUTF();
|
|
|
}
|