示例#1
0
        public override Item clone()
        {
            EntityItem res = (EntityItem)MemberwiseClone();

            res.CustomProperties = new SerializableDictionary(CustomProperties);
            res.hovering         = false;
            return(res);
        }
示例#2
0
        public override void drawInEditor(SpriteBatch sb)
        {
            Texture2D texture = Texture2D.FromFile(sb.GraphicsDevice, @"..\Resources\system\enemies\chipmunk.png");
            Rectangle rc      = new Rectangle((int)Position.X, (int)Position.Y, shapeWidth - 10, shapeHeight - 10);

            sb.Draw(texture, rc, Color.White);

            rc.Y += 50;

            EntityItem.drawStringInCenter(sb, Name, rc);
        }