示例#1
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (m_Build)
                {
                    // Build structure
                    IPoint3D p = targeted as IPoint3D;

                    if (p != null)
                    {
                        m_Workshop.BuildCallback(new Point3D(p));
                    }
                }
                else
                {
                    // Add static
                    StaticTarget st = targeted as StaticTarget;

                    if (st != null)
                    {
                        m_Workshop.AddSingleCallback(st);
                    }
                }
            }