ATVO by Appgineering
Download
Pinned Read-only

Posting and formatting scripts

1 posts 2,161 views Started 23 Jan 2018, 09:40
Showing 1–1 of 1 posts
Nick Thissen Appgineering
Original poster
· edited

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 "";
    }
}
Archive · Read-only

New replies have moved to Discord.