Esempio n. 1
0
 public TreeDatabase(UnityEngine.TerrainData source)
 {
     //Mock Data:
     m_functionCallCounts = new Dictionary <string, int>();
     if (!m_functionCallCounts.ContainsKey("Void .ctor(TerrainData)"))
     {
         m_functionCallCounts.Add("Void .ctor(TerrainData)", 0);
     }
     m_functionCallCounts["Void .ctor(TerrainData)"]++;
 }
Esempio n. 2
0
 public TerrainRenderer(UnityEngine.TerrainData terrainData, UnityEngine.Vector3 position)
 {
     //Mock Data:
     m_functionCallCounts = new Dictionary <string, int>();
     if (!m_functionCallCounts.ContainsKey("Void .ctor(TerrainData, Vector3)"))
     {
         m_functionCallCounts.Add("Void .ctor(TerrainData, Vector3)", 0);
     }
     m_functionCallCounts["Void .ctor(TerrainData, Vector3)"]++;
 }
Esempio n. 3
0
 protected override void GetDependencies(System.Collections.Generic.Dictionary <long, UnityEngine.Object> dependencies, object obj)
 {
     base.GetDependencies(dependencies, obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.TerrainData o = (UnityEngine.TerrainData)obj;
     GetDependencies(detailPrototypes, o.detailPrototypes, dependencies);
     GetDependencies(treePrototypes, o.treePrototypes, dependencies);
     GetDependencies(splatPrototypes, o.splatPrototypes, dependencies);
 }
        static StackObject *set_terrainData_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.TerrainData value = (UnityEngine.TerrainData) typeof(UnityEngine.TerrainData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.TerrainCollider instance_of_this_method;
            instance_of_this_method = (UnityEngine.TerrainCollider) typeof(UnityEngine.TerrainCollider).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.terrainData = value;

            return(__ret);
        }
Esempio n. 5
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.TerrainData o = (UnityEngine.TerrainData)obj;
     heightmapResolution = o.heightmapResolution;
     size                = o.size;
     thickness           = o.thickness;
     wavingGrassStrength = o.wavingGrassStrength;
     wavingGrassAmount   = o.wavingGrassAmount;
     wavingGrassSpeed    = o.wavingGrassSpeed;
     wavingGrassTint     = o.wavingGrassTint;
     detailPrototypes    = Read(detailPrototypes, o.detailPrototypes);
     treeInstances       = o.treeInstances;
     treePrototypes      = Read(treePrototypes, o.treePrototypes);
     alphamapResolution  = o.alphamapResolution;
     baseMapResolution   = o.baseMapResolution;
     splatPrototypes     = Read(splatPrototypes, o.splatPrototypes);
 }
Esempio n. 6
0
 public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects)
 {
     obj = base.WriteTo(obj, objects);
     if (obj == null)
     {
         return(null);
     }
     UnityEngine.TerrainData o = (UnityEngine.TerrainData)obj;
     o.heightmapResolution = heightmapResolution;
     o.size                = size;
     o.thickness           = thickness;
     o.wavingGrassStrength = wavingGrassStrength;
     o.wavingGrassAmount   = wavingGrassAmount;
     o.wavingGrassSpeed    = wavingGrassSpeed;
     o.wavingGrassTint     = wavingGrassTint;
     o.detailPrototypes    = Write(o.detailPrototypes, detailPrototypes, objects);
     o.treeInstances       = treeInstances;
     o.treePrototypes      = Write(o.treePrototypes, treePrototypes, objects);
     o.alphamapResolution  = alphamapResolution;
     o.baseMapResolution   = baseMapResolution;
     o.splatPrototypes     = Write(o.splatPrototypes, splatPrototypes, objects);
     return(o);
 }
Esempio n. 7
0
 public static UnityEngine.GameObject CreateTerrainGameObject(UnityEngine.TerrainData assignTerrain)
 {
     throw new NotImplementedException("This function was automatically generated by Mockery and has no real implementation yet.");
 }
Esempio n. 8
0
 public static void Generate(UnityEngine.Vector3 terrainPosition, UnityEngine.TerrainData terrainData, UnityEngine.TerrainCollider collider, UnityEngine.Light[] lights, UnityEngine.Color ambient, System.Int32 shadowSamples, UnityEngine.Texture2D lightmap, UnityEngine.Texture2D shadowMap)
 {
 }
Esempio n. 9
0
 public static void UpdateTreeColor(UnityEngine.Texture2D shadowMap, UnityEngine.TerrainData terrain)
 {
 }