Ejemplo n.º 1
0
 private static void Write(UnsafeWriter writer, UnitySceneData value)
 {
     PropertiesDataMarshaller.Marshal(writer, value.PropertiesData);
     EventHandlersMarshaller.Marshal(writer, value.ShortNameToScriptFileId);
     ScriptToGuidMarshaller.Marshal(writer, value.ScriptMapping);
     value.SceneHierarchy.WriteTo(writer);
 }
Ejemplo n.º 2
0
        public void Add(IPsiSourceFile sourceFile, UnitySceneData sceneData)
        {
            myShellLocks.AssertMainThread();

            foreach (var(property, values) in sceneData.PropertiesData)
            {
                foreach (var value in values)
                {
                    myPropertyValueLocalCache.Add(property, new MonoBehaviourPropertyValueWithLocation(sourceFile, value));
                }
            }

            foreach (var(id, element) in sceneData.SceneHierarchy.Elements)
            {
                mySceneElements.Add(new SceneElementId(sourceFile, id), element);
            }
        }
Ejemplo n.º 3
0
 private static void Write(UnsafeWriter writer, UnitySceneData value)
 {
     PropertiesDataMarshaller.Marshal(writer, value.PropertiesData);
     value.SceneHierarchy.WriteTo(writer);
 }