Inheritance: CraftersConsignment.PurchaseItem, Common.IPreLoad
Exemple #1
0
            /*public override string[] GetPath(bool isFemale)
             * {
             *  if (this.mUsePath)
             *  {
             *      return this.mPath;
             *  }
             *  return new string[0];
             * }*/

            /*public override string GetInteractionName(Sim actor, CraftersConsignment target, InteractionObjectPair iop)
             * {
             *  GameObject obj2 = GlobalFunctions.ConvertGuidToObject<GameObject>(this.mObject);
             *  if (obj2 == null)
             *  {
             *      return CraftersConsignment.LocalizeString(actor.IsFemale, "Buy", new object[0]);
             *  }
             *  ServingContainer container = obj2 as ServingContainer;
             *  if (container != null)
             *  {
             *      return CraftersConsignment.LocalizeString(actor.IsFemale, "BuyObjectForCost", new object[] { container.CookingProcess.RecipeNameFinal, this.mCost });
             *  }
             *  return CraftersConsignment.LocalizeString(actor.IsFemale, "BuyObjectForCost", new object[] { obj2.CatalogName, this.mCost });
             * }*/

            public override InteractionInstance CreateInstance(ref InteractionInstanceParameters parameters)
            {
                InteractionInstance na = new PurchaseItemEx();

                na.Init(ref parameters);
                return(na);
            }
Exemple #2
0
 public override InteractionInstance CreateInstance(ref InteractionInstanceParameters parameters)
 {
     InteractionInstance na = new PurchaseItemEx();
     na.Init(ref parameters);
     return na;
 }