Exemplo n.º 1
0
 public override bool SameAs(IPart p)
 {
     if (p is acegiak_Seed)
     {
         acegiak_Seed s = p as acegiak_Seed;
         if (s.Result == this.Result && s.ResultName == this.ResultName && s.growth == this.growth && s.stage == this.stage)
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 2
0
        public GameObject CreateSeed()
        {
            if (Seed != null)
            {
                return(GameObject.create(Seed));
            }
            GameObject   seed     = GameObject.create("Seed");
            acegiak_Seed seedpart = seed.GetPart <acegiak_Seed>();

            seedpart.Result          = ParentObject.GetBlueprint().Name;
            seedpart.ResultName      = ParentObject.GetBlueprint().DisplayName().Replace(" Tree", "");
            seedpart.displayname     = "seed";
            seedpart.description     = "A seed from " + ParentObject.a + ParentObject.DisplayNameOnly + ".";
            seed.pRender.DisplayName = seedpart.ResultName + " " + seedpart.displayname;
            seed.pRender.ColorString = ParentObject.pRender.ColorString;
            seed.pRender.TileColor   = ParentObject.pRender.TileColor;
            seed.pRender.DetailColor = ParentObject.pRender.DetailColor;
            return(seed);
        }