Пример #1
0
 public void Begin()
 {
     // Initialize graphics helpers
     ballGraphics   = new BallGraphics(this);
     cursorGraphics = new CursorGraphics(this);
     graphicDebug   = new GraphicDebug(this);
 }
Пример #2
0
        public IInventoryItem ToItem(AGSSerializationContext context)
        {
            IInventoryItem item = context.Resolver.Container.Resolve <IInventoryItem>();

            item.Graphics       = Graphics.ToItem(context);
            item.CursorGraphics = CursorGraphics.ToItem(context);
            item.Qty            = Qty;
            item.ShouldInteract = ShouldInteract;

            return(item);
        }
Пример #3
0
        public IInventoryItem ToItem(AGSSerializationContext context)
        {
            AGSInventoryItem item = new AGSInventoryItem();

            item.Graphics       = Graphics.ToItem(context);
            item.CursorGraphics = CursorGraphics.ToItem(context);
            item.Qty            = Qty;
            item.ShouldInteract = ShouldInteract;

            return(item);
        }