Skip to content

Instantly share code, notes, and snippets.

View rocifier's full-sized avatar

Ryan O'Connor rocifier

View GitHub Profile
import React, { Component } from 'react';
const TeacherIntroductions = ({ teachers }) => (
<ul className="teacher-introductions">
{teachers.map((teacher, index) => {
return <TeacherIntroduction key={`teacher-${teacher.id}`} teacher={teacher} />;
})}
</ul>
)
@rocifier
rocifier / App.js
Last active December 9, 2018 04:06
import React, { Component } from 'react';
import TeacherIntroductions from './components/TeacherIntroductions';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<TeacherIntroductions />
</div>
--destroying and mining rocks yields ore -- load as last module
local math_random = math.random
local max_spill = 48
local rock_yield = {
["rock-big"] = 1,
["rock-huge"] = 2,
["sand-rock-big"] = 1
}
#include "STT_SetIsPlayerInSight.h"
EStateTreeRunStatus FSTT_SetIsPlayerInSight::Tick(FStateTreeExecutionContext& Context, const float DeltaTime) const
{
FInstanceDataType& InstanceData = Context.GetInstanceData(*this);
if (!IsValid(InstanceData.AIController))
{
return EStateTreeRunStatus::Failed;
}
// ===============================================
// InfluenceMapSubsystem.cpp
// ===============================================
#include "InfluenceMapSubsystem.h"
#include "InfluenceMapComponent.h"
#include "Engine/World.h"
bool UInfluenceMapSubsystem::ShouldCreateSubsystem(UObject* Outer) const
{
if (!UWorldSubsystem::ShouldCreateSubsystem(Outer))