This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[-- | |
Script from some base entity I once made, | |
usage: | |
Call InitProperties() from the entity's Init method. | |
Call ThinkProperties() from the entity's Think method. | |
This solution is kinda heavy because it uses think to find changes in the variables | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
public class Class1 | |
{ | |
public static IEnumerable<Class1> SomeMethodThatReturnsAllCardsAvailable() | |
{ | |
return null; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
/* | |
THIS FILE WORKS BEST WHEN READ FROM TOP TO BOTTOM | |
WARNING, ENTITY FRAMEWOKR IS REALLY COOL BUT IM NOT AN EXPERT. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace HotBot.Core | |
{ | |
public class TwitchIrc | |
{ | |
//Imagine this class is only available when !SOME_CONSTANT | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Xml.Serialization; | |
namespace HotBot.Core | |
{ | |
public static class ErrorReporting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
namespace HotBot.Core | |
{ | |
public static class _DeleteMe | |
{ | |
[Conditional("UNITY_EDITOR")]//Make sure its the correct one | |
public static void Log(string format, params object[] args) | |
{ | |
//Code that logs stuff |
NewerOlder