Пример #1
0
 public ShipObject(Board board, SerializationForm json)
     : base(board, json)
 {
     flip = json.flip;
     x0 = json.x0;
     zVal = json.zval;
     tMove = json.tmove;
     shipKind = json.shipkind;
     baseInfo = ObjectInfo.Get(json.os, json.l0, json.l1, json.l2);
 }
Пример #2
0
 public Healer(Board board, SerializationForm json)
     : base(board, json)
 {
     yMin = json.ymin;
     yMax = json.ymax;
     healMin = json.healmin;
     healMax = json.healmax;
     fall = json.fall;
     rise = json.rise;
     baseInfo = ObjectInfo.Get(json.os, json.l0, json.l1, json.l2);
 }
Пример #3
0
 public Healer(ObjectInfo baseInfo, Board board, int x, int yMin, int yMax, int healMin, int healMax, int fall, int rise)
     : base(board, x, (yMax + yMin) / 2, -1)
 {
     this.baseInfo = baseInfo;
     this.yMin = yMin;
     this.yMax = yMax;
     this.healMin = healMin;
     this.healMax = healMax;
     this.fall = fall;
     this.rise = rise;
 }
Пример #4
0
 public ShipObject(ObjectInfo baseInfo, Board board, int x, int y, int? zVal, int? x0, int tMove, int shipKind, bool flip)
     : base(board, x, y, -1)
 {
     this.baseInfo = baseInfo;
     this.flip = flip;
     this.x0 = x0;
     this.zVal = zVal;
     this.tMove = tMove;
     this.shipKind = shipKind;
     if (flip)
         X -= Width - 2 * Origin.X;
 }
Пример #5
0
 public ObjectInstance(Board board, SerializationForm json)
     : base(board, json)
 {
     baseInfo = ObjectInfo.Get(json.os, json.l0, json.l1, json.l2);
     flip = json.flip;
     _r = json.r;
     name = json.name;
     _hide = json.hide;
     _reactor = json.reactor;
     _flow = json.flow;
     _rx = json.rx;
     _ry = json.ry;
     _cx = json.cx;
     _cy = json.cy;
     tags = json.tags;
     if (json.quest != null)
         questInfo = json.quest.ToList();
 }
Пример #6
0
 public ObjectInstance(ObjectInfo baseInfo, Layer layer, Board board, int x, int y, int z, int zM, MapleBool r, MapleBool hide, MapleBool reactor, MapleBool flow, int? rx, int? ry, int? cx, int? cy, string name, string tags, List<ObjectInstanceQuest> questInfo, bool flip)
     : base(board, layer, zM, x, y, z)
 {
     this.baseInfo = baseInfo;
     this.flip = flip;
     this._r = r;
     this.name = name;
     this._hide = hide;
     this._reactor = reactor;
     this._flow = flow;
     this._rx = rx;
     this._ry = ry;
     this._cx = cx;
     this._cy = cy;
     this._tags = tags;
     this.questInfo = questInfo;
     if (flip)
         X -= Width - 2 * Origin.X;
 }
Пример #7
0
 private static ObjectInfo Load(WzSubProperty parentObject, string oS, string l0, string l1, string l2)
 {
     WzCanvasProperty frame1 = (WzCanvasProperty)WzInfoTools.GetRealProperty(parentObject["0"]);
     ObjectInfo result = new ObjectInfo(frame1.PngProperty.GetPNG(false), WzInfoTools.VectorToSystemPoint((WzVectorProperty)frame1["origin"]), oS, l0, l1, l2, parentObject);
     WzImageProperty chairs = parentObject["seat"];
     WzImageProperty ropes = frame1["rope"];
     WzImageProperty ladders = frame1["ladder"];
     WzImageProperty footholds = frame1["foothold"];
     result.footholdOffsets = ParsePropToOffsetMap(footholds);
     result.ropeOffsets = ParsePropToOffsetMap(ropes);
     result.ladderOffsets = ParsePropToOffsetMap(ladders);
     if (chairs != null)
         result.chairOffsets = ParsePropToOffsetList(chairs);
     return result;
 }
Пример #8
0
 public Pulley(Board board, SerializationForm json)
     : base(board, json)
 {
     baseInfo = ObjectInfo.Get(json.os, json.l0, json.l1, json.l2);
 }
Пример #9
0
 public Pulley(ObjectInfo baseInfo, Board board, int x, int y)
     : base(board, x, y, -1)
 {
     this.baseInfo = baseInfo;
 }