Esempio n. 1
0
        public FloatyAreaObject(int galaxyID, World world, MessageService_ToServer messageService, FloatyAreaObjectTypes type, Texture2D drawTex, Vector2 position, float rotation)
        {
            Id = galaxyID;
            _messageService = messageService;

            DrawColor = Color.Lime;
            Type      = type;


            DrawTex = drawTex;

            CreateBody(world, position, rotation);
        }
Esempio n. 2
0
        Texture2D GetTexture(FloatyAreaObjectTypes floatyType, bool blinkTex = false)
        {
            if (_textureManager == null)
            {
                return(null);
            }

            switch (floatyType)
            {
            case FloatyAreaObjectTypes.Module:
                return(_textureManager.FloatingModule);

            default:
                throw new NotImplementedException(floatyType + " not implemented in" + this.ToString() + ".GetTexture");
            }
        }