public override string LoadFile (string file, MoonSharp.Interpreter.Table globalContext) { file = Path.GetFileName(file.Replace('\\', '/')); System.Diagnostics.Debug.WriteLine ("Attempting to load " + file); using(Stream input = m_Assets.Open (file)) using(StreamReader reader = new StreamReader (input)) return reader.ReadToEnd(); }
protected override object GetValueImpl(MoonSharp.Interpreter.Script script, object obj) { return ((System.Array)(obj)).LongLength; }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((MoonSharp.Interpreter.Tests.EndToEnd.UserDataEnumsTests.EnumOverloadsTestClass)(obj)).GetF(); }
protected override object GetValueImpl(MoonSharp.Interpreter.Script script, object obj) { return System.EventArgs.Empty; }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return new System.EventArgs(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return MoonSharp.Interpreter.Tests.EndToEnd.UserDataEventsTests.SomeClass.Trigger_MySEvent(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass tmp = ((MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass)(obj)); tmp.AccessOverrProp = ((int)(pars[0])); return null; }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass.StaticProp = ((string)(pars[0])); return null; }
protected override object GetValueImpl(MoonSharp.Interpreter.Script script, object obj) { return ((MoonSharp.Interpreter.Tests.EndToEnd.StructAssignmentTechnique.Vector3)(obj)).Z; }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return new MoonSharp.Interpreter.Tests.EndToEnd.StructAssignmentTechnique.Vector3(); }
protected override object GetValueImpl(MoonSharp.Interpreter.Script script, object obj) { return ((MoonSharp.Interpreter.Tests.EndToEnd.StructAssignmentTechnique.Transform)(obj)).position; }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((MoonSharp.Interpreter.Tests.EndToEnd.ProxyObjectsTests.Proxy)(obj)).GetValue(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((MoonSharp.Interpreter.Tests.EndToEnd.MetatableTests.MyObject)(obj)).GetSomething(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return new MoonSharp.Interpreter.Tests.EndToEnd.MetatableTests.MyObject(); }
protected override object GetValueImpl(MoonSharp.Interpreter.Script script, object obj) { return ((System.Array)(obj)).IsSynchronized; }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return new MoonSharp.Interpreter.Tests.EndToEnd.UserDataNestedTypesTests.VSomeType(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { ((System.Collections.Generic.List<int>)(obj)).ForEach(((System.Action<int>)(pars[0]))); return MoonSharp.Interpreter.DynValue.Void; }
protected override void SetValueImpl(MoonSharp.Interpreter.Script script, object obj, object value) { MoonSharp.Interpreter.Tests.EndToEnd.StructAssignmentTechnique.Vector3 tmp = ((MoonSharp.Interpreter.Tests.EndToEnd.StructAssignmentTechnique.Vector3)(obj)); tmp.Z = ((float)(value)); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass)(obj)).GetWoIntProp2(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { throw new System.InvalidOperationException("Access to event special methods is not supported by hardwired decriptors."); }
protected override void SetValueImpl(MoonSharp.Interpreter.Script script, object obj, object value) { MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass tmp = ((MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass)(obj)); tmp.WoIntProp2 = ((int)(value)); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((System.Collections.Generic.List<int>)(obj)).GetRange(((int)(pars[0])), ((int)(pars[1]))); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((System.Collections.Generic.List<int>)(obj)).FindLastIndex(((System.Predicate<int>)(pars[0]))); }
protected override void SetValueImpl(MoonSharp.Interpreter.Script script, object obj, object value) { MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass.StaticProp = ((string)(value)); }
protected override object GetValueImpl(MoonSharp.Interpreter.Script script, object obj) { return ((MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass)(obj)).RoIntProp2; }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((object)(obj)).GetType(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((System.ValueType)(obj)).ToString(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((System.ValueType)(obj)).Equals(((object)(pars[0]))); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return ((System.Collections.Generic.List<int>)(obj)).GetEnumerator(); }
protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) { return MoonSharp.Interpreter.Tests.EndToEnd.VtUserDataPropertiesTests.SomeClass.Numbers; }