Beispiel #1
0
        public CabinetSawKit()
        {
            HotspotSprite
            .Create(this)
            .SetCaption(Basement_Res.bimetal_hole_saw_kit)
            .SetPixelPerfect(false);

            Interaction
            .Create(this)
            .SetPosition(703, 247)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            Transform
            .Create(this)
            .SetPosition(671, 199)
            .SetZ(3);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.sawkit);

            Enabled = false;
            Visible = false;
        }
Beispiel #2
0
        public RFIDAntennaCabinet()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.rfidantennacabinet, 5);

            HotspotSprite
            .Create(this)
            .SetCaption(Basement_Res.cardboard)
            .SetPixelPerfect(true);

            Transform
            .Create(this)
            .SetPosition(688, 49)
            .SetZ(1);

            Interaction
            .Create(this)
            .SetPosition(696, 248)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            Scripts
            .Create(this);

            Enabled = false;
        }
Beispiel #3
0
        public Guitar()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.guitar)
            .SetVisible(false);

            Transform
            .Create(this)
            .SetPosition(128, 129)
            .SetZ(GuitarCase.Z + 1);

            Interaction
            .Create(this)
            .SetPosition(163, 243)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotSprite
            .Create(this)
            .SetPixelPerfect(true)
            .SetCaption(Basement_Res.guitar);

            Visible = false;
        }
Beispiel #4
0
        public ItemBase(string image, string caption, bool givable = true, bool combinable = true)
        {
            Sprite
            .Create(this)
            .SetRenderStage(RenderStage.PostBloom)
            .SetImage(image);

            Transform
            .Create(this);

            Interaction
            .Create(this)
            .SetGetInteractionsFn(GetInteractions);

            HotspotSprite
            .Create(this)
            .SetCaption(caption);

            if (givable)
            {
                Givable
                .Create(this);
            }

            if (combinable)
            {
                Combinable
                .Create(this);
            }
        }
        public ShelfBlanketFlashlight()
        {
            Interaction
            .Create(this)
            .SetPosition(1020, 295)
            .SetDirection(Directions8.Right)
            .SetGetInteractionsFn(GetInteractions);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.blanketflashlight, 2)
            .SetFrame(BLANKET_FRAME);

            HotspotSprite
            .Create(this)
            .SetCaption(Basement_Res.blanket)
            .SetPixelPerfect(false);

            Transform
            .Create(this)
            .SetPosition(1070, 246)
            .SetZ(Shelf.Z + 2);

            Enabled = false;
        }
Beispiel #6
0
            public Nut(Vector2 position)
            {
                Sprite
                .Create(this)
                .SetImage(content.rooms.basement.nut);

                HotspotSprite
                .Create(this)
                .SetCaption(Basement_Res.nut)
                .SetPixelPerfect(true);

                Interaction
                .Create(this)
                .SetDirection(Directions8.Down)
                .SetPosition(position)
                .SetGetInteractionsFn(GetInteractions);

                Transform
                .Create(this)
                .SetPosition(position)
                .SetZ(position.Y);

                SpriteData
                .Create(this)
                .SetOffset(-3, -2);

                CameraLocked
                .Create(this)
                .SetEnabled(false);
            }
Beispiel #7
0
        public Drone()
        {
            Sprite
            .Create(this)
            .SetGetPositionFn(GetSpritePosition)
            .SetImage(content.rooms.basement.drone, 5, 4);

            SpriteTransformAnimation
            .Create(this)
            .SetSetFrameFn(SetFrame);

            CameraLocked
            .Create(this)
            .SetEnabled(false);

            Transform
            .Create(this)
            .SetPosition(INITIAL_POSITION)
            .SetDirection(Directions4.Down)
            .SetUpdateZWithPosition(false)
            .SetZ(INITIAL_Z);

            SpriteData
            .Create(this)
            .SetOffset(-42, -16);

            HotspotSprite
            .Create(this)
            .SetCaption(Basement_Res.drone)
            .SetPixelPerfect(false);

            Interaction
            .Create(this)
            .SetDirection(Directions8.Down)
            .SetGetInteractionsFn(GetInteractions);

            Scripts
            .Create(this);

            DroneDisplacement
            .Create(this);

            Flying  = false;
            Enabled = false;
            Visible = false;
        }
        public GuitarStrings()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.guitarstringsfloor);

            Transform
            .Create(this)
            .SetPosition(162, 229);

            Interaction
            .Create(this)
            .SetPosition(166, 256)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotSprite
            .Create(this)
            .SetPixelPerfect(false)
            .SetCaption(Basement_Res.guitar_strings);

            Visible = false;
        }
Beispiel #9
0
        public Desk()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.desk);

            HotspotSprite
            .Create(this)
            .SetCaption(Basement_Res.desk)
            .SetPixelPerfect(true);

            Transform
            .Create(this)
            .SetZ(262);

            Interaction
            .Create(this)
            .SetPosition(127, 276)
            .SetDirection(Directions8.Left)
            .SetGetInteractionsFn(GetInteractions);

            Enabled = false;
        }
        public RFIDAntennaShelf()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.rfidantennashelf);

            HotspotSprite
            .Create(this)
            .SetCaption(Basement_Res.cardboard)
            .SetPixelPerfect(false);

            Transform
            .Create(this)
            .SetPosition(1038, 114)
            .SetZ(Shelf.Z + 2);

            Interaction
            .Create(this)
            .SetPosition(1015, 281)
            .SetDirection(Directions8.Right)
            .SetGetInteractionsFn(GetInteractions);

            Enabled = false;
        }
Beispiel #11
0
        public Hammer()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.hammer);

            HotspotSprite
            .Create(this)
            .SetCaption(Basement_Res.hammer)
            .SetPixelPerfect(false);

            Transform
            .Create(this)
            .SetPosition(470, 99)
            .SetZ(ToolBar.Z + 1);

            Interaction
            .Create(this)
            .SetPosition(517, 264)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            Enabled = false;
        }
Beispiel #12
0
        public LandonPortrait()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.image);

            HotspotSprite
            .Create(this)
            .SetCaption(Basement_Res.portrait)
            .SetPixelPerfect(true);

            Transform
            .Create(this)
            .SetPosition(49, 177)
            .SetZ(263);

            Interaction
            .Create(this)
            .SetPosition(145, 281)
            .SetDirection(Directions8.Left)
            .SetGetInteractionsFn(GetInteractions);

            Enabled = false;
        }
Beispiel #13
0
        public RyanBlooddrop(Vector2 position, byte frame, int ttl, string id, float z) : base(id)
        {
            Sprite
            .Create(this)
            .SetTexture(Game.Ego.Get <BloodDropEmitter>().Texture, 16, 1)
            .SetFrame(16);

            SpriteData
            .Create(this)
            .SetColor(Color.White);

            HotspotSprite
            .Create(this)
            .SetPixelPerfect(true)
            .SetCaption(Basement_Res.drop_of_blood);

            Transform
            .Create(this)
            .SetZ(z)
            .SetPosition(position - new Vector2(0, 55));

            Interaction
            .Create(this)
            .SetPosition(position - new Vector2(0, 55))
            .SetGetInteractionsFn(GetInteractions);

            Scripts
            .Create(this);

            TimeToLive     = Math.Min(500, ttl);
            UpdateCount    = 0;
            TargetFrame    = frame;
            TargetPosition = position;

            Visible = true;
        }