예제 #1
0
    public static int SetFloat(ILuaState lua)
    {
        Constant idx = (Constant)L.ToInteger(1);
        float    val = (float)L.ToNumber(2);

        GlobalValue.Set(idx, val);

        return(0);
    }
예제 #2
0
    public static int SetInt(ILuaState lua)
    {
        Constant idx = (Constant)L.ToInteger(1);
        int      val = L.ToInteger(2);

        GlobalValue.Set(idx, val);

        return(0);
    }
예제 #3
0
    public static int SetString(ILuaState lua)
    {
        Constant idx = (Constant)L.ToInteger(1);
        string   val = L.ToString(2);

        GlobalValue.Set(idx, val);

        return(0);
    }