/// <summary> /// Pushs the current reflection values onto reflectionsList stack. /// </summary> void PushCurrentReflectionValues() { if (OSPManager.sInstance == null) { Debug.LogWarning(System.String.Format("OSPReflectionZone-PushCurrentReflectionValues: OSPManager does not exist in scene.")); return; } OSPManager.RoomModel rm = new OSPManager.RoomModel(); rm.DimensionX = OSPManager.sInstance.Dimensions.x; rm.DimensionY = OSPManager.sInstance.Dimensions.y; rm.DimensionZ = OSPManager.sInstance.Dimensions.z; rm.Reflection_K0 = OSPManager.sInstance.RK01.x; rm.Reflection_K1 = OSPManager.sInstance.RK01.y; rm.Reflection_K2 = OSPManager.sInstance.RK23.x; rm.Reflection_K3 = OSPManager.sInstance.RK23.y; rm.Reflection_K4 = OSPManager.sInstance.RK45.x; rm.Reflection_K5 = OSPManager.sInstance.RK45.y; reflectionList.Push(rm); // Set the zone reflection values // NOTE: There will be conditions that might need resolution when dealing with volumes that // overlap. Best practice is to never have volumes half-way inside other volumes; larger // volumes should completely contain smaller volumes SetReflectionValues(); }
// Token: 0x0600377F RID: 14207 RVA: 0x0011B6D4 File Offset: 0x00119AD4 private void SetReflectionValues(ref OSPManager.RoomModel rm) { OSPManager.sInstance.Dimensions = new Vector3(rm.DimensionX, rm.DimensionY, rm.DimensionZ); OSPManager.sInstance.RK01 = new Vector3(rm.Reflection_K0, rm.Reflection_K1); OSPManager.sInstance.RK23 = new Vector3(rm.Reflection_K2, rm.Reflection_K3); OSPManager.sInstance.RK45 = new Vector3(rm.Reflection_K4, rm.Reflection_K5); }
// Token: 0x0600377D RID: 14205 RVA: 0x0011B618 File Offset: 0x00119A18 private void PopCurrentReflectionValues() { if (OSPManager.sInstance == null) { Debug.LogWarning(string.Format("OSPReflectionZone-PopCurrentReflectionValues: OSPManager does not exist in scene.", new object[0])); return; } if (OSPReflectionZone.reflectionList.Count == 0) { Debug.LogWarning(string.Format("OSPReflectionZone-PopCurrentReflectionValues: reflectionList is empty.", new object[0])); return; } OSPManager.RoomModel roomModel = OSPReflectionZone.reflectionList.Pop(); this.SetReflectionValues(ref roomModel); }
/// <summary> /// Pops the current reflection values from reflectionsList stack. /// </summary> void PopCurrentReflectionValues() { if (OSPManager.sInstance == null) { Debug.LogWarning(System.String.Format("OSPReflectionZone-PopCurrentReflectionValues: OSPManager does not exist in scene.")); return; } if (reflectionList.Count == 0) { Debug.LogWarning(System.String.Format("OSPReflectionZone-PopCurrentReflectionValues: reflectionList is empty.")); return; } OSPManager.RoomModel rm = reflectionList.Pop(); // Set the popped reflection values SetReflectionValues(ref rm); }
// Token: 0x0600377C RID: 14204 RVA: 0x0011B4E4 File Offset: 0x001198E4 private void PushCurrentReflectionValues() { if (OSPManager.sInstance == null) { Debug.LogWarning(string.Format("OSPReflectionZone-PushCurrentReflectionValues: OSPManager does not exist in scene.", new object[0])); return; } OSPManager.RoomModel t = default(OSPManager.RoomModel); t.DimensionX = OSPManager.sInstance.Dimensions.x; t.DimensionY = OSPManager.sInstance.Dimensions.y; t.DimensionZ = OSPManager.sInstance.Dimensions.z; t.Reflection_K0 = OSPManager.sInstance.RK01.x; t.Reflection_K1 = OSPManager.sInstance.RK01.y; t.Reflection_K2 = OSPManager.sInstance.RK23.x; t.Reflection_K3 = OSPManager.sInstance.RK23.y; t.Reflection_K4 = OSPManager.sInstance.RK45.x; t.Reflection_K5 = OSPManager.sInstance.RK45.y; OSPReflectionZone.reflectionList.Push(t); this.SetReflectionValues(); }
/// <summary> /// Pushs the current reflection values onto reflectionsList stack. /// </summary> void PushCurrentReflectionValues() { if(OSPManager.sInstance == null) { Debug.LogWarning (System.String.Format ("OSPReflectionZone-PushCurrentReflectionValues: OSPManager does not exist in scene.")); return; } OSPManager.RoomModel rm = new OSPManager.RoomModel(); rm.DimensionX = OSPManager.sInstance.Dimensions.x; rm.DimensionY = OSPManager.sInstance.Dimensions.y; rm.DimensionZ = OSPManager.sInstance.Dimensions.z; rm.Reflection_K0 = OSPManager.sInstance.RK01.x; rm.Reflection_K1 = OSPManager.sInstance.RK01.y; rm.Reflection_K2 = OSPManager.sInstance.RK23.x; rm.Reflection_K3 = OSPManager.sInstance.RK23.y; rm.Reflection_K4 = OSPManager.sInstance.RK45.x; rm.Reflection_K5 = OSPManager.sInstance.RK45.y; reflectionList.Push(rm); // Set the zone reflection values // NOTE: There will be conditions that might need resolution when dealing with volumes that // overlap. Best practice is to never have volumes half-way inside other volumes; larger // volumes should completely contain smaller volumes SetReflectionValues(); }
private static extern bool OSP_UpdateRoomModel(ref OSPManager.RoomModel rm);