Example #1
0
        /// <description>
        /// Dumps this PostEffect shader's disassembly to a temporary text file.
        /// </description>
        /// <returns>Full path to the dumped file or an empty string if failed.</returns>
        public string DumpShaderDisassembly()
        {
            InternalUnsafeMethods.DumpShaderDisassembly__Args _args = new InternalUnsafeMethods.DumpShaderDisassembly__Args()
            {
            };
            IntPtr _engineResult = InternalUnsafeMethods.DumpShaderDisassembly()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #2
0
        ///
        public string GetMode()
        {
            InternalUnsafeMethods.GetMode__Args _args = new InternalUnsafeMethods.GetMode__Args()
            {
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetMode()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #3
0
        /// <description>
        /// Returns the driver version string.
        /// </description>
        public static string GetVersion()
        {
            InternalUnsafeMethods.GetVersion__Args _args = new InternalUnsafeMethods.GetVersion__Args()
            {
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetVersion()(_args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #4
0
        /// <description>
        /// (string filename)
        /// </description>
        /// <summary>Grabs a string from the specified table</summary>
        /// <description>
        /// If an invalid is passed, the function will attempt to to grab from the default table
        /// </description>
        /// <param name="filename">Name of the language table to access</param>
        /// <returns>Text from the specified language table, "" if ID was invalid and default table is not set</returns>
        public string GetString(uint id)
        {
            InternalUnsafeMethods.GetString__Args _args = new InternalUnsafeMethods.GetString__Args()
            {
                id = id,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetString()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #5
0
        /// <description>
        /// Gets the text for the currently selected option of the given row.
        /// </description>
        /// <param name="row">Index of the row to get the option from.</param>
        /// <returns>A string representing the text currently displayed as the selected option on the given row. If there is no such displayed text then the empty string is returned.</returns>
        public string GetCurrentOption(int row)
        {
            InternalUnsafeMethods.GetCurrentOption__Args _args = new InternalUnsafeMethods.GetCurrentOption__Args()
            {
                row = row,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetCurrentOption()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #6
0
        /// <description>
        /// ( string name="" ) - Push a CompoundUndoAction onto the compound stack for assembly.
        /// </description>
        public string PushCompound(string name = "")
        {
            InternalUnsafeMethods.PushCompound__Args _args = new InternalUnsafeMethods.PushCompound__Args()
            {
                name = name,
            };
            IntPtr _engineResult = InternalUnsafeMethods.PushCompound()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #7
0
        /// <summary>Read in a string up to the given maximum number of characters.</summary>
        /// <description>
        ///
        /// </description>
        /// <param name="maxLength">The maximum number of characters to read in.</param>
        /// <returns>The string that was read from the stream.</returns>
        /// <see cref="writeLongString()" />
        /// <remarks> When working with these particular string reading and writing methods, the stream begins with the length of the string followed by the string itself, and does not include a NULL terminator.</remarks>
        public string ReadLongString(int maxLength)
        {
            InternalUnsafeMethods.ReadLongString__Args _args = new InternalUnsafeMethods.ReadLongString__Args()
            {
                maxLength = maxLength,
            };
            IntPtr _engineResult = InternalUnsafeMethods.ReadLongString()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
        /// <description>
        /// Gets the asset tag at the specified index.
        /// </description>
        /// <param name="tagIndex">The asset tag index.This must be 0 to the asset tag count less one.</param>
        /// <returns>The asset tag at the specified index or NULL if invalid.</returns>
        public string GetTag(int tagIndex)
        {
            InternalUnsafeMethods.GetTag__Args _args = new InternalUnsafeMethods.GetTag__Args()
            {
                tagIndex = tagIndex,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetTag()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
        /// <summary>Returns the file path to the icon file if found.</summary>
        public static string FindIconByClassName(string className)
        {
            InternalUnsafeMethods.FindIconByClassName__Args _args = new InternalUnsafeMethods.FindIconByClassName__Args()
            {
                className = className,
            };
            IntPtr _engineResult = InternalUnsafeMethods.FindIconByClassName()(_args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #10
0
        /// <summary>Gets the ActionMap binding for the specified command.</summary>
        /// <description>
        /// Use getField() on the return value to get the device and action of the binding.
        /// </description>
        /// <param name="command">The function to search bindings for.</param>
        /// <returns>The binding against the specified command. Returns an empty string("") if a binding wasn't found.</returns>
        /// <code>
        /// // Find what the function "jump()" is bound to in moveMap
        /// %bind = moveMap.getBinding( "jump" );
        ///
        /// if ( %bind !$= "" )
        /// {
        /// // Find out what device is used in the binding
        ///   %device = getField( %bind, 0 );
        ///
        /// // Find out what action (such as a key) is used in the binding
        ///   %action = getField( %bind, 1 );
        /// }
        /// </code>
        /// <see cref="getField" />
        public string GetBinding(string command)
        {
            InternalUnsafeMethods.GetBinding__Args _args = new InternalUnsafeMethods.GetBinding__Args()
            {
                command = command,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetBinding()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #11
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void marshal(ClientConnectorAddresses connectorUris, org.neo4j.storageengine.api.WritableChannel channel) throws java.io.IOException
//JAVA TO C# CONVERTER NOTE: Members cannot have the same name as their enclosing type:
            public override void MarshalConflict(ClientConnectorAddresses connectorUris, WritableChannel channel)
            {
                channel.PutInt(connectorUris.connectorUris.size());
                foreach (ConnectorUri uri in connectorUris)
                {
                    StringMarshal.marshal(channel, uri.Scheme.name());
                    StringMarshal.marshal(channel, uri.SocketAddress.Hostname);
                    channel.PutInt(uri.SocketAddress.Port);
                }
            }
Example #12
0
        /// <description>
        /// (Node n)
        /// </description>
        public string GetValue(int nodeValue)
        {
            InternalUnsafeMethods.GetValue__Args _args = new InternalUnsafeMethods.GetValue__Args()
            {
                nodeValue = nodeValue,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetValue()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #13
0
        /// <description>
        /// Get the root Scene object that is loaded.
        /// </description>
        /// <returns>The id of the Root Scene. Will be 0 if no root scene is loaded</returns>
        public string GetObjectsByClass(string className = "")
        {
            InternalUnsafeMethods.GetObjectsByClass__Args _args = new InternalUnsafeMethods.GetObjectsByClass__Args()
            {
                className = className,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetObjectsByClass()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #14
0
        /// <description>
        /// Gets the asset Id at the specified query result index.
        /// </description>
        /// <param name="resultIndex">The query result index to use.</param>
        /// <returns>(assetId)The asset Id at the specified index or NULL if not valid.</returns>
        public string GetAsset(int resultIndex = -1)
        {
            InternalUnsafeMethods.GetAsset__Args _args = new InternalUnsafeMethods.GetAsset__Args()
            {
                resultIndex = resultIndex,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetAsset()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #15
0
        /// <summary>Force-sets the animation in a particular thread without starting it playing.</summary>
        /// <param name="slot">thread slot to play. Valid range is 0 - 3)</param>
        /// <param name="name">name of the animation sequence to play in this slot. If not specified, the paused or stopped thread in this slot will be resumed.</param>
        /// <returns>true if successful, false if failed</returns>
        public string GetThreadAnimation(int slot)
        {
            InternalUnsafeMethods.GetThreadAnimation__Args _args = new InternalUnsafeMethods.GetThreadAnimation__Args()
            {
                slot = slot,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetThreadAnimation()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #16
0
        /// <description>
        /// Creates a new script asset using the targetFilePath.
        /// </description>
        /// <returns>The bool result of calling exec</returns>
        public string GetActivityLogLine(int i = 0)
        {
            InternalUnsafeMethods.GetActivityLogLine__Args _args = new InternalUnsafeMethods.GetActivityLogLine__Args()
            {
                i = i,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetActivityLogLine()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
        /// <description>
        /// Returns the file path to the icon file if found.
        /// </description>
        public static string FindIconBySimObject(SimObject obj)
        {
            InternalUnsafeMethods.FindIconBySimObject__Args _args = new InternalUnsafeMethods.FindIconBySimObject__Args()
            {
                obj = obj.ObjectPtr,
            };
            IntPtr _engineResult = InternalUnsafeMethods.FindIconBySimObject()(_args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #18
0
        /// <description>
        /// Find all the modules registered with the specified loaded state.
        /// </description>
        /// <param name="loadedOnly">Whether to return only modules that are loaded or not.</param>
        /// <returns>A list of space - separated module definition object Ids.</returns>
        public string FindModules(bool loadedOnly = false)
        {
            InternalUnsafeMethods.FindModules__Args _args = new InternalUnsafeMethods.FindModules__Args()
            {
                loadedOnly = loadedOnly,
            };
            IntPtr _engineResult = InternalUnsafeMethods.FindModules()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #19
0
        /// <summary>Get the named damage location and modifier for a given world position.</summary>
        /// <description>
        /// the Player object can simulate different hit locations based on a pre-defined set of PlayerData defined percentages.  These hit percentages divide up the Player's bounding box into different regions.  The diagram below demonstrates how the various PlayerData properties split up the bounding volume:
        ///
        /// <img src="images/player_damageloc.png">
        ///
        /// While you may pass in any world position and getDamageLocation() will provide a best-fit location, you should be aware that this can produce some interesting results.  For example, any position that is above PlayerData::boxHeadPercentage will be considered a 'head' hit, even if the world position is high in the sky.  Therefore it may be wise to keep the passed in point to somewhere on the surface of, or within, the Player's bounding volume.
        /// </description>
        /// <remarks> This method will not return an accurate location when the player is prone or swimming.
        ///
        /// </remarks>
        /// <param name="pos">A world position for which to retrieve a body region on this player.</param>
        /// <returns>a string containing two words (space separated strings), where the first is a location and the second is a modifier.
        ///
        /// Posible locations:<ul><li>head</li><li>torso</li><li>legs</li></ul>
        /// Head modifiers:<ul><li>left_back</li><li>middle_back</li><li>right_back</li><li>left_middle</li><li>middle_middle</li><li>right_middle</li><li>left_front</li><li>middle_front</li><li>right_front</li></ul>
        /// Legs/Torso modifiers:<ul><li>front_left</li><li>front_right</li><li>back_left</li><li>back_right</li></ul></returns>
        /// <see cref="PlayerData::boxHeadPercentage" />
        /// <see cref="PlayerData::boxHeadFrontPercentage" />
        /// <see cref="PlayerData::boxHeadBackPercentage" />
        /// <see cref="PlayerData::boxHeadLeftPercentage" />
        /// <see cref="PlayerData::boxHeadRightPercentage" />
        /// <see cref="PlayerData::boxTorsoPercentage" />
        public string GetDamageLocation(Point3F pos)
        {
            pos.Alloc();             InternalUnsafeMethods.GetDamageLocation__Args _args = new InternalUnsafeMethods.GetDamageLocation__Args()
            {
                pos = pos.internalStructPtr,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetDamageLocation()(ObjectPtr, _args);

            pos.Free();             return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #20
0
        /// <description>
        /// Returns the name of the graphics adapter's output display device.
        /// </description>
        /// <param name="index">The index of the adapter.</param>
        public static string GetAdapterOutputName(int index)
        {
            InternalUnsafeMethods.GetAdapterOutputName__Args _args = new InternalUnsafeMethods.GetAdapterOutputName__Args()
            {
                index = index,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetAdapterOutputName()(_args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
        /// <description>
        /// (simObject) Query available static-field groups for selected object./
        /// </description>
        /// <param name="simObject">Object to query static-field groups on.</param>
        /// <returns>Space-seperated static-field group list.</returns>
        public string QueryGroups(string simObjName)
        {
            InternalUnsafeMethods.QueryGroups__Args _args = new InternalUnsafeMethods.QueryGroups__Args()
            {
                simObjName = simObjName,
            };
            IntPtr _engineResult = InternalUnsafeMethods.QueryGroups()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #22
0
        /// <summary>Gets the UserData associated with a field by index in the field list</summary>
        /// <description>
        ///
        /// </description>
        /// <param name="index">The index of the behavior</param>
        /// <returns>Returns a string representing the user data of this field</returns>
        public string GetBehaviorFieldUserData(int index)
        {
            InternalUnsafeMethods.GetBehaviorFieldUserData__Args _args = new InternalUnsafeMethods.GetBehaviorFieldUserData__Args()
            {
                index = index,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetBehaviorFieldUserData()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #23
0
        /// <summary>Read in a string and place it on the string table.</summary>
        /// <description>
        ///
        /// </description>
        /// <param name="caseSensitive">If false then case will not be taken into account when attempting to match the read in string with what is already in the string table.</param>
        /// <returns>The string that was read from the stream.</returns>
        /// <see cref="writeString()" />
        /// <remarks> When working with these particular string reading and writing methods, the stream begins with the length of the string followed by the string itself, and does not include a NULL terminator.</remarks>
        public string ReadSTString(bool caseSensitive = false)
        {
            InternalUnsafeMethods.ReadSTString__Args _args = new InternalUnsafeMethods.ReadSTString__Args()
            {
                caseSensitive = caseSensitive,
            };
            IntPtr _engineResult = InternalUnsafeMethods.ReadSTString()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #24
0
        /// <description>
        /// Get the number of static fields on the object.
        /// </description>
        /// <returns>The number of static fields defined on the object.</returns>
        public string GetComponentFieldType(string fieldName)
        {
            InternalUnsafeMethods.GetComponentFieldType__Args _args = new InternalUnsafeMethods.GetComponentFieldType__Args()
            {
                fieldName = fieldName,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetComponentFieldType()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #25
0
        /// <description>
        /// (index)
        /// </description>
        public string GetUndoName(int index)
        {
            InternalUnsafeMethods.GetUndoName__Args _args = new InternalUnsafeMethods.GetUndoName__Args()
            {
                index = index,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetUndoName()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #26
0
        /// <summary>Gets a Tab-Delimited list of information about a ComponentField specified by Index</summary>
        /// <description>
        ///
        /// </description>
        /// <param name="index">The index of the behavior</param>
        /// <returns>FieldName, FieldType and FieldDefaultValue, each separated by a TAB character.</returns>
        public string SetComponentield(int index)
        {
            InternalUnsafeMethods.SetComponentield__Args _args = new InternalUnsafeMethods.SetComponentield__Args()
            {
                index = index,
            };
            IntPtr _engineResult = InternalUnsafeMethods.SetComponentield()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #27
0
        /// <description>
        /// (int language)
        /// </description>
        /// <summary>Return the readable name of the language table</summary>
        /// <description>
        ///
        /// </description>
        /// <param name="language">Numerical ID of the language table to access</param>
        /// <returns>String containing the name of the table, NULL if ID was invalid or name was never specified</returns>
        public string GetLangName(int langId)
        {
            InternalUnsafeMethods.GetLangName__Args _args = new InternalUnsafeMethods.GetLangName__Args()
            {
                langId = langId,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetLangName()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #28
0
        /// <description>
        /// Gets the module dependency at the specified index.
        /// </description>
        /// <param name="dependencyIndex">The module dependency index.</param>
        /// <returns>(module - dependency) The module dependency at the specified index.</returns>
        public string GetDependency(uint dependencyIndex = 0)
        {
            InternalUnsafeMethods.GetDependency__Args _args = new InternalUnsafeMethods.GetDependency__Args()
            {
                dependencyIndex = dependencyIndex,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetDependency()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #29
0
        /// <description>
        /// (pos)
        /// </description>
        public string GetItemText(int pos)
        {
            InternalUnsafeMethods.GetItemText__Args _args = new InternalUnsafeMethods.GetItemText__Args()
            {
                pos = pos,
            };
            IntPtr _engineResult = InternalUnsafeMethods.GetItemText()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }
Example #30
0
        /// <description>
        /// Creates a new script asset using the targetFilePath.
        /// </description>
        /// <returns>The bool result of calling exec</returns>
        public string AutoImportFile(string path = "")
        {
            InternalUnsafeMethods.AutoImportFile__Args _args = new InternalUnsafeMethods.AutoImportFile__Args()
            {
                path = path,
            };
            IntPtr _engineResult = InternalUnsafeMethods.AutoImportFile()(ObjectPtr, _args);

            return(StringMarshal.IntPtrToUtf8String(_engineResult));
        }