예제 #1
0
 public static PortalInfo Load(WzCanvasProperty parentObject)
 {
    PortalInfo portal = new PortalInfo((PortalType)ptByShortName[parentObject.Name], parentObject.PngProperty.GetPNG(false), WzInfoTools.VectorToSystemPoint((WzVectorProperty)parentObject["origin"]), parentObject);
    Program.InfoManager.Portals[(int)ptByShortName[parentObject.Name]] = portal;
    return portal;
 }
예제 #2
0
 public PortalInstance(PortalInfo baseInfo, Board board, int x, int y, bool beforeAdding, string pn, PortalType 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, beforeAdding)
 {
     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;
 }