Setup for JetBrains IDEs
This guide shows how to setup a JetBrains IDE to work with redscript files to enable features like syntax highlighting, auto-completion, etc.
Last updated
Was this helpful?
Was this helpful?
// Simple test
module Awesome
public class SimpleTest extends ScriptableSystem {
/* Ain't this great?! */
public func Chat(msg: String) {
FTLog(s"Says \(msg)");
let test = GoToDeclaration.CtrlClick();
if test == true {
FTLog("Yes");
} else {
FTLog("No");
}
let gi = GetGameInstance();
let cameraSystem: wref<CameraSystem> = gi.GetCameraSystem();
let ratio: Float = cameraSystem.GetAspectRatio();
FTLog(s"camera ratio: \(ratio)");
}
}
public class GoToDeclaration {
public static func CtrlClick() -> Bool {
FTLog("CTRL + CLICK should redirect you.");
FTLog("You can test it by writing this class in another file.");
return true;
}
}