コード例 #1
0
 public static Thing Random()
 {
     return(new Thing
     {
         Kind = GenGod.GenOne(0, 2) == 0 ? ThingKind.Weapon : ThingKind.Armor,
         Bonus = GenGod.GenOne(0, 10),
         Identified = true
     });
 }
コード例 #2
0
        public Point GetWalkablePoint()
        {
            var room = _rooms[GenGod.GenOne(0, _rooms.Count)];

            return(GenGod.Point(room.TopLeft.X, room.TopLeft.Y, room.BottomRight.X, room.BottomRight.Y));
        }