public Entity AddMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var component = CreateComponent <MonoBehaviourSubClassComponent>(VisualDebuggingComponentIds.MonoBehaviourSubClass); component.monoBehaviour = newMonoBehaviour; return(AddComponent(VisualDebuggingComponentIds.MonoBehaviourSubClass, component)); }
public void ReplaceMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var component = CreateComponent <MonoBehaviourSubClassComponent>(GameComponentsLookup.MonoBehaviourSubClass); component.monoBehaviour = newMonoBehaviour; ReplaceComponent(GameComponentsLookup.MonoBehaviourSubClass, 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 ReplaceMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var component = CreateComponent<MonoBehaviourSubClassComponent>(VisualDebuggingComponentIds.MonoBehaviourSubClass); component.monoBehaviour = newMonoBehaviour; ReplaceComponent(VisualDebuggingComponentIds.MonoBehaviourSubClass, component); return this; }
public Entity AddMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var componentPool = GetComponentPool(ComponentIds.MonoBehaviourSubClass); var component = (MonoBehaviourSubClassComponent)(componentPool.Count > 0 ? componentPool.Pop() : new MonoBehaviourSubClassComponent()); component.monoBehaviour = newMonoBehaviour; return AddComponent(ComponentIds.MonoBehaviourSubClass, component); }
public Entity ReplaceMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var component = CreateComponent <MonoBehaviourSubClassComponent>(VisualDebuggingComponentIds.MonoBehaviourSubClass); component.monoBehaviour = newMonoBehaviour; ReplaceComponent(VisualDebuggingComponentIds.MonoBehaviourSubClass, component); return(this); }
public Entity AddMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var componentPool = GetComponentPool(ComponentIds.MonoBehaviourSubClass); var component = (MonoBehaviourSubClassComponent)(componentPool.Count > 0 ? componentPool.Pop() : new MonoBehaviourSubClassComponent()); component.monoBehaviour = newMonoBehaviour; return(AddComponent(ComponentIds.MonoBehaviourSubClass, component)); }
public void AddMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var index = GameComponentsLookup.MonoBehaviourSubClass; var component = CreateComponent <MonoBehaviourSubClassComponent>(index); component.monoBehaviour = newMonoBehaviour; AddComponent(index, component); }
public void ReplaceMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var index = GameComponentsLookup.MonoBehaviourSubClass; var component = (MonoBehaviourSubClassComponent)CreateComponent(index, typeof(MonoBehaviourSubClassComponent)); component.monoBehaviour = newMonoBehaviour; ReplaceComponent(index, component); }
public Entity AddMonoBehaviourSubClass(MonoBehaviourSubClass newMonoBehaviour) { var component = CreateComponent<MonoBehaviourSubClassComponent>(VisualDebuggingComponentIds.MonoBehaviourSubClass); component.monoBehaviour = newMonoBehaviour; return AddComponent(VisualDebuggingComponentIds.MonoBehaviourSubClass, 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); }