Пример #1
0
		public static string PrintStackAlias(StackAlias s,int i) {
			StringBuilder sb = new StringBuilder();

			sb.AppendLine("#" + i + "\tAmount: " +  s.amount + " - ID: " + s.amountid);

			return sb.ToString();
		}
Пример #2
0
        public static string PrintStackAlias(StackAlias s, int i)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("#" + i + "\tAmount: " + s.amount + " - ID: " + s.amountid);

            return(sb.ToString());
        }
Пример #3
0
        public static StackAlias ReadStackAlias(BinaryReader r)
        {
            StackAlias s = new StackAlias();

            s.amount   = r.ReadInt32();
            s.amountid = r.ReadInt32();
            return(s);
        }
Пример #4
0
        private static void ReadStackAliases(Tileart t, BinaryReader r)
        {
            int count3 = r.ReadInt32();

            t.stackaliases = new StackAlias[count3];
            for (int i = 0; i < count3; ++i)
            {
                t.stackaliases[i] = StackAlias.ReadStackAlias(r);
            }
        }
Пример #5
0
		public static StackAlias ReadStackAlias(BinaryReader r) {
			StackAlias s = new StackAlias();
			s.amount = r.ReadInt32();
			s.amountid = r.ReadInt32();
			return s;
		}