コード例 #1
0
    void Start()
    {
        GlobalVariable.Add(new Variable("CurrentRotaion", VariableType.v_int, 0, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("HasAnchor", VariableType.v_bool, 0, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("AnchorName", VariableType.v_bool, 0, new VariableParameters(true, VariableAccessType.v_readonly)));

        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("GripNearestAnchor", new List <VariableTemplate>()
        {
        }));

        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("UngripAnchor", new List <VariableTemplate>()
        {
        }));

        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("SetRotation", new List <VariableTemplate>()
        {
            new VariableTemplate("RoundedAngle_90", VariableType.v_int)
        }));
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        GlobalVariable.Add(new Variable("FillingValue", VariableType.v_float, 0.0f, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("FillingDecimal", VariableType.v_float, 0.0f, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("MaxPPSOutputing", VariableType.v_float, 2000.0f, new VariableParameters(true, VariableAccessType.v_readwrite)));
        GlobalVariable.Add(new Variable("MaxPPSInputing", VariableType.v_float, (float)MaxCap, new VariableParameters(true, VariableAccessType.v_readwrite)));
        GlobalVariable.Add(new Variable("IsFull", VariableType.v_bool, false, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("IsEmpty", VariableType.v_bool, true, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("MaxFillingCapacityDecimal", VariableType.v_float, 1.0f, new VariableParameters(true, VariableAccessType.v_readonly)));

        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("SetmaxPPSFlowValues", new List <VariableTemplate>()
        {
            new VariableTemplate("PPSMinOutputing", VariableType.v_float),
            new VariableTemplate("PPSMaxInputing", VariableType.v_float)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("SetMaxFillingCapacity", new List <VariableTemplate>()
        {
            new VariableTemplate("MaxFillingCapacityDecimal", VariableType.v_float)
        }));
    }
コード例 #3
0
    private void Start()
    {
        ComsumePPS     = !InfinitePPSFilling;
        PPSComsumption = 0.0f;

        GlobalVariable.Add(new Variable("CurrentRotaion", VariableType.v_float, 0f, new VariableParameters(true, VariableAccessType.v_readonly)));

        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("SetSpecificRotation", new List <VariableTemplate>()
        {
            new VariableTemplate("Decimal_Rotation", VariableType.v_float),
            new VariableTemplate("Decimal_Speed", VariableType.v_float)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("SetConstantSpeed", new List <VariableTemplate>()
        {
            new VariableTemplate("Decimal_Speed", VariableType.v_float)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("ExecuteRotation", new List <VariableTemplate>()
        {
            new VariableTemplate("Turns", VariableType.v_float),
            new VariableTemplate("Decimal_Speed", VariableType.v_float)
        }));
    }
コード例 #4
0
 private void Start()
 {
     GlobalVariable.Add(new Variable("IsButtonDown", VariableType.v_bool, false, new VariableParameters(true, VariableAccessType.v_readonly)));
     GlobalVariable.Add(new Variable("IsButtonUp", VariableType.v_bool, false, new VariableParameters(true, VariableAccessType.v_readonly)));
     GlobalVariable.Add(new Variable("IsButtonPress", VariableType.v_bool, false, new VariableParameters(true, VariableAccessType.v_readonly)));
 }
 private void Start()
 {
     GlobalVariable.Add(new Variable("AxisX", VariableType.v_float, 0f, new VariableParameters(true, VariableAccessType.v_readonly)));
     GlobalVariable.Add(new Variable("AxisY", VariableType.v_float, 0f, new VariableParameters(true, VariableAccessType.v_readonly)));
 }
コード例 #6
0
    private void Start()
    {
        ComsumePPS     = !InfinitePPSFilling;
        PPSComsumption = 5.0f;

        InitScreen();

        GlobalVariable.Add(new Variable("ScreenWidth", VariableType.v_int, 96, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("ScreenHeight", VariableType.v_int, 72, new VariableParameters(true, VariableAccessType.v_readonly)));

        GlobalVariable.Add(new Variable("TactileTouchX", VariableType.v_int, 0, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("TactileTouchY", VariableType.v_int, 0, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("TactileTouchDown", VariableType.v_bool, false, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("TactileTouchPress", VariableType.v_bool, false, new VariableParameters(true, VariableAccessType.v_readonly)));
        GlobalVariable.Add(new Variable("TactileTouchUp", VariableType.v_bool, false, new VariableParameters(true, VariableAccessType.v_readonly)));

        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("Fill", new List <VariableTemplate>()
        {
            new VariableTemplate("ColorR", VariableType.v_float),
            new VariableTemplate("ColorG", VariableType.v_float),
            new VariableTemplate("ColorB", VariableType.v_float)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("SetColor", new List <VariableTemplate>()
        {
            new VariableTemplate("ColorR", VariableType.v_float),
            new VariableTemplate("ColorG", VariableType.v_float),
            new VariableTemplate("ColorB", VariableType.v_float)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("SetTextCursor", new List <VariableTemplate>()
        {
            new VariableTemplate("CursorX", VariableType.v_int),
            new VariableTemplate("CursorY", VariableType.v_int)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("DrawText", new List <VariableTemplate>()
        {
            new VariableTemplate("Text", VariableType.v_string)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("DrawPixel", new List <VariableTemplate>()
        {
            new VariableTemplate("X", VariableType.v_int),
            new VariableTemplate("Y", VariableType.v_int)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("DrawFilledRect", new List <VariableTemplate>()
        {
            new VariableTemplate("X", VariableType.v_int),
            new VariableTemplate("Y", VariableType.v_int),
            new VariableTemplate("X2", VariableType.v_int),
            new VariableTemplate("Y2", VariableType.v_int)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("DrawRect", new List <VariableTemplate>()
        {
            new VariableTemplate("X", VariableType.v_int),
            new VariableTemplate("Y", VariableType.v_int),
            new VariableTemplate("X2", VariableType.v_int),
            new VariableTemplate("Y2", VariableType.v_int)
        }));
        GlobalFunctionsDictionnairy.Add(new FunctionTemplate("DrawLine", new List <VariableTemplate>()
        {
            new VariableTemplate("X", VariableType.v_int),
            new VariableTemplate("Y", VariableType.v_int),
            new VariableTemplate("X2", VariableType.v_int),
            new VariableTemplate("Y2", VariableType.v_int)
        }));
    }