Beispiel #1
0
        /* ---------------------------------------------------------------- */
        // TriggerParam
        /* ---------------------------------------------------------------- */
        public static TriggerParam CreateSignal(TriggerTarget target, Item specifiedTargetItem, string key)
        {
            var value = new TriggerValue();
            var param = new TriggerParam(target, null, key, ParameterType.Signal, value);

            return(param);
        }
Beispiel #2
0
 public TriggerParam(TriggerTarget target, Item specifiedTargetItem, string key, ParameterType type, TriggerValue value)
 {
     Target = target;
     SpecifiedTargetItem = specifiedTargetItem;
     Key      = key;
     Type     = type;
     RawValue = value;
 }
Beispiel #3
0
        public static TriggerParam CreateInteger(TriggerTarget target, Item specifiedTargetItem, string key, int intValue)
        {
            var value = new TriggerValue();

            value.IntegerValue = intValue;

            var param = new TriggerParam(target, null, key, ParameterType.Integer, value);

            return(param);
        }
Beispiel #4
0
        public static TriggerParam CreateFloat(TriggerTarget target, Item specifiedTargetItem, string key, float floatValue)
        {
            var value = new TriggerValue();

            value.FloatValue = floatValue;

            var param = new TriggerParam(target, null, key, ParameterType.Float, value);

            return(param);
        }
Beispiel #5
0
        public static TriggerParam CreateBool(TriggerTarget target, Item specifiedTargetItem, string key, bool boolValue)
        {
            var value = new TriggerValue();

            value.BoolValue = boolValue;

            var param = new TriggerParam(target, null, key, ParameterType.Bool, value);

            return(param);
        }