Skip to content

Instantly share code, notes, and snippets.

@mattkruskamp
mattkruskamp / global.asax.cs
Created March 8, 2011 23:20
Binding of the web service
routes.Add(new ServiceRoute("api/v1/test",
new NinjectServiceHostFactory(), typeof(TestService)));
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PDFBuilder;
using iTextSharp.text;
namespace SweetApp.Web
{
string cssUrl = Server.MapPath("~/css/contract.css");
return new PdfResult("Contract.pdf",
myContractText,
new string[] { cssUrl });
class VicGame extends FrameworkGame;
defaultproperties
{
PlayerControllerClass=class'VicGame.VicPlayerController'
DefaultPawnClass=class'VicGame.VicPawn'
HUDType=class'VicGame.VicHUD'
bDelayedStart=false
}
class VicHUD extends MobileHUD;
defaultproperties
{
}
class VicPawn extends Pawn;
var DynamicLightEnvironmentComponent LightEnvironment;
defaultproperties
{
WalkingPct=+0.4
CrouchedPct=+0.4
BaseEyeHeight=38.0
EyeHeight=38.0
class VicPlayerController extends GamePlayerController;
defaultproperties
{
CameraClass=class'VicGame.VicPlayerCamera'
}
class VicPlayerCamera extends Camera;
var Vector CamOffset;
var float CameraZOffset;
var float CameraScale, CurrentCameraScale; /** multiplier to default camera distance */
var float CameraScaleMin, CameraScaleMax;
function UpdateViewTarget(out TViewTarget OutVT, float DeltaTime)
{
local vector HitLocation, HitNormal;
[Engine.GameInfo]
DefaultGame=VicGame.VicGame
DefaultServerGame=VicGame.VicGame
PlayerControllerClassName=VicGame.VicPlayerController
GameDifficulty=+1.0
MaxPlayers=32
DefaultGameType="VicGame.VicGame"
[UnrealEd.EditorEngine]
+EditPackages=UTGame
+EditPackages=UTGameContent
+EditPackages=VicGame