Changeset 1899
- Timestamp:
- 11/18/09 16:48:23 (3 months ago)
- Location:
- trunk/Projects/Axiom
- Files:
-
- 16 modified
-
Engine/Axiom.Xbox.csproj (modified) (19 diffs)
-
Engine/Axiom.csproj (modified) (1 diff)
-
Engine/Core/ResourceGroupManager.cs (modified) (1 diff)
-
Engine/Core/Singleton.cs (modified) (1 diff)
-
Engine/Core/StringConverter.cs (modified) (3 diffs)
-
Engine/FileSystem/FileSystemArchive.cs (modified) (4 diffs)
-
Engine/FileSystem/Watcher.cs (modified) (5 diffs)
-
Engine/Fonts/Font.cs (modified) (10 diffs)
-
Engine/Graphics/QueuedRenderableCollection.cs (modified) (1 diff)
-
Engine/Math/Degree.cs (modified) (2 diffs)
-
Engine/Math/Radian.cs (modified) (2 diffs)
-
Engine/Math/Real.cs (modified) (3 diffs)
-
Engine/Scripting/ScriptEnumAttribute.cs (modified) (2 diffs)
-
Engine/Scripting/ScriptableObject.cs (modified) (1 diff)
-
Engine/Serialization/StreamSerializer.cs (modified) (1 diff)
-
Plugins/ParticleFX/Axiom.Plugins.ParticleFX.Xbox.csproj (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Projects/Axiom/Engine/Axiom.Xbox.csproj
r1663 r1899 64 64 <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, processorArchitecture=MSIL"> 65 65 <SpecificVersion>False</SpecificVersion> 66 <HintPath>..\..\..\ ..\Lib\Managed\CompactFramework\ICSharpCode.SharpZipLib\0.85.4.369\ICSharpCode.SharpZipLib.dll</HintPath>66 <HintPath>..\..\..\Lib\Managed\CompactFramework\ICSharpCode.SharpZipLib\0.85.4.369\ICSharpCode.SharpZipLib.dll</HintPath> 67 67 </Reference> 68 68 <Reference Include="Microsoft.Xna.Framework"> … … 86 86 <Link>Properties\GlobalAssemblyInfo.cs</Link> 87 87 </Compile> 88 <Compile Include="Animating\Animable.cs" /> 88 89 <Compile Include="Animating\Animation.cs" /> 89 90 <Compile Include="Animating\AnimationState.cs" /> 91 <Compile Include="Animating\AnimationStateSet.cs" /> 90 92 <Compile Include="Animating\AnimationTrack.cs" /> 93 <Compile Include="Animating\AttachmentPoint.cs" /> 91 94 <Compile Include="Animating\Bone.cs" /> 95 <Compile Include="Animating\Collections\AnimationCollection.cs" /> 96 <Compile Include="Animating\Collections\AnimationStateCollection.cs" /> 97 <Compile Include="Animating\Collections\AnimationTrackCollection.cs" /> 98 <Compile Include="Animating\Collections\BoneCollection.cs" /> 99 <Compile Include="Animating\Collections\Lists.cs" /> 92 100 <Compile Include="Animating\Enums.cs" /> 93 101 <Compile Include="Animating\KeyFrame.cs" /> 102 <Compile Include="Animating\Pose.cs" /> 94 103 <Compile Include="Animating\Skeleton.cs" /> 95 104 <Compile Include="Animating\SkeletonInstance.cs" /> 96 105 <Compile Include="Animating\SkeletonManager.cs" /> 97 106 <Compile Include="Animating\TagPoint.cs" /> 98 <Compile Include="Collections\AnimationCollection.cs" />99 <Compile Include="Collections\AnimationStateCollection.cs" />100 <Compile Include="Collections\AnimationTrackCollection.cs" />101 107 <Compile Include="Collections\AxiomCollection.cs" /> 102 <Compile Include="Collections\BillboardSetCollection.cs" /> 103 <Compile Include="Collections\BoneCollection.cs" /> 104 <Compile Include="Collections\CameraCollection.cs" /> 105 <Compile Include="Collections\ConfigOptionCollection.cs" /> 106 <Compile Include="Collections\EntityCollection.cs" /> 107 <Compile Include="Collections\HashList.cs" /> 108 <Compile Include="Collections\Deque.cs" /> 108 109 <Compile Include="Collections\KeyFrameCollection.cs" /> 109 <Compile Include="Collections\LightCollection.cs" />110 <Compile Include="Collections\Lists.cs" />111 <Compile Include="Collections\Map.cs" />112 110 <Compile Include="Collections\MeshCollection.cs" /> 113 <Compile Include="Collections\MovableObjectCollection.cs" /> 111 <Compile Include="Collections\MultiMap.cs" /> 112 <Compile Include="Collections\NamedParameterList.cs" /> 114 113 <Compile Include="Collections\NameValuePairList.cs" /> 115 <Compile Include="Collections\NodeCollection.cs" /> 116 <Compile Include="Collections\RenderSystemCollection.cs" /> 117 <Compile Include="Collections\RenderTargetCollection.cs" /> 118 <Compile Include="Collections\RenderWindowCollection.cs" /> 119 <Compile Include="Collections\SceneNodeCollection.cs" /> 120 <Compile Include="Collections\SceneQueryMovableObjectIntersectionList.cs" /> 121 <Compile Include="Collections\SceneQueryMovableObjectWorldFragmentIntersectionList.cs" /> 114 <Compile Include="Collections\RadixSort.cs" /> 122 115 <Compile Include="Collections\SubEntityCollection.cs" /> 123 <Compile Include="Collections\ViewportCollection.cs" />124 116 <Compile Include="Configuration\Config.cs" /> 125 117 <Compile Include="Configuration\ConfigOption.cs" /> … … 129 121 <Compile Include="Controllers\Canned\MultiplyControllerFunction.cs" /> 130 122 <Compile Include="Controllers\Canned\NodeRotationControllerValue.cs" /> 123 <Compile Include="Controllers\Canned\PassthroughControllerFunction.cs" /> 131 124 <Compile Include="Controllers\Canned\TexCoordModifierControllerValue.cs" /> 132 125 <Compile Include="Controllers\Canned\TextureFrameControllerValue.cs" /> … … 138 131 <Compile Include="Controllers\IControllerFunction.cs" /> 139 132 <Compile Include="Controllers\IControllerValue.cs" /> 133 <Compile Include="Core\AbstractFactory~1.cs" /> 140 134 <Compile Include="Core\AxiomException.cs" /> 141 135 <Compile Include="Core\Billboard.cs" /> 136 <Compile Include="Core\BillboardChain.cs" /> 142 137 <Compile Include="Core\BillboardSet.cs" /> 138 <Compile Include="Core\BitConverterEx.cs" /> 143 139 <Compile Include="Core\Camera.cs" /> 144 <Compile Include="Core\Collections.cs" /> 140 <Compile Include="Core\ChainedEvent.cs" /> 141 <Compile Include="Core\Collections\CameraCollection.cs" /> 142 <Compile Include="Core\Collections\Lists.cs" /> 143 <Compile Include="Core\Collections\MovableObjectCollection.cs" /> 144 <Compile Include="Core\Collections\NodeCollection.cs" /> 145 <Compile Include="Core\Collections\SceneManagerCollection.cs" /> 146 <Compile Include="Core\Collections\SceneNodeCollection.cs" /> 147 <Compile Include="Core\Collections\SceneQueryMovableObjectIntersectionList.cs" /> 148 <Compile Include="Core\Collections\SceneQueryMovableObjectWorldFragmentIntersectionList.cs" /> 149 <Compile Include="Core\Collections\ViewportCollection.cs" /> 145 150 <Compile Include="Core\ColorEx.cs" /> 146 151 <Compile Include="Core\CoreEnums.cs" /> 152 <Compile Include="Core\DefaultShadowCameraSetup.cs" /> 153 <Compile Include="Core\DistanceLodStrategy.cs" /> 147 154 <Compile Include="Core\Entity.cs" /> 148 155 <Compile Include="Core\Frustum.cs" /> 156 <Compile Include="Core\IAbstractFactory~1.cs" /> 149 157 <Compile Include="Core\IConfigurable.cs" /> 158 <Compile Include="Core\ILodListener.cs" /> 150 159 <Compile Include="Core\IPlatformManager.cs" /> 151 160 <Compile Include="Core\IPlugin.cs" /> 161 <Compile Include="Core\IShadowCameraSetup.cs" /> 152 162 <Compile Include="Core\ITimer.cs" /> 153 163 <Compile Include="Core\Light.cs" /> 164 <Compile Include="Core\LodStrategy.cs" /> 165 <Compile Include="Core\LodStrategyManager.cs" /> 154 166 <Compile Include="Core\Log.cs" /> 155 167 <Compile Include="Core\LogManager.cs" /> 168 <Compile Include="Core\ManualObject.cs" /> 156 169 <Compile Include="Core\Memory.cs" /> 157 170 <Compile Include="Core\Mesh.cs" /> 158 171 <Compile Include="Core\MeshManager.cs" /> 172 <Compile Include="Core\Meters.cs" /> 159 173 <Compile Include="Core\MovableObject.cs" /> 160 174 <Compile Include="Core\MovableText.cs" /> 175 <Compile Include="Core\NameGenerator~1.cs" /> 161 176 <Compile Include="Core\Node.cs" /> 162 177 <Compile Include="Core\ObjectCreator.cs" /> 163 178 <Compile Include="Core\ObjectTextDisplay.cs" /> 179 <Compile Include="Core\Pair.cs" /> 164 180 <Compile Include="Core\PatchMesh.cs" /> 165 181 <Compile Include="Core\PatchSurface.cs" /> 182 <Compile Include="Core\PixelCountStrategy.cs" /> 166 183 <Compile Include="Core\PlatformInformation.cs" /> 167 184 <Compile Include="Core\PlatformManager.cs" /> 168 185 <Compile Include="Core\PluginException.cs" /> 169 186 <Compile Include="Core\PluginManager.cs" /> 187 <Compile Include="Core\PrefabFactory.cs" /> 188 <Compile Include="Core\ProgressiveMesh.cs" /> 170 189 <Compile Include="Core\Rectangle.cs" /> 171 190 <Compile Include="Core\Resource.cs" /> … … 174 193 <Compile Include="Core\Root.cs" /> 175 194 <Compile Include="Core\SceneManager.cs" /> 176 <Compile Include="Core\SceneManager List.cs" />195 <Compile Include="Core\SceneManagerEnumerator.cs" /> 177 196 <Compile Include="Core\SceneNode.cs" /> 178 197 <Compile Include="Core\SceneQuery.cs" /> 198 <Compile Include="Core\ShadowTextureManager.cs" /> 199 <Compile Include="Core\Singleton.cs" /> 200 <Compile Include="Core\SpecialCaseRenderQueue.cs" /> 201 <Compile Include="Core\StaticGeometry\GeometryBucket.cs" /> 202 <Compile Include="Core\StaticGeometry\LODBucket.cs" /> 203 <Compile Include="Core\StaticGeometry\MaterialBucket.cs" /> 204 <Compile Include="Core\StaticGeometry\Region.cs" /> 205 <Compile Include="Core\StaticGeometry\StaticGeometry.cs" /> 179 206 <Compile Include="Core\StringConverter.cs" /> 180 207 <Compile Include="Core\SubEntity.cs" /> … … 184 211 <Compile Include="Core\Timer.cs" /> 185 212 <Compile Include="Core\Viewport.cs" /> 213 <Compile Include="Core\WindowEventMonitor.cs" /> 186 214 <Compile Include="Core\WireBoundingBox.cs" /> 187 215 <Compile Include="FileSystem\Archive.cs" /> 188 216 <Compile Include="FileSystem\ArchiveManager.cs" /> 189 <Compile Include="FileSystem\F older.cs" />190 <Compile Include="FileSystem\ FolderFactory.cs" />191 <Compile Include="FileSystem\IArchiveFactory.cs" />192 < Compile Include="FileSystem\Zip.cs" />193 <Compile Include="FileSystem\Zip Factory.cs" />217 <Compile Include="FileSystem\FileSystemArchive.cs" /> 218 <Compile Include="FileSystem\Watcher.cs"> 219 <SubType>Code</SubType> 220 </Compile> 221 <Compile Include="FileSystem\ZipArchive.cs" /> 194 222 <Compile Include="Fonts\Font.cs" /> 195 <Compile Include="Fonts\FontEnums.cs" />196 223 <Compile Include="Fonts\FontManager.cs" /> 224 <Compile Include="Graphics\AnyBuilder.cs" /> 197 225 <Compile Include="Graphics\AutoParamDataSource.cs" /> 198 226 <Compile Include="Graphics\BufferStream.cs" /> 199 <Compile Include="Graphics\Collections.cs" /> 227 <Compile Include="Graphics\Collections\ConfigOptionCollection.cs" /> 228 <Compile Include="Graphics\Collections\Lists.cs" /> 229 <Compile Include="Graphics\Collections\RenderPriorityGroupList.cs" /> 230 <Compile Include="Graphics\Collections\RenderSystemCollection.cs" /> 231 <Compile Include="Graphics\Collections\RenderTargetCollection.cs" /> 232 <Compile Include="Graphics\Collections\RenderWindowCollection.cs" /> 233 <Compile Include="Graphics\CompositionPass.cs" /> 234 <Compile Include="Graphics\CompositionTargetPass.cs" /> 235 <Compile Include="Graphics\CompositionTechnique.cs" /> 236 <Compile Include="Graphics\Compositor.cs" /> 237 <Compile Include="Graphics\CompositorChain.cs" /> 238 <Compile Include="Graphics\CompositorInstance.cs" /> 239 <Compile Include="Graphics\CompositorManager.cs" /> 240 <Compile Include="Graphics\DefaultHardwareIndexBuffer.cs" /> 241 <Compile Include="Graphics\DefaultHardwareVertexBuffer.cs" /> 200 242 <Compile Include="Graphics\EdgeData.cs" /> 201 243 <Compile Include="Graphics\EdgeListBuilder.cs" /> … … 203 245 <Compile Include="Graphics\GpuProgram.cs" /> 204 246 <Compile Include="Graphics\GpuProgramManager.cs" /> 247 <Compile Include="Graphics\GpuProgramParameters.AutoConstants.cs" /> 248 <Compile Include="Graphics\GpuProgramParameters.ConstantEntry.cs" /> 205 249 <Compile Include="Graphics\GpuProgramParameters.cs" /> 250 <Compile Include="Graphics\GpuProgramParameters.GpuConstantDefinition.cs" /> 251 <Compile Include="Graphics\GpuProgramParameters.NamedConstants.cs" /> 252 <Compile Include="Graphics\GpuProgramParameters.SharedParameters.cs" /> 206 253 <Compile Include="Graphics\GpuProgramUsage.cs" /> 207 254 <Compile Include="Graphics\HardwareBuffer.cs" /> … … 209 256 <Compile Include="Graphics\HardwareCaps.cs" /> 210 257 <Compile Include="Graphics\HardwareIndexBuffer.cs" /> 258 <Compile Include="Graphics\HardwarePixelBuffer.cs" /> 211 259 <Compile Include="Graphics\HardwareVertexBuffer.cs" /> 212 260 <Compile Include="Graphics\HighLevelGpuProgram.cs" /> … … 218 266 <Compile Include="Graphics\MaterialManager.cs" /> 219 267 <Compile Include="Graphics\MovablePlane.cs" /> 268 <Compile Include="Graphics\MultiRenderTarget.cs" /> 220 269 <Compile Include="Graphics\Pass.cs" /> 270 <Compile Include="Graphics\QueuedRenderableCollection.cs" /> 221 271 <Compile Include="Graphics\Rectangle2D.cs" /> 222 272 <Compile Include="Graphics\RenderOperation.cs" /> … … 224 274 <Compile Include="Graphics\RenderQueue.cs" /> 225 275 <Compile Include="Graphics\RenderQueueGroup.cs" /> 276 <Compile Include="Graphics\RenderQueueInvocation.cs" /> 277 <Compile Include="Graphics\RenderQueueInvocationSequence.cs" /> 226 278 <Compile Include="Graphics\RenderSystem.cs" /> 227 279 <Compile Include="Graphics\RenderTarget.cs" /> 228 280 <Compile Include="Graphics\RenderTexture.cs" /> 229 281 <Compile Include="Graphics\RenderWindow.cs" /> 282 <Compile Include="Graphics\RibbonTrail.cs" /> 230 283 <Compile Include="Graphics\ShadowCaster.cs" /> 231 284 <Compile Include="Graphics\ShadowRenderable.cs" /> … … 238 291 <Compile Include="Graphics\TempBlendedBufferInfo.cs" /> 239 292 <Compile Include="Graphics\TextureUnitState.cs" /> 293 <Compile Include="Graphics\TriangleBuilder.cs" /> 294 <Compile Include="Graphics\UnifiedHighLevelGpuProgram.cs" /> 240 295 <Compile Include="Graphics\VertexBufferBinding.cs" /> 241 296 <Compile Include="Graphics\VertexBufferLicense.cs" /> … … 254 309 <Compile Include="Math\Collections\QuaternionCollection.cs" /> 255 310 <Compile Include="Math\Collections\Vector3Collection.cs" /> 311 <Compile Include="Math\Degree.cs" /> 256 312 <Compile Include="Math\Enums.cs" /> 257 313 <Compile Include="Math\Matrix3.cs" /> … … 261 317 <Compile Include="Math\PositionalSpline.cs" /> 262 318 <Compile Include="Math\Quaternion.cs" /> 319 <Compile Include="Math\Radian.cs" /> 263 320 <Compile Include="Math\Ray.cs" /> 321 <Compile Include="Math\Real.cs" /> 264 322 <Compile Include="Math\RotationalSpline.cs" /> 265 323 <Compile Include="Math\Sphere.cs" /> 324 <Compile Include="Math\Spline.cs" /> 325 <Compile Include="Math\Tuple.cs" /> 266 326 <Compile Include="Math\Utility.cs" /> 267 327 <Compile Include="Math\Vector2.cs" /> 268 328 <Compile Include="Math\Vector3.cs" /> 269 329 <Compile Include="Math\Vector4.cs" /> 330 <Compile Include="Media\Bitwise.cs" /> 270 331 <Compile Include="Media\CodecManager.cs" /> 271 332 <Compile Include="Media\Enums.cs" /> … … 273 334 <Compile Include="Media\Image.cs" /> 274 335 <Compile Include="Media\ImageCodec.cs" /> 336 <Compile Include="Media\LinearResampler.Byte.cs" /> 337 <Compile Include="Media\LinearResampler.cs" /> 338 <Compile Include="Media\LinearResampler.Float32.cs" /> 339 <Compile Include="Media\NearestResampler.cs" /> 340 <Compile Include="Media\OptimizedPixelConversion.cs" /> 341 <Compile Include="Media\PixelBox.cs" /> 342 <Compile Include="Media\PixelConverter.cs" /> 343 <Compile Include="Media\PixelUtil.cs" /> 275 344 <Compile Include="Overlays\Elements\BorderPanel.cs" /> 276 345 <Compile Include="Overlays\Elements\Factories.cs" /> … … 284 353 <Compile Include="Overlays\OverlayElementManager.cs" /> 285 354 <Compile Include="Overlays\OverlayManager.cs" /> 355 <Compile Include="ParticleSystems\BillboardParticleRenderer.cs" /> 286 356 <Compile Include="ParticleSystems\Collections.cs" /> 357 <Compile Include="ParticleSystems\Collections\Lists.cs" /> 287 358 <Compile Include="ParticleSystems\Particle.cs" /> 288 359 <Compile Include="ParticleSystems\ParticleAffector.cs" /> … … 297 368 <Compile Include="Properties\AssemblyInfo.cs" /> 298 369 <Compile Include="Scripting\CommandAttribute.cs" /> 299 <Compile Include="Scripting\ICommand.cs" /> 370 <Compile Include="Scripting\IPropertyCommand.cs" /> 371 <Compile Include="Scripting\IScriptLoader.cs" /> 300 372 <Compile Include="Scripting\ParseHelper.cs" /> 373 <Compile Include="Scripting\ParserCommandAttribute.cs" /> 374 <Compile Include="Scripting\ScriptableObject.cs" /> 301 375 <Compile Include="Scripting\ScriptEnumAttribute.cs" /> 302 376 <Compile Include="Serialization\Enums.cs" /> … … 306 380 <Compile Include="Serialization\OgreSkeletonReader.cs" /> 307 381 <Compile Include="Serialization\Serializer.cs" /> 308 <Compile Include=" Text\TextManager.cs" />382 <Compile Include="Serialization\StreamSerializer.cs" /> 309 383 <Compile Include="Utilities\Contract.cs" /> 310 384 <Compile Include="Utilities\Exceptions.cs" /> … … 312 386 </ItemGroup> 313 387 <ItemGroup> 314 <None Include="Axiom.Engine.build" />315 </ItemGroup>316 <ItemGroup>317 388 <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> 318 389 <Visible>False</Visible> … … 348 419 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 349 420 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\Microsoft.Xna.GameStudio.targets" Condition="" /> 350 </Project>XNA Game Studio\Microsoft.Xna.GameStudio.targets" Condition="" />351 421 </Project> -
trunk/Projects/Axiom/Engine/Axiom.csproj
r1886 r1899 79 79 <ItemGroup> 80 80 <Reference Include="System" /> 81 <Reference Include="System.Data" />82 81 <Reference Include="System.Drawing" /> 83 82 <Reference Include="System.Xml" /> -
trunk/Projects/Axiom/Engine/Core/ResourceGroupManager.cs
r1825 r1899 295 295 /// <summary>Map of loading order (Real) to ScriptLoader, used to order script parsing</summary> 296 296 // typedef std::multimap<Real, ScriptLoader*> ScriptLoaderOrderMap; 297 public class ScriptLoaderOrderMap : SortedDictionary<float, List<IScriptLoader>>297 public class ScriptLoaderOrderMap : AxiomSortedCollection<float, List<IScriptLoader>> 298 298 { 299 299 }; -
trunk/Projects/Axiom/Engine/Core/Singleton.cs
r1663 r1899 81 81 return SingletonFactory.instance; 82 82 } 83 catch ( TypeInitializationException )83 catch ( /*TypeInitialization*/Exception ) 84 84 { 85 85 throw new Exception( string.Format( "Type {0} must implement a private parameterless constructor.", typeof( T ) ) ); -
trunk/Projects/Axiom/Engine/Core/StringConverter.cs
r1824 r1899 93 93 #region String.Split() replacements 94 94 95 #if !XBOX360 96 95 #if !( XBOX || XBOX360 ) 97 96 public static string[] Split( string s, char[] separators ) 98 97 { … … 104 103 return s.Split( separators, count, StringSplitOptions.None ); 105 104 } 106 107 105 #else 106 107 public static string[] Split( string s, char[] separators, int count ) 108 { 109 return Split(s, separators, count, StringSplitOptions.None ); 110 } 108 111 109 112 public static string[] Split( string s, char[] separators ) … … 232 235 } 233 236 } 234 235 237 #endif 236 238 #endregion -
trunk/Projects/Axiom/Engine/FileSystem/FileSystemArchive.cs
r1887 r1899 96 96 if ( pattern == "" ) 97 97 pattern = "*"; 98 98 if ( currentDir == "") currentDir = _basePath; 99 100 #if !( XBOX || XBOX360 ) 99 101 SearchOption so; 100 101 if ( currentDir == "") currentDir = _basePath;102 103 102 if ( recursive ) 104 103 { … … 111 110 112 111 foreach( string file in Directory.GetFiles( currentDir , pattern, so) ) 112 #else 113 foreach( string file in Directory.GetFiles( currentDir, pattern ) ) 114 #endif 113 115 { 114 116 System.IO.FileInfo fi = new System.IO.FileInfo( file ); … … 195 197 try 196 198 { 199 #if !( XBOX || XBOX360 ) 197 200 File.Create(_basePath + @"__testWrite.Axiom", 1, FileOptions.DeleteOnClose); 201 #else 202 File.Create(_basePath + @"__testWrite.Axiom", 1 ); 203 #endif 198 204 } 199 205 catch (Exception ex) … … 225 231 try 226 232 { 233 #if !( XBOX || XBOX360 ) 227 234 stream = File.Create( fullPath, 1, FileOptions.RandomAccess ); 235 #else 236 stream = File.Create( fullPath, 1 ); 237 #endif 228 238 } 229 239 catch( Exception ex ) -
trunk/Projects/Axiom/Engine/FileSystem/Watcher.cs
r1716 r1899 47 47 { 48 48 #region Fields and Properties 49 49 #if !( XBOX || XBOX360 ) 50 50 private readonly FileSystemWatcher _monitor; 51 51 #endif 52 52 #endregion Fields and Properties 53 53 … … 56 56 public Watcher(string path, bool recurse) 57 57 { 58 #if !( XBOX || XBOX360 ) 58 59 // Initialize FileSystemWatcher 59 60 this._monitor = new FileSystemWatcher(); … … 73 74 // Begin watching. 74 75 this._monitor.EnableRaisingEvents = true; 75 76 #endif 76 77 LogManager.Instance.Write( "File monitor created for {0}.", path ); 77 78 } … … 80 81 81 82 #region Methods 83 #if !( XBOX || XBOX360 ) 82 84 83 85 private static void OnChanged(object source, FileSystemEventArgs e) … … 92 94 LogManager.Instance.Write( "File: {0} renamed to {1}", e.OldFullPath, e.FullPath ); 93 95 } 94 96 #endif 95 97 #endregion Methods 96 98 } -
trunk/Projects/Axiom/Engine/Fonts/Font.cs
r1788 r1899 36 36 using System; 37 37 using System.Collections.Generic; 38 using System.Drawing;39 using System.Drawing.Text;40 41 using Axiom.FileSystem;42 43 using SDI = System.Drawing.Imaging;44 38 using System.IO; 45 39 using System.Runtime.InteropServices; … … 49 43 using Axiom.Graphics; 50 44 using Axiom.Media; 45 using Axiom.FileSystem; 51 46 52 47 using ResourceHandle = System.UInt64; … … 495 490 if (_fontType == FontType.TrueType) 496 491 { 492 #if !( XBOX || XBOX360 ) 497 493 // create the font bitmap on the fly 498 494 createTexture(); … … 502 498 503 499 blendByAlpha = true; 500 #endif 504 501 } 505 502 else … … 561 558 // TODO : Revisit after checking current Imaging support in Mono. 562 559 560 #if !( XBOX || XBOX360 ) 563 561 // create a new bitamp with the size defined 564 562 System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap( BITMAP_WIDTH, BITMAP_HEIGHT, System.Drawing.Imaging.PixelFormat.Format32bppArgb ); … … 569 567 // load the font from file into a private collection to make sure 570 568 // this works even if the font is not installed 571 FontFamily fontFamily;569 System.Drawing.FontFamily fontFamily; 572 570 string fontFile = String.Empty; 573 571 IntPtr pData = IntPtr.Zero; … … 577 575 using ( Stream fileStream = Singleton<ResourceGroupManager>.Instance.OpenResource( this.Source, Group ) ) 578 576 { 579 using ( PrivateFontCollection fontCollection = newPrivateFontCollection() )577 using ( System.Drawing.Text.PrivateFontCollection fontCollection = new System.Drawing.Text.PrivateFontCollection() ) 580 578 { 581 579 data = new byte[fileStream.Length]; … … 594 592 LogManager.Instance.Write( error ); 595 593 596 fontFamily = FontFamily.GenericSansSerif;594 fontFamily = System.Drawing.FontFamily.GenericSansSerif; 597 595 } 598 596 finally … … 676 674 g.DrawLine( linePen, 0, y + font.Height, BITMAP_WIDTH, y + font.Height ); 677 675 } 678 679 SDI.BitmapData bmd = bitmap.LockBits( new System.Drawing.Rectangle( 0, 0, BITMAP_WIDTH, BITMAP_HEIGHT ), SDI.ImageLockMode.ReadOnly, SDI.PixelFormat.Format32bppArgb );676 677 System.Drawing.Imaging.BitmapData bmd = bitmap.LockBits( new System.Drawing.Rectangle( 0, 0, BITMAP_WIDTH, BITMAP_HEIGHT ), System.Drawing.Imaging.ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb ); 680 678 681 679 byte[] imgData = new byte[ PixelUtil.GetNumElemBytes( PixelFormat.A8R8G8B8 ) * BITMAP_WIDTH * BITMAP_HEIGHT ]; … … 710 708 //str.Close(); 711 709 //file.Close(); 710 #endif 712 711 } 713 712 -
trunk/Projects/Axiom/Engine/Graphics/QueuedRenderableCollection.cs
r1663 r1899 213 213 214 214 /// Grouped 215 SortedDictionary<Pass, List<IRenderable>> _grouped = new SortedDictionary<Pass, List<IRenderable>>( new PassGroupComparer() );215 AxiomSortedCollection<Pass, List<IRenderable>> _grouped = new AxiomSortedCollection<Pass, List<IRenderable>>( new PassGroupComparer() ); 216 216 217 217 /// Sorted descending (can iterate backwards to get ascending) -
trunk/Projects/Axiom/Engine/Math/Degree.cs
r1881 r1899 57 57 /// </remarks> 58 58 [StructLayout( LayoutKind.Sequential )] 59 #if !( XBOX || XBOX360 ) 59 60 [Serializable] 60 61 public struct Degree : ISerializable, IComparable<Degree>, IComparable<Radian>, IComparable<Real> 62 #else 63 public struct Degree : IComparable<Degree>, IComparable<Radian>, IComparable<Real> 64 #endif 61 65 { 62 66 private static readonly Real _degreesToRadians = Utility.PI / 180.0f; … … 104 108 public override int GetHashCode() { return _value.GetHashCode(); } 105 109 110 #if !( XBOX || XBOX360 ) 111 #region ISerializable Implementation 106 112 private Degree( SerializationInfo info, StreamingContext context ) { _value = (Real)info.GetValue( "value", typeof( Real ) ); } 107 113 108 114 [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] 109 115 public void GetObjectData( SerializationInfo info, StreamingContext context ) { info.AddValue( "value", _value ); } 116 #endregion ISerializableImplementation 117 #endif 110 118 111 119 #region IComparable<T> Members -
trunk/Projects/Axiom/Engine/Math/Radian.cs
r1881 r1899 57 57 /// </remarks> 58 58 [StructLayout( LayoutKind.Sequential )] 59 public struct Radian : ISerializable, IComparable< Radian>, IComparable< Degree >, IComparable< Real > 59 #if !( XBOX || XBOX360 ) 60 [Serializable] 61 public struct Radian : ISerializable, IComparable<Radian>, IComparable<Degree>, IComparable<Real> 62 #else 63 public struct Radian : IComparable<Radian>, IComparable<Degree>, IComparable<Real> 64 #endif 60 65 { 61 66 private static readonly Real _radiansToDegrees = 180.0f / Utility.PI; … … 103 108 public override int GetHashCode() { return _value.GetHashCode(); } 104 109 110 #if !( XBOX || XBOX360 ) 111 #region ISerializable Implementation 105 112 private Radian( SerializationInfo info, StreamingContext context ) { _value = (Real)info.GetValue( "value", typeof( Real ) ); } 106 113 107 114 [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] 108 115 public void GetObjectData( SerializationInfo info, StreamingContext context ) { info.AddValue( "value", _value ); } 109 116 #endregion ISerializableImplementation 117 #endif 110 118 111 119 #region IComparable<T> Members -
trunk/Projects/Axiom/Engine/Math/Real.cs
r1828 r1899 59 59 /// </remarks> 60 60 [StructLayout( LayoutKind.Sequential )] 61 #if !( XBOX || XBOX360 ) 61 62 [Serializable] 62 63 public struct Real : ISerializable, IComparable<Real>, IConvertible 63 { 64 #else 65 public struct Real : IComparable<Real>, IConvertible 66 #endif 67 { 64 68 #region Fields 65 69 /// <summary> … … 647 651 #endregion System.Object Overrides 648 652 653 #if !( XBOX || XBOX360 ) 649 654 #region ISerializable Implementation 650 655 … … 671 676 672 677 #endregion ISerializable Implementation 678 #endif 673 679 674 680 #region IComparable<Real> Members -
trunk/Projects/Axiom/Engine/Scripting/ScriptEnumAttribute.cs
r1855 r1899 129 129 130 130 /// <summary> 131 /// Looks up the script attibute for the enumeration value131 /// Looks up the script attibute for the enumeration value 132 132 /// </summary> 133 133 /// <param name="enumValue">The enumeration value</param> … … 144 144 FieldInfo field = fields[ i ]; 145 145 if ( type == field.FieldType.UnderlyingSystemType && 146 (int)field.Get RawConstantValue() == enumValue )146 (int)field.GetValue(null) == enumValue ) 147 147 { 148 148 // find custom attributes declared for this field -
trunk/Projects/Axiom/Engine/Scripting/ScriptableObject.cs
r1855 r1899 67 67 { 68 68 var pca = attribute as CommandAttribute; 69 #if !( XBOX || XBOX360 || SILVERLIGHT ) 69 70 if ( commandClass.GetInterface( typeof( IPropertyCommand ).Name ) != null ) 70 71 { 72 #else 73 bool typeFound = false; 74 for ( int i = 0; i < commandClass.GetInterfaces().GetLength( 0 ); i++ ) 75 { 76 if ( type.GetInterfaces()[ i ] == typeof( IPropertyCommand ) ) 77 { 78 typeFound = true; 79 break; 80 } 81 } 82 83 if ( typeFound ) 84 { 85 #endif 71 86 object commandInstance = Activator.CreateInstance( commandClass ); 72 87 var propertyCommand = commandInstance as IPropertyCommand; -
trunk/Projects/Axiom/Engine/Serialization/StreamSerializer.cs
r1749 r1899 656 656 byte[] buffer = new byte[length]; 657 657 this.ReadData( buffer, buffer.Length, 1 ); 658 data = encoding.GetString( buffer );658 data = encoding.GetString( buffer, 0, buffer.Length ); 659 659 } 660 660 -
trunk/Projects/Axiom/Plugins/ParticleFX/Axiom.Plugins.ParticleFX.Xbox.csproj
r1548 r1899 1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 2 2 <PropertyGroup> 3 3 <ProjectType>Local</ProjectType> … … 64 64 <Name>System</Name> 65 65 <HintPath>\System.dll</HintPath> 66 </Reference>67 <Reference Include="System.Data">68 <Name>System.Data</Name>69 <HintPath>\System.Data.dll</HintPath>70 66 </Reference> 71 67 <Reference Include="System.Xml">
