Beispiel #1
0
        public static Vector3d GetDestination(MSceneObject mo)
        {
            Vector3d dest = Vector3d.Zero;

            string[] tags  = DecodeTag((string)mo.Tag);
            string   sDest = tags[1];

            MassiveTools.VectorFromString(sDest);
            return(dest);
        }
        private void UpdatePropertiesButton_Click(object sender, EventArgs e)
        {
            if (Success == true)
            {
                Globals.Network.PropertyChangeHandler -= Network_PropertyChangeHandler;
                Close();
            }
            if (string.IsNullOrEmpty(DestinationBox.Text))
            {
                return;
            }
            Destination = MassiveTools.VectorFromString(DestinationBox.Text);
            string DestString = Destination.ToString();

            DestString  = DestString.Replace("(", "");
            DestString  = DestString.Replace(")", "");
            DestString  = DestString.Replace(" ", "");
            Description = DescriptionBox.Text;

            Globals.Network.ChangePropertyRequest(InstanceID, MBuildParts.TELEPORT01 + "|" + DestString + "|" + Description);
        }