Scripting API

Home Scripting API Index Class Overview

com.nolimitscoaster

Class ResourcePath


public final class ResourcePath
extends Object

Represents a path to a resource. Instances of this class are immutable.

Resources can be specified in the script setup and can be obtained at runtime from: Script.getResourceForId, SceneObject.getResourcePathParameter. Multiple instances of ResourcePath might link to the same resource. Make sure to use the 'equals' method when you need to compare ResourcePath references.

Method Summary

bool equals(Object obj)
  Returns true if obj is a ResourcePath and links to the same resource as this
String toString()
  Returns the internal file path. Can be used for debugging purposes.


Method Detail


equals

public bool equals(Object obj)

Returns true if obj is a ResourcePath and links to the same resource as this


toString

public String toString()

Returns the internal file path. Can be used for debugging purposes.