Beispiel #1
0
 public Screen(V2DContent v2dContent)
 {
     this.v2dWorld = v2dContent.v2dWorld;
     this.textures = v2dContent.textures;
     SetAttributes();
 }
 public SplashScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #3
0
 public BaseScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public Tutorial4Screen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public TwoCanalTwoTrainScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public AllTrainScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public LaneChangeScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #8
0
 public RevoluteJointDemo(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #9
0
 public V2DScreen(V2DContent v2dContent) : base(v2dContent)
 {
     CreateWorld();
 }
 public TwoTrainTwoRestScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 //[V2DSpriteAttribute(isStatic = true, categoryBits = Category.WATER, maskBits = Category.PLAYER, isSensor = true)]
 //protected V2DSprite[] water;
 //[V2DSpriteAttribute(isStatic = true, categoryBits = Category.WATER, maskBits = Category.PLAYER)]
 //protected V2DSprite[] bridgeRail;
 //[SpriteAttribute(depthGroup = 14)]
 //protected Sprite[] bridge;
 public AllWaterScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public AllCarsScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public HudScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #14
0
 public DistanceJointDemo(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public SteamRollerScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #16
0
        public V2DContent GetV2DContent(ContentProcessorContext context)
        {
            V2DContent result = new V2DContent();
            result.v2dWorld = v2dWorld;

            //XmlSerializer xs = new XmlSerializer(typeof(V2DWorld));
            //StringWriter sw = new StringWriter();
            //xs.Serialize(sw, result.v2dWorld);

            result.contentTextures.Clear();
            foreach (string s in paths.Values)
            {
                ExternalReference<TextureContent> tr = new ExternalReference<TextureContent>(s);
                Texture2DContent texture = context.BuildAndLoadAsset<TextureContent, Texture2DContent>(tr, null);
                result.contentTextures.Add(Path.GetFileNameWithoutExtension(s), texture);
            }

            return result;
        }
 public HousesScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public WideBoulevardScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #19
0
 public Scene2Data(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public TwoCanalTwoBoulevardScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #21
0
 public TitleScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #22
0
 public PulleyJointDemo(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public TwoLaneScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public Level0Screen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public TwoCanalScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #26
0
 public SpinnerDemo(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
Beispiel #27
0
 public V2DScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
     CreateWorld();
 }
Beispiel #28
0
 private void EnsureV2DWorld()
 {
     if (SymbolImport != null && v2dWorld == null)
     {
         // ** note: unnamed elements may actually fall out of scope and get gc/disposed, so need a ref
         // todo: use multiple content loaders per screen and unload where needed.
         //V2DContent content = V2DGame.instance.Content.Load<V2DContent>(SymbolImport.assetName);
         content = V2DGame.instance.Content.Load<V2DContent>(SymbolImport.assetName);
         v2dWorld = content.v2dWorld;
         textures = content.textures;
         v2dWorld.RootInstance.Definition = v2dWorld.GetDefinitionByName(V2DGame.ROOT_NAME);
     }
 }
 public SpaceMediumScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public StartScreen(V2DContent v2dContent)
     : base(v2dContent)
 {
 }
 public GameOverlay(V2DContent v2dContent)
     : base(v2dContent)
 {
     isPersistantScreen = true;
 }