コード例 #1
0
        public Interior Clone()
        {
            Interior strc = new Interior(interiorName, interiorDiscription);

            strc.image          = image;
            strc.interiorObject = interiorObject;
            strc.position       = position;
            strc.setup          = setup;
            strc.material       = material;
            strc.money          = money;
            return(strc);
        }
コード例 #2
0
 public void CommitInterior(CollectionInterior[] data)
 {
     foreach (var item in data)
     {
         Interior interior = new Interior(item.interiorId, "");
         interior.interiorDiscription = interiorInfo[interior.interiorName].interiorDiscription;
         interior.id       = int.Parse(item.playerInteriorId);
         interior.image    = interiorInfo[interior.interiorName].image;
         interior.position = item.position;
         interior.flip     = item.isFlipped;
         interior.setup    = item.isConstructed;
         interior.material = interiorInfo[interior.interiorName].material;
         interior.money    = interiorInfo[interior.interiorName].money;
         CurrentPlayerData.interiors.Add(interior);
     }
 }