Пример #1
0
        public BSEntity(GameBearShootWindow game)
        {
            this.game = game;
            visible   = true;

            entColor      = colorWhite;
            materialName  = "";
            material      = null;
            width         = height = 8;
            rotation      = 0f;
            rotationSpeed = 0f;
            fadeIn        = false;
            fadeOut       = false;

            position.Zero();
            velocity.Zero();
        }
Пример #2
0
        public virtual void ReadFromSaveGame(VFile savefile, GameBearShootWindow game)
        {
            this.game = game;

            game.ReadSaveGameString(out materialName, savefile); SetMaterial(materialName);

            savefile.Read(out width);
            savefile.Read(out height);
            savefile.Read(out visible);

            savefile.ReadT(out entColor);
            savefile.ReadT(out position);
            savefile.Read(out rotation);
            savefile.Read(out rotationSpeed);
            savefile.ReadT(out velocity);

            savefile.Read(out fadeIn);
            savefile.Read(out fadeOut);
        }