Zum Inhalt springen
AppgineeringAppgineering
Shop
AngeheftetGeschlossenSchreibgeschützt1 Beiträge · 2,161 Aufrufe · Erstellt 23 Jan 2018, 09:40

Posting and formatting scripts

Archiviert: Diskussion auf Discord verlagertDiscord
Nick ThissenAppgineeringUrsprünglicher Verfasser
· bearbeitet
#1

To post a script, please use the "code" or "script" bbcode tags.

For the languages that ATVO supports, the script language is usually automatically detected. Sytnax highlighting (colors) are applied automatically based on the detected script language.

Example: C# script

public class Script : IScript
{
    public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
    {
		var entity = (IEntity) item;
		if (entity.CurrentDriver.Id = 12345)
		    return entity.CurrentDriver.Name;
		return "";
    }
}

Dieser Thread ist archiviert.

Neue Antworten finden auf Discord statt.

Auf Discord weiterlesen