public void ReplaceISomeInterface(ExampleContent.VisualDebugging.ISomeInterface newValue) { var index = VisualDebugComponentsLookup.ISomeInterface; var component = (ISomeInterfaceComponent)CreateComponent(index, typeof(ISomeInterfaceComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void ReplaceISomeInterface(ExampleContent.VisualDebugging.ISomeInterface newValue) { var index = VisualDebugComponentsLookup.ISomeInterface; var component = (ISomeInterfaceComponent)CreateComponent(index, typeof(ISomeInterfaceComponent)); #if !ENTITAS_REDUX_NO_IMPL component.value = newValue; #endif ReplaceComponent(index, component); }
public VisualDebugEntity SetISomeInterface(ExampleContent.VisualDebugging.ISomeInterface newValue) { if (hasISomeInterface) { throw new JCMG.EntitasRedux.EntitasReduxException("Could not set ISomeInterface!\n" + this + " already has an entity with ISomeInterfaceComponent!", "You should check if the context already has a ISomeInterfaceEntity before setting it or use context.ReplaceISomeInterface()."); } var entity = CreateEntity(); entity.AddISomeInterface(newValue); return(entity); }
public void ReplaceISomeInterface(ExampleContent.VisualDebugging.ISomeInterface newValue) { var entity = ISomeInterfaceEntity; if (entity == null) { entity = SetISomeInterface(newValue); } else { entity.ReplaceISomeInterface(newValue); } }
public void ReplaceISomeInterface(ExampleContent.VisualDebugging.ISomeInterface newValue) { #if !ENTITAS_REDUX_NO_IMPL var entity = ISomeInterfaceEntity; if (entity == null) { entity = SetISomeInterface(newValue); } else { entity.ReplaceISomeInterface(newValue); } #endif }