static void GetAOIDs(EventState state, List <int> ids)//, int packID) {
 {
     for (int i = 0; i < state.assetObjects.Length; i++)
     {
         // if (state.assetObjects[i].packID != packID)  continue;
         int id = state.assetObjects[i].id;
         if (!ids.Contains(id))
         {
             ids.Add(id);
         }
     }
 }
示例#2
0
 void GetFilteredStates(EventState eventState, Dictionary <string, CustomParameter> parameters, EventResponse eventResponse)
 {
     if (CustomScripting.StatementValue(eventState.conditionBlock, parameters, ref eventResponse.logErrors, ref eventResponse.logWarnings))
     {
         eventState.GetAssetObjects(eventResponse, parameters);
         int l = eventState.subStatesIDs.Length;
         for (int i = 0; i < l; i++)
         {
             GetFilteredStates(allStates[id2State[eventState.subStatesIDs[i]]], parameters, eventResponse);
         }
     }
 }