Ejemplo n.º 1
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *__ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new UnityEngine.DetailPrototype();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Ejemplo n.º 2
0
 protected override void GetDependencies(System.Collections.Generic.Dictionary <long, UnityEngine.Object> dependencies, object obj)
 {
     base.GetDependencies(dependencies, obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.DetailPrototype o = (UnityEngine.DetailPrototype)obj;
     AddDependency(o.prototype, dependencies);
     AddDependency(o.prototypeTexture, dependencies);
 }
Ejemplo n.º 3
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.DetailPrototype o = (UnityEngine.DetailPrototype)obj;
     prototype        = o.prototype.GetMappedInstanceID();
     prototypeTexture = o.prototypeTexture.GetMappedInstanceID();
     minWidth         = o.minWidth;
     maxWidth         = o.maxWidth;
     minHeight        = o.minHeight;
     maxHeight        = o.maxHeight;
     noiseSpread      = o.noiseSpread;
     bendFactor       = o.bendFactor;
     healthyColor     = o.healthyColor;
     dryColor         = o.dryColor;
     renderMode       = (uint)o.renderMode;
     usePrototypeMesh = o.usePrototypeMesh;
 }
Ejemplo n.º 4
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.DetailPrototype o = (UnityEngine.DetailPrototype)obj;
     o.prototype        = (UnityEngine.GameObject)objects.Get(prototype);
     o.prototypeTexture = (UnityEngine.Texture2D)objects.Get(prototypeTexture);
     o.minWidth         = minWidth;
     o.maxWidth         = maxWidth;
     o.minHeight        = minHeight;
     o.maxHeight        = maxHeight;
     o.noiseSpread      = noiseSpread;
     o.bendFactor       = bendFactor;
     o.healthyColor     = healthyColor;
     o.dryColor         = dryColor;
     o.renderMode       = (UnityEngine.DetailRenderMode)renderMode;
     o.usePrototypeMesh = usePrototypeMesh;
     return(o);
 }