Skip to content

Instantly share code, notes, and snippets.

public interface IItem
{
string Id { get; }
string Title { get; }
string Description { get; }
}
using System.Collections.Generic;
public enum InventoryTypes
{
Medic,
Weaponary,
Bartender
}
public interface IInventory
public enum MerchantRaces
{
Khajit,
Dragonborn,
Dogjit,
CheeseEat
}
public interface IMerchant {
string Id { get; }
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InventoryBehaviour : MonoBehaviour, IInventory {
public string Id { get; private set; }
public InventoryTypes InventoryType { get; private set; }
public IEnumerable<IItem> Items { get; private set; }
}
using UnityEngine;
public class MerchantBehaviour : MonoBehaviour, IMerchant
{
[SerializeField]
private InventoryBehaviour inventoryBehaviour;
[SerializeField]
private MerchantRaces race;
{
"merchant": {
"id": "scene_0_merchant_1_53525",
"name": "Jasper",
"race": 0,
"inventory": {
"id": "inventory_14141414",
"type": "weaponary",
"items": [
{
version: '2.1'
services:
transactions-service:
build: TransactionsService/
expose:
- 3003
ports:
- 3003:3003
analytics-service:
gem 'faye-rails'
gem 'eventmachine'
gem 'faye'
gem 'thin'
gem 'faye-redis'
config.middleware.use FayeRails::Middleware, mount: '/faye', :timeout => 25
@justlev
justlev / index.html
Last active December 14, 2018 11:09
<html>
<head>
<script type="text/javascript" src="http://localhost:3000/faye/client.js"> </script>
<script src="index.js" ></script>
</head>
<body>
<div id="test">
</div>
</body>