예제 #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;
		}