Exemplo n.º 1
0
 //setters
 public void SetChannelValue(int frameIndex, int channelIndex, Channel.Value newValue)
 {
     if (FrameExists(frameIndex))
     {
         if (TypeInstance.ChannelFlyweights[channelIndex].ValueFlyweights.Contains(newValue))
         {
             Beatmap.Frames[frameIndex].SetValue(channelIndex, newValue);
         }
     }
 }
Exemplo n.º 2
0
        protected void SpawnValueController(Channel.Value newValue, int channelIndex)
        {
            var controller = Instantiate(ValueControllerPrefab, ValueControllerContainer);

            controller.SetValue(newValue);
            controller.OnRequestSet.AddListener(value => OnRequestValueSetInternal(channelIndex, value));

            _expectedFrameValueControllers.Add(controller);

            SpawnValueController_Late(newValue, channelIndex, controller);
        }
Exemplo n.º 3
0
 public virtual void SetValue(Channel.Value value)
 {
     _value = value;
 }
Exemplo n.º 4
0
 public void SetValue(int channelIndex, Channel.Value value)
 {
     _valueArray[channelIndex] = value;  //index out of range exception is a workable fail state here
     OnChannelValueSet?.Invoke(channelIndex, value);
 }
Exemplo n.º 5
0
 protected virtual void SpawnValueController_Late(Channel.Value newValue, int channelIndex, ValueController controller) /* Nothing. */ }
Exemplo n.º 6
0
 public static ChannelValueInfo GetInfo(Channel.Value value)
 {
     DatabaseManager.GetDB<ChannelValueInfo>().TryFind(value.Name, out ChannelValueInfo info, false);
     return info;
 }