123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- namespace ET.Server
- {
-
-
-
- public class Struct
- {
-
-
-
- public class AreaData
- {
- public MapConfig prop { get; set; }
- public int areaId { get; set; }
- public long instanceId { get; set; }
- public float targetX { get; set; }
- public float targetY { get; set; }
- public int logicServerId { get; set; }
- public ENTER_TYPE enterType = ENTER_TYPE.NONE;
- public AreaData(int areaId) {
- this.prop = MapConfigCategory.Instance.Get(areaId);
- this.areaId = areaId;
- }
- public AreaData(MapConfig prop) {
- this.areaId = prop.Id;
- this.prop = prop;
- }
- public AreaData(int areaId, long instanceId) {
- this.prop = MapConfigCategory.Instance.Get(areaId);
- this.areaId = areaId;
- this.instanceId = instanceId;
- }
- public AreaData(int areaId, float targetX, float targetY) {
- this.prop = MapConfigCategory.Instance.Get(areaId);
- this.areaId = areaId;
- this.targetX = targetX;
- this.targetY = targetY;
- }
- public AreaData(int areaId, float targetX, float targetY, ENTER_TYPE enterType) {
- this.prop = MapConfigCategory.Instance.Get(areaId);
- this.areaId = areaId;
- this.targetX = targetX;
- this.targetY = targetY;
- this.enterType = enterType;
- }
- public AreaData(int areaId, long instanceId, ENTER_TYPE enterType) {
- this.prop = MapConfigCategory.Instance.Get(areaId);
- this.areaId = areaId;
- this.instanceId = instanceId;
- this.enterType = enterType;
- }
- }
-
-
-
- public class MonsterUnit
- {
-
- public string name{ get; set; }
-
- public int id{ get; set; }
-
- public int force{ get; set; }
-
- public string flag{ get; set; }
- public bool autoGuard{ get; set; }
-
- public bool unique = false;
-
- public int x{ get; set; }
-
- public int y{ get; set; }
-
- public int shareType{ get; set; }
-
- public int level{ get; set; }
-
- public float birthDirection{ get; set; }
-
- public int gsFlag{ get; set; }
-
- public int hp{ get; set; }
- public int maxHP{ get; set; }
-
- public string attackPlayer{ get; set; }
-
- public int masterID{ get; set; }
- public MonsterUnit() {
- }
- public MonsterUnit(int monsterID, int force, bool unique, int x, int y) {
- this.id = monsterID;
- this.force = force;
- this.unique = unique;
- this.x = x;
- this.y = y;
- }
- public MonsterUnit(int monsterID, string refrushEvent, bool unique, int force) {
- this.id = monsterID;
- this.force = force;
- this.unique = unique;
- this.flag = refrushEvent;
- }
- public MonsterUnit(int monsterID, string refrushEvent, bool unique, int force, float birthDirection) {
- this.id = monsterID;
- this.force = force;
- this.unique = unique;
- this.flag = refrushEvent;
- this.birthDirection = birthDirection;
- }
- }
- }
- }
|