public Entity AddUnsupportedObject(UnsupportedObject newUnsupportedObject) { var component = CreateComponent <UnsupportedObjectComponent>(VisualDebuggingComponentIds.UnsupportedObject); component.unsupportedObject = newUnsupportedObject; return(AddComponent(VisualDebuggingComponentIds.UnsupportedObject, component)); }
public Entity AddUnsupportedObject(UnsupportedObject newUnsupportedObject) { var component = _unsupportedObjectComponentPool.Count > 0 ? _unsupportedObjectComponentPool.Pop() : new UnsupportedObjectComponent(); component.unsupportedObject = newUnsupportedObject; return(AddComponent(ComponentIds.UnsupportedObject, component)); }
public Entity AddUnsupportedObject(UnsupportedObject newUnsupportedObject) { var componentPool = GetComponentPool(ComponentIds.UnsupportedObject); var component = (UnsupportedObjectComponent)(componentPool.Count > 0 ? componentPool.Pop() : new UnsupportedObjectComponent()); component.unsupportedObject = newUnsupportedObject; return AddComponent(ComponentIds.UnsupportedObject, component); }
public void ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { var component = CreateComponent <UnsupportedObjectComponent>(GameComponentsLookup.UnsupportedObject); component.unsupportedObject = newUnsupportedObject; ReplaceComponent(GameComponentsLookup.UnsupportedObject, component); }
public Entity AddUnsupportedObject(UnsupportedObject newUnsupportedObject) { var component = new UnsupportedObjectComponent(); component.unsupportedObject = newUnsupportedObject; return(AddUnsupportedObject(component)); }
void createTestEntityWithNullValues(Pool pool) { var e = pool.CreateEntity(); // Unity's builtIn AnimationCurve animationCurve = null; e.AddAnimationCurve(animationCurve); String myString = null; e.AddMyString(myString); UnityEngine.Object unityObject = null; e.AddUnityObject(unityObject); GameObject go = null; e.AddGameObject(go); Texture texture = null; e.AddTexture(texture); Texture2D texture2D = null; e.AddTexture2D(texture2D); // Custom MonoBehaviourSubClass monoBehaviourSubClass = null; e.AddMonoBehaviourSubClass(monoBehaviourSubClass); CustomObject customObject = null; e.AddCustomObject(customObject); object systemObject = null; e.AddSystemObject(systemObject); string[] array = null; e.AddAnArray(array); string[,] array2d = null; e.AddArray2D(array2d); string[,,] array3d = null; e.AddArray3D(array3d); string[][] jaggedArray = null; e.AddJaggedArray(jaggedArray); List <string>[] listArray = null; e.AddListArray(listArray); List <string> list = null; e.AddList(list); Dictionary <string, string> dict = null; e.AddDictionary(dict); Dictionary <int, string[]> dict2 = null; Dictionary <int, string[]>[] dictArray = null; e.AddDictArray(dict2, dictArray); HashSet <string> hashset = null; e.AddHashSet(hashset); UnsupportedObject unsupportedObject = null; e.AddUnsupportedObject(unsupportedObject); }
public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { var componentPool = GetComponentPool(ComponentIds.UnsupportedObject); var component = (UnsupportedObjectComponent)(componentPool.Count > 0 ? componentPool.Pop() : new UnsupportedObjectComponent()); component.unsupportedObject = newUnsupportedObject; ReplaceComponent(ComponentIds.UnsupportedObject, component); return this; }
public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { var component = CreateComponent<UnsupportedObjectComponent>(VisualDebuggingComponentIds.UnsupportedObject); component.unsupportedObject = newUnsupportedObject; ReplaceComponent(VisualDebuggingComponentIds.UnsupportedObject, component); return this; }
public void ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { var index = GameComponentsLookup.UnsupportedObject; var component = (UnsupportedObjectComponent)CreateComponent(index, typeof(UnsupportedObjectComponent)); component.unsupportedObject = newUnsupportedObject; ReplaceComponent(index, component); }
public void AddUnsupportedObject(UnsupportedObject newUnsupportedObject) { var index = GameComponentsLookup.UnsupportedObject; var component = CreateComponent <UnsupportedObjectComponent>(index); component.unsupportedObject = newUnsupportedObject; AddComponent(index, component); }
public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { var component = CreateComponent <UnsupportedObjectComponent>(VisualDebuggingComponentIds.UnsupportedObject); component.unsupportedObject = newUnsupportedObject; ReplaceComponent(VisualDebuggingComponentIds.UnsupportedObject, component); return(this); }
public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { var componentPool = GetComponentPool(ComponentIds.UnsupportedObject); var component = (UnsupportedObjectComponent)(componentPool.Count > 0 ? componentPool.Pop() : new UnsupportedObjectComponent()); component.unsupportedObject = newUnsupportedObject; ReplaceComponent(ComponentIds.UnsupportedObject, component); return(this); }
public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { var previousComponent = hasUnsupportedObject ? unsupportedObject : null; var component = _unsupportedObjectComponentPool.Count > 0 ? _unsupportedObjectComponentPool.Pop() : new UnsupportedObjectComponent(); component.unsupportedObject = newUnsupportedObject; ReplaceComponent(ComponentIds.UnsupportedObject, component); if (previousComponent != null) { _unsupportedObjectComponentPool.Push(previousComponent); } return this; }
public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { UnsupportedObjectComponent component; if (hasUnsupportedObject) { WillRemoveComponent(ComponentIds.UnsupportedObject); component = unsupportedObject; } else { component = new UnsupportedObjectComponent(); } component.unsupportedObject = newUnsupportedObject; return ReplaceComponent(ComponentIds.UnsupportedObject, component); }
public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { var previousComponent = unsupportedObject; var component = _unsupportedObjectComponentPool.Count > 0 ? _unsupportedObjectComponentPool.Pop() : new UnsupportedObjectComponent(); component.unsupportedObject = newUnsupportedObject; ReplaceComponent(ComponentIds.UnsupportedObject, component); if (previousComponent != null) { _unsupportedObjectComponentPool.Push(previousComponent); } return(this); }
public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject) { UnsupportedObjectComponent component; if (hasUnsupportedObject) { WillRemoveComponent(ComponentIds.UnsupportedObject); component = unsupportedObject; } else { component = new UnsupportedObjectComponent(); } component.unsupportedObject = newUnsupportedObject; return(ReplaceComponent(ComponentIds.UnsupportedObject, component)); }
public Entity AddUnsupportedObject(UnsupportedObject newUnsupportedObject) { var component = new UnsupportedObjectComponent(); component.unsupportedObject = newUnsupportedObject; return AddUnsupportedObject(component); }
void createTestEntityWithNullValues(GameContext context) { var e = context.CreateEntity(); // Unity's builtIn AnimationCurve animationCurve = null; e.AddAnimationCurve(animationCurve); string myString = null; e.AddMyString(myString); UnityEngine.Object unityObject = null; e.AddUnityObject(unityObject); GameObject go = null; e.AddGameObject(go); Texture texture = null; e.AddTexture(texture); Texture2D texture2D = null; e.AddTexture2D(texture2D); // Custom MonoBehaviourSubClass monoBehaviourSubClass = null; e.AddMonoBehaviourSubClass(monoBehaviourSubClass); CustomObject customObject = null; e.AddCustomObject(customObject); object systemObject = null; e.AddSystemObject(systemObject); string[] array = null; e.AddAnArray(array); string[,] array2d = null; e.AddArray2D(array2d); string[,,] array3d = null; e.AddArray3D(array3d); string[][] jaggedArray = null; e.AddJaggedArray(jaggedArray); List <string>[] listArray = null; e.AddListArray(listArray); List <string> list = null; e.AddList(list); Dictionary <string, string> dict = null; e.AddDictionary(dict); Dictionary <int, string[]> dict2 = null; Dictionary <int, string[]>[] dictArray = null; e.AddDictArray(dict2, dictArray); HashSet <string> hashset = null; e.AddHashSet(hashset); char c = default(char); e.AddMyChar(c); UnsupportedObject unsupportedObject = null; e.AddUnsupportedObject(unsupportedObject); SimpleObject simpleObject = null; e.AddSimpleObject(simpleObject); e.AddDontDrawSimpleObject(simpleObject); e.AddProperty(myString); string personName = null; string personGender = null; e.AddPerson(personName, personGender); }
public Entity AddUnsupportedObject(UnsupportedObject newUnsupportedObject) { var component = CreateComponent<UnsupportedObjectComponent>(VisualDebuggingComponentIds.UnsupportedObject); component.unsupportedObject = newUnsupportedObject; return AddComponent(VisualDebuggingComponentIds.UnsupportedObject, component); }