/// <description> /// (string name, int idNum, int scheme=0) /// </description> public void Add(string name = "", int idNum = -1, uint scheme = 0) { InternalUnsafeMethods.Add__Args _args = new InternalUnsafeMethods.Add__Args() { name = name, idNum = idNum, scheme = scheme, }; InternalUnsafeMethods.Add()(ObjectPtr, _args); }
/// <description> /// Ban a user for banLength seconds. /// </description> /// <param name="uniqueId">Unique ID of the player.</param> /// <param name="transportAddress">Address from which the player connected.</param> /// <param name="banLength">Time period over which to ban the player.</param> /// <code> /// // Kick someone off the server /// // %client - This is the connection to the person we are kicking /// function kick(%client) /// { /// // Let the server know what happened /// messageAll( 'MsgAdminForce', '\c2The Admin has kicked %1.', %client.playerName); /// /// // If it is not an AI Player, execute the ban. /// if (!%client.isAIControlled()) /// BanList::add(%client.guid, %client.getAddress(), $pref::Server::KickBanTime); /// /// // Let the player know they messed up /// %client.delete("You have been kicked from this server"); /// } /// </code> public static void Add(int uniqueId, string transportAddress, int banLength) { InternalUnsafeMethods.Add__Args _args = new InternalUnsafeMethods.Add__Args() { uniqueId = uniqueId, transportAddress = transportAddress, banLength = banLength, }; InternalUnsafeMethods.Add()(_args); }
/// public static void Add(string className, string imageFile, bool overwrite = true) { InternalUnsafeMethods.Add__Args _args = new InternalUnsafeMethods.Add__Args() { className = className, imageFile = imageFile, overwrite = overwrite, }; InternalUnsafeMethods.Add()(_args); }