Exemple #1
0
        public object[] GetChilds()
        {
            object[] childs = new object[_serializedChildStateIds.Count];

            for (int i = 0; i < childs.Length; i++)
            {
                childs[i] = GenericTypeSerializer.Deserialize(_serializedChildStateIds[i], StateIdType);
            }

            return(childs);
        }
Exemple #2
0
        public bool ContainsChild(object childStateId)
        {
            for (int i = 0; i < _serializedChildStateIds.Count; i++)
            {
                var current = _serializedChildStateIds[i];

                var deserializedId = GenericTypeSerializer.Deserialize(current, StateIdType);

                if (HierarchicalStateMachineBuilderHelper.AreEquals(deserializedId, childStateId))
                {
                    return(true);
                }
            }

            return(false);
        }