Example #1
0
 public PortalInstance(PortalInfo baseInfo, Board board, int x, int y, string pn, string pt, string tn, int tm, string script, int? delay, MapleBool hideTooltip, MapleBool onlyOnce, int? horizontalImpact, int? verticalImpact, string image, int? hRange, int? vRange)
     : base(board, x, y, -1)
 {
     this.baseInfo = baseInfo;
     _pn = pn;
     _pt = pt;
     _tn = tn;
     _tm = tm;
     _script = script;
     _delay = delay;
     _hideTooltip = hideTooltip;
     _onlyOnce = onlyOnce;
     _horizontalImpact = horizontalImpact;
     _verticalImpact = verticalImpact;
     _image = image;
     _hRange = hRange;
     _vRange = vRange;
 }
Example #2
0
 public PortalInstance(Board board, SerializationForm json)
     : base(board, json)
 {
     _pn = json.pn;
     _pt = json.pt;
     _tn = json.tn;
     _tm = json.tm;
     _script = json.script;
     _delay = json.delay;
     _hideTooltip = json.hidett;
     _onlyOnce = json.onlyonce;
     _horizontalImpact = json.himpact;
     _verticalImpact = json.vimpact;
     _image = json.image;
     _hRange = json.hrange;
     _vRange = json.vrange;
     baseInfo = PortalInfo.GetPortalInfoByType(pt);
 }
Example #3
0
 public static PortalInfo Load(WzCanvasProperty parentObject)
 {
     PortalInfo portal = new PortalInfo(parentObject.Name, parentObject.PngProperty.GetPNG(false), WzInfoTools.VectorToSystemPoint((WzVectorProperty)parentObject["origin"]), parentObject);
     Program.InfoManager.Portals.Add(portal.type, portal);
     return portal;
 }