Skip to content

Commit

Permalink
premier commits avec quelques packages utiles
Browse files Browse the repository at this point in the history
  • Loading branch information
saarg committed Jan 11, 2018
1 parent eef74eb commit 2f37e6a
Show file tree
Hide file tree
Showing 1,595 changed files with 447,057 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.obj filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.tga filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*

# Visual Studio 2015 cache directory
/.vs/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb

# Unity3D generated meta files
*.pidb.meta

# Unity3D Generated File On Crash Reports
sysinfo.txt

# Builds
*.apk
*.unitypackage
10 changes: 10 additions & 0 deletions Assets/Imports.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Assets/Imports/Battlehub.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/Imports/Battlehub/Integration.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/Imports/Battlehub/Integration/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Assets/Imports/Battlehub/Integration/Editor/CommandsPanel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using UnityEngine;
using UnityEditor;

namespace Battlehub.Integration
{
public partial class CommandsPanel : EditorWindow
{
partial void DoMeshDeformerSection();
partial void DoMeshToolsSection();
partial void OnGUI();
public Vector2 scrollPosition;
public const string IconPath = "Assets/Battlehub/Integration/Editor/icon.png";

partial void OnGUI()
{
scrollPosition = GUILayout.BeginScrollView(scrollPosition);

GUILayout.Label("Mesh", EditorStyles.boldLabel);
DoMeshToolsSection();

GUI.enabled = true;
GUILayout.Label("Mesh Deformer", EditorStyles.boldLabel);
DoMeshDeformerSection();
GUILayout.EndScrollView();
}

private void OnSelectionChanged()
{
Repaint();
}

}

}
12 changes: 12 additions & 0 deletions Assets/Imports/Battlehub/Integration/Editor/CommandsPanel.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Imports/Battlehub/Integration/Editor/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions Assets/Imports/Battlehub/Integration/Editor/icon.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions Assets/Imports/Battlehub/Integration/IntegrationCommon.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using UnityEngine;

namespace Battlehub.Integration
{

public class IntegrationArgs
{
public GameObject GameObject;
public Mesh Mesh;
public bool Cancel;

public IntegrationArgs()
{

}

public IntegrationArgs(GameObject gameObject)
{
GameObject = gameObject;
}

public IntegrationArgs(GameObject gameObject, Mesh mesh)
{
GameObject = gameObject;
Mesh = mesh;
}
}

public delegate void IntegrationHandler(IntegrationArgs args);
}

12 changes: 12 additions & 0 deletions Assets/Imports/Battlehub/Integration/IntegrationCommon.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Assets/Imports/Battlehub/Integration/MeshCombinerIntegration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using UnityEngine;

namespace Battlehub.Integration
{
public static class MeshCombinerIntegration
{
public static event IntegrationHandler Combined;
public static event IntegrationHandler BeginEditPivot;

public static void RaiseCombined(GameObject go, Mesh mesh)
{
if(Combined != null)
{
Combined(new IntegrationArgs(go, mesh));
}
}

public static bool RaiseBeginEditPivot(GameObject go, Mesh mesh)
{
if(BeginEditPivot != null)
{
IntegrationArgs args = new IntegrationArgs(go, mesh);
BeginEditPivot(args);
return !args.Cancel;
}

return true;
}


}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Imports/Battlehub/Integration/MeshDeformerIntegration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using UnityEngine;

namespace Battlehub.Integration
{
public static class MeshDeformerIntegration
{
public static event IntegrationHandler BeforeDeform;

public static bool RaiseBeforeDeform(GameObject gameObject, Mesh mesh)
{
if(BeforeDeform != null)
{
IntegrationArgs args = new IntegrationArgs(gameObject, mesh);
BeforeDeform(args);
return !args.Cancel;
}

return true;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions Assets/Imports/Battlehub/Integration/WiresIntegration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using UnityEngine;
namespace Battlehub.Integration
{
public static class WiresIntegration
{
public static event IntegrationHandler WireParamsChanged;
public static event IntegrationHandler BeforeWireCreated;

public static bool RaiseBeforeWireCreated(GameObject gameObject, Mesh mesh)
{
if (BeforeWireCreated != null)
{
IntegrationArgs args = new IntegrationArgs(gameObject, mesh);
BeforeWireCreated(args);
return !args.Cancel;
}

return true;
}

public static void RaiseWireParamsChanged(GameObject gameObject, Mesh mesh)
{
if (WireParamsChanged != null)
{
WireParamsChanged(new IntegrationArgs(gameObject, mesh));
}
}
}
}
12 changes: 12 additions & 0 deletions Assets/Imports/Battlehub/Integration/WiresIntegration.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/Imports/Battlehub/Materials.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2f37e6a

Please sign in to comment.