public static Bitmap GetImage(ObjectType Type) { if (instance == null) { instance = new ImageGenerator(); } switch (Type) { case ObjectType.OT_BlockQuestion: return(instance.Block); case ObjectType.OT_BlockQuestionHidden: return(instance.Block); case ObjectType.OT_Ground1: return(instance.Ground1); case ObjectType.OT_Ground2: return(instance.Ground2); case ObjectType.OT_Grass: return(instance.Grass); case ObjectType.OT_Coin: return(instance.Coin); case ObjectType.OT_BG_LowSky: return(instance.BgLowSky); case ObjectType.OT_BG_Block: return(instance.BgBlock); case ObjectType.OT_Goomba: return(instance.Goomba); case ObjectType.OT_PipeUp: return(instance.PipeUp); case ObjectType.OT_Mario: return(instance.MarioSmall); case ObjectType.OT_MarioSmall: return(instance.MarioSmall); case ObjectType.OT_MarioBig: return(instance.MarioBig); case ObjectType.OT_MarioFire: return(instance.MarioFire); case ObjectType.OT_FireBall: return(instance.FireBall); case ObjectType.OT_Mush: return(instance.Mush); case ObjectType.OT_MushLife: return(instance.Mush); case ObjectType.OT_Flower: return(instance.Flower); case ObjectType.OT_Brick: return(instance.Brick); case ObjectType.OT_BrickPiece: return(instance.BrickPiece); case ObjectType.OT_Koopa: return(instance.Koopa); case ObjectType.OT_Pirana: return(instance.Piranah); case ObjectType.OT_MovingBlock: return(instance.MovingBlock); case ObjectType.OT_SolidBlock: return(instance.SolidBlock); case ObjectType.OT_Exit: return(instance.ExitBlock); case ObjectType.OT_Frame: return(instance.Frame); } return(null); }
public static Bitmap GetImage(ObjectType Type) { if (instance == null) instance = new ImageGenerator(); switch (Type) { case ObjectType.OT_BlockQuestion: return instance.Block; case ObjectType.OT_BlockQuestionHidden: return instance.Block; case ObjectType.OT_Ground1: return instance.Ground1; case ObjectType.OT_Ground2: return instance.Ground2; case ObjectType.OT_Grass: return instance.Grass; case ObjectType.OT_Coin: return instance.Coin; case ObjectType.OT_BG_LowSky: return instance.BgLowSky; case ObjectType.OT_BG_Block: return instance.BgBlock; case ObjectType.OT_Goomba: return instance.Goomba; case ObjectType.OT_PipeUp: return instance.PipeUp; case ObjectType.OT_Mario: return instance.MarioSmall; case ObjectType.OT_MarioSmall: return instance.MarioSmall; case ObjectType.OT_MarioBig: return instance.MarioBig; case ObjectType.OT_MarioFire: return instance.MarioFire; case ObjectType.OT_FireBall: return instance.FireBall; case ObjectType.OT_Mush: return instance.Mush; case ObjectType.OT_MushLife: return instance.Mush; case ObjectType.OT_Flower: return instance.Flower; case ObjectType.OT_Brick: return instance.Brick; case ObjectType.OT_BrickPiece: return instance.BrickPiece; case ObjectType.OT_Koopa: return instance.Koopa; case ObjectType.OT_Pirana: return instance.Piranah; case ObjectType.OT_MovingBlock: return instance.MovingBlock; case ObjectType.OT_SolidBlock: return instance.SolidBlock; case ObjectType.OT_Exit: return instance.ExitBlock; case ObjectType.OT_Frame: return instance.Frame; } return null; }