This repository has been archived by the owner on Apr 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
API Class: Tools
D1G1T4L3CH0 edited this page Aug 12, 2015
·
12 revisions
The API class Tools
contains generic functions you will use inside your plugin. For example it contains the common ProgramLog.Log() method and even functions for finding players.
Namespace location: TDSM.API
- [ActiveNPCCount|API Class: Tools.ActiveNPCCount()]
- FindPlayerByPart(string partName, bool ignoreCase = true)
- GetPlayerByName(string name)
- IsNPCSummoned(int type)
- IsNPCSummoned(string name)
- IsValidLocation(Vector2 point, bool defaultResist = true)
- NotifyAllOps(string message, bool writeToConsole = true)
- NotifyAllPlayers(string message, Color color, bool writeToConsole = true)
- SetWriteLineMethod(Action<String, Object[]> method)
- TryFindNPCByName(string name, out int id)
- TryGetFirstOnlinePlayer(out Player player)