Esempio n. 1
0
 private void SelectBlock(LevelBlock block, Vector3 centerCoordinate, float radius, object[] parameters)
 {
     block.HeightMap.Renderable.Selected = true;
 }
Esempio n. 2
0
 private void RenderCursor(LevelBlock block, Vector3 centerCoordinate, float radius, object[] parameters)
 {
     block.HeightMap.Renderable.DrawCursor = (parameters[0] as HeightMapRenderable.CursorShape?).Value;
     block.HeightMap.Renderable.CursorInnerRadius = (parameters[1] as float?).Value;
     block.HeightMap.Renderable.CursorOuterRadius = (parameters[2] as float?).Value;
     block.HeightMap.Renderable.CursorPosition = (parameters[3] as Vector3?).Value;
 }
Esempio n. 3
0
        private void PaintTexture(LevelBlock block, Vector3 centerCoordinate, float radius, object[] parameters)
        {
            bool isFeathered = (parameters[0] as bool?).Value;
            bool isBlock = (parameters[1] as bool?).Value;
            float alpha = (parameters[2] as float?).Value;
            HeightMapMesh.TextureLayer layer = (parameters[3] as HeightMapMesh.TextureLayer?).Value;
            string texture = parameters[4] as string;
            Vector2 UVOffset = (parameters[5] as Vector2?).Value;
            Vector2 UVScale = (parameters[6] as Vector2?).Value;

            block.HeightMap.PaintTexture(centerCoordinate, radius, alpha, layer, texture, UVOffset, UVScale, isFeathered, isBlock);
        }
Esempio n. 4
0
 private void RemoveBlockFromSpace(LevelBlock block, Vector3 centerCoordinate, float radius, object[] parameters)
 {
     Space space = parameters[0] as Space;
     space.Remove(block.HeightMap.StaticCollidable);
 }
Esempio n. 5
0
        private void BlendTexture(LevelBlock block, Vector3 centerCoordinate, float radius, object[] parameters)
        {
            bool isFeathered = (parameters[0] as bool?).Value;
            bool isBlock = (parameters[1] as bool?).Value;

            block.HeightMap.BlendTexture(centerCoordinate, radius, isFeathered, isBlock);
        }