protected void SyncReceiver(string receiverID)
        {
            List <string> receiverTargetChoices = new List <string>();

            receiverTargetChoices.Add("None");
            if (receivingAtom != null && receiverID != null)
            {
                receiver = receivingAtom.GetStorableByID(receiverID);
                if (receiver != null)
                {
                    foreach (string actionParams in receiver.GetActionNames())
                    {
                        receiverTargetChoices.Add(actionParams);
                    }
                }
                else if (receiverID != "None")
                {
                    // some storables can be late loaded, like skin, clothing, hair, etc so must keep track of missing receiver
                    //Debug.Log("Missing receiver " + receiverID);
                    _missingReceiverStoreId = receiverID;
                }
            }
            else
            {
                receiver = null;
            }
            receiverTargetJSON.choices = receiverTargetChoices;
            receiverTargetJSON.val     = "None";
        }
Exemple #2
0
 public override IEnumerable <string> GetParameterNames(JSONStorable s)
 {
     foreach (var n in s.GetActionNames())
     {
         yield return(n);
     }
 }
Exemple #3
0
 public static List <string> GetCustomActionNames(this JSONStorable storable)
 {
     return(storable.GetActionNames().Where((a) => !_commonActionNames.Contains(a)).ToList());
 }